From e0f04e3fcca52db866cc60db315e6a3b0cf02c04 Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Mon, 8 Nov 2021 12:54:12 -0800 Subject: [PATCH] Add aosp_(oriole|raven)_hwasan products. Test: lunch aosp_oriole_hwasan && m Test: lunch aosp_raven_hwasan && m Change-Id: I3a411357c5618008daf35a971b65a0365fef6858 --- AndroidProducts.mk | 2 ++ aosp_oriole_hwasan.mk | 23 +++++++++++++++++++++++ aosp_raven_hwasan.mk | 23 +++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 aosp_oriole_hwasan.mk create mode 100644 aosp_raven_hwasan.mk diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 24a2d1a..f2a4d78 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -16,10 +16,12 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/aosp_oriole.mk \ + $(LOCAL_DIR)/aosp_oriole_hwasan.mk \ $(LOCAL_DIR)/aosp_oriole_pkvm.mk \ $(LOCAL_DIR)/aosp_oriole_64.mk \ $(LOCAL_DIR)/factory_oriole.mk \ $(LOCAL_DIR)/aosp_raven.mk \ + $(LOCAL_DIR)/aosp_raven_hwasan.mk \ $(LOCAL_DIR)/aosp_raven_pkvm.mk \ $(LOCAL_DIR)/aosp_raven_64.mk \ $(LOCAL_DIR)/factory_raven.mk \ diff --git a/aosp_oriole_hwasan.mk b/aosp_oriole_hwasan.mk new file mode 100644 index 0000000..babc6a2 --- /dev/null +++ b/aosp_oriole_hwasan.mk @@ -0,0 +1,23 @@ +# +# Copyright 2021 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/raviole/aosp_oriole.mk) +PRODUCT_NAME := aosp_oriole_hwasan + +# Add "hwaddress" as a global sanitizer if it's missing. +ifeq ($(filter hwaddress,$(SANITIZE_TARGET)),) + SANITIZE_TARGET := $(strip $(SANITIZE_TARGET) hwaddress) +endif diff --git a/aosp_raven_hwasan.mk b/aosp_raven_hwasan.mk new file mode 100644 index 0000000..5b784a1 --- /dev/null +++ b/aosp_raven_hwasan.mk @@ -0,0 +1,23 @@ +# +# Copyright 2021 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/raviole/aosp_raven.mk) +PRODUCT_NAME := aosp_raven_hwasan + +# Add "hwaddress" as a global sanitizer if it's missing. +ifeq ($(filter hwaddress,$(SANITIZE_TARGET)),) + SANITIZE_TARGET := $(strip $(SANITIZE_TARGET) hwaddress) +endif