Merge "Add soong variable for PRODUCT_FULL_TREBLE." am: ec0dec8599
am: 7c318e8914
Change-Id: I2c969e1d79ab9f536900212c9def56fb3c5b4946
This commit is contained in:
commit
094743b773
3 changed files with 11 additions and 10 deletions
|
@ -689,6 +689,16 @@ APICHECK_CLASSPATH := $(APICHECK_CLASSPATH):$(HOST_OUT_JAVA_LIBRARIES)/doclava$(
|
|||
APICHECK_CLASSPATH := $(APICHECK_CLASSPATH):$(HOST_OUT_JAVA_LIBRARIES)/jsilver$(COMMON_JAVA_PACKAGE_SUFFIX)
|
||||
APICHECK_COMMAND := $(APICHECK) -JXmx1024m -J"classpath $(APICHECK_CLASSPATH)"
|
||||
|
||||
# Boolean variable determining if Treble is fully enabled
|
||||
PRODUCT_FULL_TREBLE := false
|
||||
ifneq ($(PRODUCT_FULL_TREBLE_OVERRIDE),)
|
||||
PRODUCT_FULL_TREBLE := $(PRODUCT_FULL_TREBLE_OVERRIDE)
|
||||
else ifeq ($(PRODUCT_SHIPPING_API_LEVEL),)
|
||||
#$(warning no product shipping level defined)
|
||||
else ifneq ($(call math_gt_or_eq,$(PRODUCT_SHIPPING_API_LEVEL),26),)
|
||||
PRODUCT_FULL_TREBLE := true
|
||||
endif
|
||||
|
||||
# The default key if not set as LOCAL_CERTIFICATE
|
||||
ifdef PRODUCT_DEFAULT_DEV_CERTIFICATE
|
||||
DEFAULT_SYSTEM_DEV_CERTIFICATE := $(PRODUCT_DEFAULT_DEV_CERTIFICATE)
|
||||
|
|
10
core/main.mk
10
core/main.mk
|
@ -187,16 +187,6 @@ ifneq ($(PLATFORM_VERSION_CODENAME),REL)
|
|||
ADDITIONAL_BUILD_PROPERTIES += ro.bionic.ld.warning=1
|
||||
endif
|
||||
|
||||
# Boolean variable determining if Treble is fully enabled
|
||||
PRODUCT_FULL_TREBLE := false
|
||||
ifneq ($(PRODUCT_FULL_TREBLE_OVERRIDE),)
|
||||
PRODUCT_FULL_TREBLE := $(PRODUCT_FULL_TREBLE_OVERRIDE)
|
||||
else ifeq ($(PRODUCT_SHIPPING_API_LEVEL),)
|
||||
#$(warning no product shipping level defined)
|
||||
else ifneq ($(call math_gt_or_eq,$(PRODUCT_SHIPPING_API_LEVEL),26),)
|
||||
PRODUCT_FULL_TREBLE := true
|
||||
endif
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
###
|
||||
### In this section we set up the things that are different
|
||||
|
|
|
@ -80,6 +80,7 @@ $(SOONG_VARIABLES): FORCE
|
|||
echo ' "EnableCFI": $(if $(filter false,$(ENABLE_CFI)),false,true),'; \
|
||||
echo ' "Device_uses_hwc2": $(if $(filter true,$(TARGET_USES_HWC2)),true,false),'; \
|
||||
echo ' "Override_rs_driver": "$(OVERRIDE_RS_DRIVER)",'; \
|
||||
echo ' "Treble": $(if $(filter true,$(PRODUCT_FULL_TREBLE)),true,false),'; \
|
||||
echo ''; \
|
||||
echo ' "ArtUseReadBarrier": $(if $(filter false,$(PRODUCT_ART_USE_READ_BARRIER)),false,true),'; \
|
||||
echo ''; \
|
||||
|
|
Loading…
Reference in a new issue