From 8bb740db1ae9bf65d1eadaeb057a54ebcd8d2c3b Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Wed, 7 Jun 2023 13:48:47 -0700 Subject: [PATCH] Add aosp_arm64_fullmte target Test: lunch aosp_arm64_fullmte && m Test: llvm-readelf -a out/target/product/generic_arm64/system/bin/toybox Memtag Android Note: Tagging Mode: SYNC Heap: Enabled Stack: Enabled Bug: 271768933 Bug: 286415307 (cherry picked from https://android-review.googlesource.com/q/commit:0352c44ab37cd06d3cd7b52dbac2bb73971f366e) Merged-In: I2a1ac78be551d50be9bf6c4ffc8667de4ef7ce8e Change-Id: I2a1ac78be551d50be9bf6c4ffc8667de4ef7ce8e --- target/product/AndroidProducts.mk | 2 ++ target/product/aosp_arm64_fullmte.mk | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 target/product/aosp_arm64_fullmte.mk diff --git a/target/product/AndroidProducts.mk b/target/product/AndroidProducts.mk index 1e0ce19926..133dc7354e 100644 --- a/target/product/AndroidProducts.mk +++ b/target/product/AndroidProducts.mk @@ -35,6 +35,7 @@ ifneq ($(TARGET_BUILD_APPS),) PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/aosp_arm64.mk \ + $(LOCAL_DIR)/aosp_arm64_fullmte.mk \ $(LOCAL_DIR)/aosp_arm.mk \ $(LOCAL_DIR)/aosp_riscv64.mk \ $(LOCAL_DIR)/aosp_x86_64.mk \ @@ -46,6 +47,7 @@ else PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/aosp_64bitonly_x86_64.mk \ $(LOCAL_DIR)/aosp_arm64.mk \ + $(LOCAL_DIR)/aosp_arm64_fullmte.mk \ $(LOCAL_DIR)/aosp_arm.mk \ $(LOCAL_DIR)/aosp_riscv64.mk \ $(LOCAL_DIR)/aosp_x86_64.mk \ diff --git a/target/product/aosp_arm64_fullmte.mk b/target/product/aosp_arm64_fullmte.mk new file mode 100644 index 0000000000..ed6bd4a5f0 --- /dev/null +++ b/target/product/aosp_arm64_fullmte.mk @@ -0,0 +1,27 @@ +# Copyright (C) 2023 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. +# + +include $(SRC_TARGET_DIR)/product/fullmte.mk + +PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed + +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_arm64.mk) + +# Build modules from source if this has not been pre-configured +MODULE_BUILD_FROM_SOURCE ?= true + +$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) + +PRODUCT_NAME := aosp_arm64_fullmte