Change the global CFI flag to default to enabled.

This CL changes the ENABLE_CFI flag to default to enabled. Setting it
to false will override local settings to enable CFI.

Bug: 30227045
Bug: 22033465
Test: m -j40 works and device boots
Test: cfi is honored unless the global flag is set.
Change-Id: I16ea3ecb704d4ce70bd91be8a4e5ae6e4f63ea0f
This commit is contained in:
Vishwath Mohan 2017-01-24 13:20:28 -08:00
parent 34eb9f7f60
commit 45665b40e8
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ ifeq ($(LOCAL_SANITIZE),never)
endif
# If CFI is disabled globally, remove it from my_sanitize.
ifeq ($(strip $(ENABLE_CFI)),)
ifeq ($(strip $(ENABLE_CFI)),false)
my_sanitize := $(filter-out cfi,$(my_sanitize))
my_sanitize_diag := $(filter-out cfi,$(my_sanitize_diag))
endif