From f0534c289786d6a6c98cc5550f5027e13a5a8bff Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Tue, 15 Apr 2014 11:12:21 -0700 Subject: [PATCH] LOCAL_CERTIFICATE only applies to APPS. Change-Id: Iae8c62f1686736f3ce21a2eb6b82fedc9fd12125 --- core/prebuilt_internal.mk | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index 51440c41a1..2b515cf0a1 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -105,6 +105,7 @@ endif endif # LOCAL_STRIP_MODULE not true +ifeq ($(LOCAL_MODULE_CLASS),APPS) PACKAGES.$(LOCAL_MODULE).OVERRIDES := $(strip $(LOCAL_OVERRIDES_PACKAGES)) ifeq ($(LOCAL_CERTIFICATE),EXTERNAL) @@ -121,11 +122,9 @@ ifeq ($(LOCAL_CERTIFICATE),EXTERNAL) $(built_module) : PRIVATE_CERTIFICATE := $(LOCAL_CERTIFICATE).x509.pem endif ifeq ($(LOCAL_CERTIFICATE),) - ifneq ($(filter APPS,$(LOCAL_MODULE_CLASS)),) - # It is now a build error to add a prebuilt .apk without - # specifying a key for it. - $(error No LOCAL_CERTIFICATE specified for prebuilt "$(my_prebuilt_src_file)") - endif + # It is now a build error to add a prebuilt .apk without + # specifying a key for it. + $(error No LOCAL_CERTIFICATE specified for prebuilt "$(my_prebuilt_src_file)") else ifeq ($(LOCAL_CERTIFICATE),PRESIGNED) # The magic string "PRESIGNED" means this package is already checked # signed with its release key. @@ -149,8 +148,6 @@ else $(built_module) : PRIVATE_CERTIFICATE := $(LOCAL_CERTIFICATE).x509.pem endif -ifneq ($(filter APPS,$(LOCAL_MODULE_CLASS)),) - # Disable dex-preopt of prebuilts to save space LOCAL_DEX_PREOPT := false