2018-12-17 06:45:15 +01:00
|
|
|
|
2019-01-18 07:09:09 +01:00
|
|
|
ifeq (true,$(non_system_module))
|
2018-12-17 06:45:15 +01:00
|
|
|
ifneq (,$(filter $(dir $(DEFAULT_SYSTEM_DEV_CERTIFICATE))%,$(LOCAL_CERTIFICATE)))
|
|
|
|
CERTIFICATE_VIOLATION_MODULES += $(LOCAL_MODULE)
|
2019-03-28 16:45:40 +01:00
|
|
|
ifeq (true,$(PRODUCT_ENFORCE_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT))
|
2020-06-11 20:25:05 +02:00
|
|
|
$(if $(filter $(LOCAL_MODULE),$(PRODUCT_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT_ALLOW_LIST)),,\
|
2018-12-17 06:45:15 +01:00
|
|
|
$(call pretty-error,The module in product partition cannot be signed with certificate in system.))
|
|
|
|
endif
|
|
|
|
endif
|
2019-03-28 16:45:40 +01:00
|
|
|
endif
|