Allow passing makefile path to enforce-product-packages-exist

To allow enforcing at a product level

Change-Id: I75084246be885a163260bed42f2b13e0db388f85
This commit is contained in:
Aaron Kling 2022-09-13 19:44:49 -05:00 committed by Bartłomiej Rudecki
parent 2924185362
commit 3801be1f0a

View file

@ -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
# #