From a5ff3e413323acf591fba7045e8c05549159dec1 Mon Sep 17 00:00:00 2001 From: Vishwath Mohan Date: Thu, 19 Jan 2017 14:35:31 -0800 Subject: [PATCH] Hide CFI behind a global flag. This CL ensures that locally enabling CFI in a .bp file is not honored unless it is enabled globally using ENABLE_CFI=true first, effectively hiding it behind a flag. Bug: 30227045 Bug: 22033465 Test: m -j40 works and device boots Test: cfi is correctly honored only when the global flag is set. Change-Id: Id026302e7f714b90a9e2c996f7a9314f534f90c2 --- core/soong_config.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/core/soong_config.mk b/core/soong_config.mk index da3998132..7b1be47be 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -63,6 +63,7 @@ $(SOONG_VARIABLES): FORCE echo ' "CrossHostArch": "$(HOST_CROSS_ARCH)",'; \ echo ' "CrossHostSecondaryArch": "$(HOST_CROSS_2ND_ARCH)",'; \ echo ' "Safestack": $(if $(filter true,$(USE_SAFESTACK)),true,false),'; \ + echo ' "EnableCFI": $(if $(filter true,$(ENABLE_CFI)),true,false),'; \ echo ''; \ echo ' "ArtUseReadBarrier": $(if $(filter true,$(PRODUCT_ART_USE_READ_BARRIER)),true,false),'; \ echo ''; \