Merge "Make side change for prod override vars support." am: 664b72abfe
am: 2f6900cf51
am: 681eeb9e34
Change-Id: I61fe48d725d1b50f4583e22ff0af8fdcc1901349
This commit is contained in:
commit
845e3298f5
|
@ -217,6 +217,8 @@ _product_var_list := \
|
|||
PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS \
|
||||
PRODUCT_XOM_EXCLUDE_PATHS \
|
||||
PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES \
|
||||
PRODUCT_PACKAGE_NAME_OVERRIDES \
|
||||
PRODUCT_CERTIFICATE_OVERRIDES \
|
||||
PRODUCT_BUILD_SYSTEM_IMAGE \
|
||||
PRODUCT_BUILD_SYSTEM_OTHER_IMAGE \
|
||||
PRODUCT_BUILD_VENDOR_IMAGE \
|
||||
|
|
|
@ -349,10 +349,6 @@ PRODUCT_SHIPPING_API_LEVEL := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SHI
|
|||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES := \
|
||||
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEFAULT_PROPERTY_OVERRIDES))
|
||||
|
||||
$(foreach rule,$(PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES),\
|
||||
$(if $(filter 2,$(words $(subst :,$(space),$(rule)))),,\
|
||||
$(error Rule "$(rule)" in PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDE is not <module_name>:<manifest_name>)))
|
||||
|
||||
.KATI_READONLY := PRODUCT_DEFAULT_PROPERTY_OVERRIDES
|
||||
|
||||
# A list of property assignments, like "key = value", with zero or more
|
||||
|
@ -571,12 +567,19 @@ PRODUCT_FORCE_PRODUCT_MODULES_TO_SYSTEM_PARTITION := \
|
|||
PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := \
|
||||
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS))
|
||||
|
||||
# List of <module_name>:<manifest_name> pairs to override the manifest package name
|
||||
# of a module <module_name> to <manifest_name>. Patterns can be used as in
|
||||
# com.android.%:com.acme.android.%.release
|
||||
PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES := \
|
||||
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES))
|
||||
.KATI_READONLY := PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES
|
||||
define product-overrides-config
|
||||
PRODUCT_$(1)_OVERRIDES := $$(strip $$(PRODUCTS.$$(INTERNAL_PRODUCT).PRODUCT_$(1)_OVERRIDES))
|
||||
.KATI_READONLY := PRODUCT_$(1)_OVERRIDES
|
||||
$$(foreach rule,$$(PRODUCT_$(1)_OVERRIDES),\
|
||||
$$(if $$(filter 2,$$(words $$(subst :,$$(space),$$(rule)))),,\
|
||||
$$(error Rule "$$(rule)" in PRODUCT_$(1)_OVERRIDE is not <module_name>:<new_value>)))
|
||||
endef
|
||||
|
||||
$(foreach var, \
|
||||
MANIFEST_PACKAGE_NAME \
|
||||
PACKAGE_NAME \
|
||||
CERTIFICATE, \
|
||||
$(eval $(call product-overrides-config,$(var))))
|
||||
|
||||
# Macro to use below. $(1) is the name of the partition
|
||||
define product-build-image-config
|
||||
|
|
|
@ -152,6 +152,8 @@ $(call add_json_bool, FlattenApex, $(filter true,$(TARGET_
|
|||
$(call add_json_str, DexpreoptGlobalConfig, $(DEX_PREOPT_CONFIG))
|
||||
|
||||
$(call add_json_list, ManifestPackageNameOverrides, $(PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES))
|
||||
$(call add_json_list, PackageNameOverrides, $(PRODUCT_PACKAGE_NAME_OVERRIDES))
|
||||
$(call add_json_list, CertificateOverrides, $(PRODUCT_CERTIFICATE_OVERRIDES))
|
||||
|
||||
$(call add_json_bool, EnforceSystemCertificate, $(ENFORCE_SYSTEM_CERTIFICATE))
|
||||
$(call add_json_list, EnforceSystemCertificateWhitelist, $(ENFORCE_SYSTEM_CERTIFICATE_WHITELIST))
|
||||
|
|
Loading…
Reference in New Issue