summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2019-12-16 16:05:36 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-12-16 16:05:36 -0800
commitb9353b397c37d207dde78afabcf5827bc2473368 (patch)
treea3ef029066ad58d7740b4d004b822770648ded3c
parentc6c46720346cdda42662a9c397a6a5d66068f10a (diff)
parent1c42e7b4131975c2f06fd29d54ac75867effb37d (diff)
downloadtaimen-b9353b397c37d207dde78afabcf5827bc2473368.tar.gz
Add aosp_taimen_hwasan build config.
am: 1c42e7b413 Change-Id: Ic6eb786047dad6a2019a89c8a6272cdcc509fd94
-rw-r--r--AndroidProducts.mk1
-rw-r--r--aosp_taimen_hwasan.mk23
2 files changed, 24 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
index f189694..a910025 100644
--- a/AndroidProducts.mk
+++ b/AndroidProducts.mk
@@ -16,6 +16,7 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/aosp_taimen.mk \
+ $(LOCAL_DIR)/aosp_taimen_hwasan.mk \
COMMON_LUNCH_CHOICES := \
aosp_taimen-userdebug
diff --git a/aosp_taimen_hwasan.mk b/aosp_taimen_hwasan.mk
new file mode 100644
index 0000000..6446cdb
--- /dev/null
+++ b/aosp_taimen_hwasan.mk
@@ -0,0 +1,23 @@
+#
+# Copyright 2019 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+$(call inherit-product, device/google/taimen/aosp_taimen.mk)
+PRODUCT_NAME := aosp_taimen_hwasan
+
+# Add "hwaddress" as a global sanitizer if it's missing.
+ifeq ($(filter hwaddress,$(SANITIZE_TARGET)),)
+ SANITIZE_TARGET := $(strip $(SANITIZE_TARGET) hwaddress)
+endif