diff options
author | Doug Zongker <dougz@google.com> | 2015-08-25 01:20:34 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-25 01:20:34 +0000 |
commit | 2bcfbe7e88a64282aaa9e341988f40c24dfa50b3 (patch) | |
tree | 8d01f39e2d2140dac97aa419cd3f642c8521271d /core | |
parent | 0287a8f6c5915c4010c317cb3a589f66df762322 (diff) | |
parent | 32bf3f32651ddff9ffa2168017d71ec4b151a0a9 (diff) | |
download | build-2bcfbe7e88a64282aaa9e341988f40c24dfa50b3.zip build-2bcfbe7e88a64282aaa9e341988f40c24dfa50b3.tar.gz build-2bcfbe7e88a64282aaa9e341988f40c24dfa50b3.tar.bz2 |
am 32bf3f32: add otatools-package target
* commit '32bf3f32651ddff9ffa2168017d71ec4b151a0a9':
add otatools-package target
Diffstat (limited to 'core')
-rw-r--r-- | core/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile index 15c7f02..670c581 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1260,6 +1260,7 @@ DISTTOOLS := $(HOST_OUT_EXECUTABLES)/minigzip \ $(HOST_OUT_EXECUTABLES)/imgdiff \ $(HOST_OUT_JAVA_LIBRARIES)/dumpkey.jar \ $(HOST_OUT_JAVA_LIBRARIES)/signapk.jar \ + $(HOST_OUT_JAVA_LIBRARIES)/BootSignature.jar \ $(HOST_OUT_EXECUTABLES)/mkuserimg.sh \ $(HOST_OUT_EXECUTABLES)/make_ext4fs \ $(HOST_OUT_EXECUTABLES)/simg2img \ @@ -1275,6 +1276,29 @@ OTATOOLS := $(DISTTOOLS) \ .PHONY: otatools otatools: $(OTATOOLS) +BUILT_OTATOOLS_PACKAGE := $(PRODUCT_OUT)/otatools.zip +$(BUILT_OTATOOLS_PACKAGE): \ + intermediate := $(call intermediates-dir-for,PACKAGING,otatools) +$(BUILT_OTATOOLS_PACKAGE): \ + zip_root := $(intermediate)/otatools + +$(BUILT_OTATOOLS_PACKAGE): \ + $(OTATOOLS) + @echo "Package OTA tools: $@" + $(hide) rm -rf $@ $(zip_root) + $(hide) mkdir -p $(dir $@) $(zip_root)/bin $(zip_root)/framework $(zip_root)/releasetools + $(hide) $(ACP) -p $(OTATOOLS) $(zip_root)/bin + $(hide) mv $(zip_root)/bin/*.jar $(zip_root)/framework/ + $(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) zip -qry $(abspath $@) build/target/product/security/ + $(hide) find device vendor -name \*.pk8 -o -name \*.x509.pem | xargs zip -qry $(abspath $@) + +.PHONY: otatools-package +otatools-package: $(BUILT_OTATOOLS_PACKAGE) + + # ----------------------------------------------------------------- # A zip of the directories that map to the target filesystem. # This zip can be used to create an OTA package or filesystem image |