Skip to content

Commit 8907ad6

Browse files
committed
Reland "Consider non-shipping lunch targets to be future."
This reverts commit b5b8777. Reason for revert: reverted in b/348090986 Change-Id: I2cc85dc4bdf9ed3dc2fb4ff77d9dffa3c32dda76
1 parent b5b8777 commit 8907ad6

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

common/math.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,9 @@ $(call math-expect,(call numbers_greater_or_equal_to,1,0 2 1 3),2 1 3)
315315
$(call math-expect,(call numbers_greater_or_equal_to,0,0 2 1 3),0 2 1 3)
316316
$(call math-expect,(call numbers_greater_or_equal_to,1,0 2 1 3 2),2 1 3 2)
317317

318-
_INT_LIMIT_WORDS := $(foreach a,x x,$(foreach b,x x x x x x x x x x x x x x x x,\
319-
$(foreach c,x x x x x x x x x x x x x x x x,x x x x x x x x x x x x x x x x)))
318+
# 10,001 = 10 ** 4 + 1, contains 10,001 x's, so 1 more than 10,000 (future) API level
319+
_INT_LIMIT_WORDS := x $(foreach a,0 1 2 3 4 5 6 7 8 9,$(foreach b,0 1 2 3 4 5 6 7 8 9,\
320+
$(foreach c,0 1 2 3 4 5 6 7 8 9,x x x x x x x x x x)))
320321

321322
define _int_encode
322323
$(if $(filter $(words x $(_INT_LIMIT_WORDS)),$(words $(wordlist 1,$(1),x $(_INT_LIMIT_WORDS)))),\

core/config.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,6 @@ ifdef PRODUCT_SHIPPING_API_LEVEL
821821
else
822822
min_systemsdk_version := $(PRODUCT_SHIPPING_API_LEVEL)
823823
endif
824-
ifneq ($(call numbers_less_than,$(min_systemsdk_version),$(BOARD_SYSTEMSDK_VERSIONS)),)
825-
$(error BOARD_SYSTEMSDK_VERSIONS ($(BOARD_SYSTEMSDK_VERSIONS)) must all be greater than or equal to BOARD_API_LEVEL, BOARD_SHIPPING_API_LEVEL or PRODUCT_SHIPPING_API_LEVEL ($(min_systemsdk_version)))
826-
endif
827824
ifneq ($(call math_gt_or_eq,$(PRODUCT_SHIPPING_API_LEVEL),29),)
828825
ifneq ($(BOARD_OTA_FRAMEWORK_VBMETA_VERSION_OVERRIDE),)
829826
$(error When PRODUCT_SHIPPING_API_LEVEL >= 29, BOARD_OTA_FRAMEWORK_VBMETA_VERSION_OVERRIDE cannot be set)

core/product_config.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,10 @@ else
426426
TARGET_AAPT_CHARACTERISTICS := $(PRODUCT_CHARACTERISTICS)
427427
endif
428428

429+
ifndef PRODUCT_SHIPPING_API_LEVEL
430+
PRODUCT_SHIPPING_API_LEVEL := 10000
431+
endif
432+
429433
ifdef PRODUCT_DEFAULT_DEV_CERTIFICATE
430434
ifneq (1,$(words $(PRODUCT_DEFAULT_DEV_CERTIFICATE)))
431435
$(error PRODUCT_DEFAULT_DEV_CERTIFICATE='$(PRODUCT_DEFAULT_DEV_CERTIFICATE)', \

0 commit comments

Comments
 (0)