diff --git a/core/config.mk b/core/config.mk index b11e9fdd0..f4ce3c0d6 100644 --- a/core/config.mk +++ b/core/config.mk @@ -824,6 +824,9 @@ ifdef PRODUCT_SHIPPING_API_LEVEL $(error When PRODUCT_SHIPPING_API_LEVEL >= 27, TARGET_USES_MKE2FS must be true) endif endif + ifneq ($(call numbers_less_than,$(PRODUCT_SHIPPING_API_LEVEL),$(BOARD_SYSTEMSDK_VERSIONS)),) + $(error BOARD_SYSTEMSDK_VERSIONS ($(BOARD_SYSTEMSDK_VERSIONS)) must all be greater than or equal to PRODUCT_SHIPPING_API_LEVEL ($(PRODUCT_SHIPPING_API_LEVEL))) + endif endif # The default key if not set as LOCAL_CERTIFICATE