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