Merge "Don't use old VNDK and SystemSDK versions for new devices" am: 3fcaecec8a am: b50e47cbc4
am: 42bb3a2ddf

Change-Id: I3a291a22ffdff76e3cf5796a554ba537e855a2f9
diff --git a/core/config.mk b/core/config.mk
index 3ed0ea7..2c89e39 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -825,6 +825,9 @@
       $(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