summaryrefslogtreecommitdiffstats
path: root/core/prebuilt.mk
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-12-15 15:06:55 -0800
committerDoug Zongker <dougz@android.com>2009-12-15 15:06:55 -0800
commitf6a53aa5f24878ad9098409ed3d3f41bb5c63fb5 (patch)
tree26993d68c40ee81a4a727631bb5bc23cb744e35a /core/prebuilt.mk
parentbfa7a8fbda9317dee6266fe1e67399ba6d84c7a1 (diff)
downloadbuild-f6a53aa5f24878ad9098409ed3d3f41bb5c63fb5.zip
build-f6a53aa5f24878ad9098409ed3d3f41bb5c63fb5.tar.gz
build-f6a53aa5f24878ad9098409ed3d3f41bb5c63fb5.tar.bz2
add "EXTERNAL" as special value of LOCAL_CERTIFICATE
Setting LOCAL_CERTIFICATE to "EXTERNAL" now marks an apk (either a prebuilt or otherwise) as needing the default test key within the system, but one that should be signed after the target_files is produced but before sign_target_files_apks does the rest of the signing. (We use this to ship apps on the system that are signed by third parties, like Facebook.)
Diffstat (limited to 'core/prebuilt.mk')
-rw-r--r--core/prebuilt.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/prebuilt.mk b/core/prebuilt.mk
index 2693f5d..b03f2af 100644
--- a/core/prebuilt.mk
+++ b/core/prebuilt.mk
@@ -42,6 +42,16 @@ $(LOCAL_BUILT_MODULE) : $(LOCAL_PATH)/$(LOCAL_SRC_FILES) | $(ACP)
endif
endif
+ifeq ($(LOCAL_CERTIFICATE),EXTERNAL)
+ # The magic string "EXTERNAL" means this package will be signed with
+ # the test key throughout the build process, but we expect the final
+ # package to be signed with a different key.
+ #
+ # This can be used for packages where we don't have access to the
+ # keys, but want the package to be predexopt'ed.
+ LOCAL_CERTIFICATE := testkey
+ PACKAGES.$(LOCAL_MODULE).EXTERNAL_KEY := 1
+endif
ifeq ($(LOCAL_CERTIFICATE),)
ifneq ($(filter APPS,$(LOCAL_MODULE_CLASS)),)
# It is now a build error to add a prebuilt .apk without