From 784db1a741b77e89ac7399a7d5bd3064d6c2c89d Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 29 Oct 2019 11:00:20 -0700 Subject: [PATCH] Add support for $(TARGET_EXPERIMENTAL_MTE) in product configs. We are bringing up support for ARM Memory Tagging Extension in the platform, but the required patches have not yet landed in the upstream kernel. This change adds support for a product variable that products may set to true to declare support for an experimental userspace interface to MTE. Setting the variable to true causes a product configuration to be enabled which will activate code in bionic and scudo that uses the interface. This variable should not be set to true in shipping products because the userspace interface has not been finalized and is subject to change. Once the support patches have landed in the kernel, bionic and scudo will be changed to use the official interface and the variable will be removed. Bug: 135772972 Change-Id: Ie3d2619bc09c134e0da073c65805e7ec049687e1 --- core/soong_config.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/soong_config.mk b/core/soong_config.mk index bcd025ba9..1138f0899 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -105,6 +105,8 @@ $(call add_json_bool, EnableXOM, $(call invert_bool,$(fi $(call add_json_list, XOMExcludePaths, $(XOM_EXCLUDE_PATHS) $(PRODUCT_XOM_EXCLUDE_PATHS)) $(call add_json_list, IntegerOverflowExcludePaths, $(INTEGER_OVERFLOW_EXCLUDE_PATHS) $(PRODUCT_INTEGER_OVERFLOW_EXCLUDE_PATHS)) +$(call add_json_bool, Experimental_mte, $(filter true,$(TARGET_EXPERIMENTAL_MTE))) + $(call add_json_bool, DisableScudo, $(filter true,$(PRODUCT_DISABLE_SCUDO))) $(call add_json_bool, ClangTidy, $(filter 1 true,$(WITH_TIDY)))