forked from openkylin/platform_build
Set BOARD_VNDK_VERSION=current as a default value
For Android P or later launching devices, set BOARD_VNDK_VERSION to "current" as a default value if the value is not defined yet. "PRODUCT_USE_VNDK_OVERRIDE=false" can disable this feature. Bug: 70480159 Bug: 62019611 Test: Unset BOARD_VNDK_VERSION Set PRODUCT_SHIPPING_API_LEVEL "28" - Check if BOARD_VNDK_VERSION is set to "current" Set PRODUCT_USE_VNDK_OVERRIDE to "false" - Check if BOARD_VNDK_VERSION is not defined Change-Id: I8d37579e8c4ca1788705cbc8a42e8812e2b93a22
This commit is contained in:
parent
5281020692
commit
571737e8fc
|
@ -779,6 +779,28 @@ $(foreach req,$(requirements),$(eval $(req)_OVERRIDE ?=))
|
|||
|
||||
requirements :=
|
||||
|
||||
# If PRODUCT_USE_VNDK is true and BOARD_VNDK_VERSION is not defined yet,
|
||||
# BOARD_VNDK_VERSION will be set to "current" as default.
|
||||
# PRODUCT_USE_VNDK will be true in Android-P or later launching devices.
|
||||
PRODUCT_USE_VNDK := false
|
||||
ifneq ($(PRODUCT_USE_VNDK_OVERRIDE),)
|
||||
PRODUCT_USE_VNDK := $(PRODUCT_USE_VNDK_OVERRIDE)
|
||||
else ifeq ($(PRODUCT_SHIPPING_API_LEVEL),)
|
||||
# No shipping level defined
|
||||
else ifeq ($(call math_gt_or_eq,27,$(PRODUCT_SHIPPING_API_LEVEL)),)
|
||||
PRODUCT_USE_VNDK := $(PRODUCT_FULL_TREBLE)
|
||||
endif
|
||||
|
||||
ifeq ($(PRODUCT_USE_VNDK),true)
|
||||
ifndef BOARD_VNDK_VERSION
|
||||
BOARD_VNDK_VERSION := current
|
||||
endif
|
||||
endif
|
||||
|
||||
$(KATI_obsolete_var PRODUCT_USE_VNDK_OVERRIDE,Use PRODUCT_USE_VNDK instead)
|
||||
.KATI_READONLY := \
|
||||
PRODUCT_USE_VNDK
|
||||
|
||||
ifdef PRODUCT_SHIPPING_API_LEVEL
|
||||
ifneq ($(call math_gt_or_eq,$(PRODUCT_SHIPPING_API_LEVEL),27),)
|
||||
ifneq ($(TARGET_USES_MKE2FS),true)
|
||||
|
|
Loading…
Reference in New Issue