83c50324ca
Define non_system_module in base_rules.mk when the module is product, vendor, product_services or proprietary module. Bug: 74699609 Test: m -j Change-Id: Iebdd3ec8c643be3d9877b7a96cbdd83465fa3878
10 lines
No EOL
535 B
Makefile
10 lines
No EOL
535 B
Makefile
|
|
ifeq (true,$(non_system_module))
|
|
ifneq (,$(filter $(dir $(DEFAULT_SYSTEM_DEV_CERTIFICATE))%,$(LOCAL_CERTIFICATE)))
|
|
CERTIFICATE_VIOLATION_MODULES += $(LOCAL_MODULE)
|
|
ifeq (true,$(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_ENFORCE_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT))
|
|
$(if $(filter $(LOCAL_MODULE),$(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT_WHITELIST)),,\
|
|
$(call pretty-error,The module in product partition cannot be signed with certificate in system.))
|
|
endif
|
|
endif
|
|
endif |