OSDN Git Service

am 0216641e: am 6fe4ab94: am 58912c87: Merge "Don\'t fail build of otatools if there...
authorYing Wang <wangying@android.com>
Fri, 3 Apr 2015 17:07:37 +0000 (17:07 +0000)
committerAndroid Git Automerger <android-git-automerger@android.com>
Fri, 3 Apr 2015 17:07:37 +0000 (17:07 +0000)
* commit '0216641e04e3eae6f3b7d50108e632b249c15f1c':
  Don't fail build of otatools if there are no device certificates

1  2 
core/Makefile

diff --cc core/Makefile
@@@ -1296,21 -1281,18 +1296,21 @@@ $(BUILT_OTATOOLS_PACKAGE): 
  $(BUILT_OTATOOLS_PACKAGE): \
        zip_root := $(intermediate)/otatools
  
 +otatools_lib_path := $(notdir $(HOST_OUT_SHARED_LIBRARIES))
  $(BUILT_OTATOOLS_PACKAGE): \
 -              $(OTATOOLS)
 +              $(OTATOOLS) \
 +              $(HOST_OUT_SHARED_LIBRARIES)/libc++.so
        @echo "Package OTA tools: $@"
        $(hide) rm -rf $@ $(zip_root)
 -      $(hide) mkdir -p $(dir $@) $(zip_root)/bin $(zip_root)/framework $(zip_root)/releasetools
 +      $(hide) mkdir -p $(dir $@) $(zip_root)/bin $(zip_root)/framework $(zip_root)/releasetools $(zip_root)/$(otatools_lib_path)
        $(hide) $(ACP) -p $(OTATOOLS) $(zip_root)/bin
        $(hide) mv $(zip_root)/bin/*.jar $(zip_root)/framework/
 +      $(hide) $(ACP) $(HOST_OUT_SHARED_LIBRARIES)/libc++.so $(zip_root)/$(otatools_lib_path)
        $(hide) $(ACP) -r -d -p build/tools/releasetools/* $(zip_root)/releasetools
        $(hide) rm -rf $@ $(zip_root)/releasetools/*.pyc
 -      $(hide) (cd $(zip_root) && zip -qry $(abspath $@) bin framework releasetools)
 +      $(hide) (cd $(zip_root) && zip -qry $(abspath $@) bin framework releasetools $(otatools_lib_path))
        $(hide) zip -qry $(abspath $@) build/target/product/security/
-       $(hide) find device vendor -name \*.pk8 -o -name \*.x509.pem -o -name oem.prop | xargs zip -qry $(abspath $@)
+       $(hide) find device vendor -name \*.pk8 -o -name \*.x509.pem -o -name oem.prop | xargs zip -qry $(abspath $@)>/dev/null || true
  
  .PHONY: otatools-package
  otatools-package: $(BUILT_OTATOOLS_PACKAGE)