Allow passing makefile path to enforce-product-packages-exist
To allow enforcing at a product level Change-Id: I75084246be885a163260bed42f2b13e0db388f85
This commit is contained in:
parent
2924185362
commit
3801be1f0a
1 changed files with 7 additions and 4 deletions
|
@ -550,12 +550,15 @@ endef
|
||||||
|
|
||||||
# Makes including non-existent modules in PRODUCT_PACKAGES an error.
|
# Makes including non-existent modules in PRODUCT_PACKAGES an error.
|
||||||
# $(1): list of non-existent modules to allow.
|
# $(1): list of non-existent modules to allow.
|
||||||
|
define enforce-product-packages-exist-internal
|
||||||
|
$(eval PRODUCTS.$(1).PRODUCT_ENFORCE_PACKAGES_EXIST := true) \
|
||||||
|
$(eval PRODUCTS.$(1).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST := $(2)) \
|
||||||
|
$(eval .KATI_READONLY := PRODUCTS.$(1).PRODUCT_ENFORCE_PACKAGES_EXIST) \
|
||||||
|
$(eval .KATI_READONLY := PRODUCTS.$(1).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST)
|
||||||
|
endef
|
||||||
define enforce-product-packages-exist
|
define enforce-product-packages-exist
|
||||||
$(eval current_mk := $(strip $(word 1,$(_include_stack)))) \
|
$(eval current_mk := $(strip $(word 1,$(_include_stack)))) \
|
||||||
$(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST := true) \
|
$(enforce-product-packages-exist-internal,$(current_mk),$(1))
|
||||||
$(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST := $(1)) \
|
|
||||||
$(eval .KATI_READONLY := PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST) \
|
|
||||||
$(eval .KATI_READONLY := PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue