From 5bec4e0cddf2bd61cbf60d59628b77fdda9730ce Mon Sep 17 00:00:00 2001 From: Kiyoung Kim Date: Tue, 7 May 2024 14:54:20 +0900 Subject: [PATCH] Move sanitizer.libraries.txt definition into Soong Currently sanitizer.libraries.txt module is defined from Makefile, while all logics to create the list of modules is implmented within the Soong. This change moves sanitizer.libraries.txt module definition into Soong, so it can be generated without sharing list of modules over Make variable. Bug: 339131599 Test: AOSP CF build succeeded, with same list of modules in /system/etc/sanitizer.libraries.txt Change-Id: I25cd4cf55b0a0992d05990d1b67869435f37de93 --- rootdir/Android.bp | 4 ++++ rootdir/Android.mk | 20 -------------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/rootdir/Android.bp b/rootdir/Android.bp index 108c7c2e7..bd24f22f3 100644 --- a/rootdir/Android.bp +++ b/rootdir/Android.bp @@ -117,3 +117,7 @@ prebuilt_etc { llndk_libraries_txt { name: "llndk.libraries.txt", } + +sanitizer_libraries_txt { + name: "sanitizer.libraries.txt", +} \ No newline at end of file diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 2394b14aa..06e87301d 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -210,26 +210,6 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/init.environ.rc.in $(hide) sed -i -e 's?%EXPORT_GLOBAL_HWASAN_OPTIONS%?$(EXPORT_GLOBAL_HWASAN_OPTIONS)?g' $@ $(hide) sed -i -e 's?%EXPORT_GLOBAL_SCUDO_ALLOCATION_RING_BUFFER_SIZE%?$(EXPORT_GLOBAL_SCUDO_ALLOCATION_RING_BUFFER_SIZE)?g' $@ -####################################### -# sanitizer.libraries.txt -include $(CLEAR_VARS) -LOCAL_MODULE := sanitizer.libraries.txt -LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 -LOCAL_LICENSE_CONDITIONS := notice -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_ETC) -LOCAL_MODULE_STEM := $(LOCAL_MODULE) -include $(BUILD_SYSTEM)/base_rules.mk -$(LOCAL_BUILT_MODULE): PRIVATE_SANITIZER_RUNTIME_LIBRARIES := \ - $(SANITIZER_STEMS) \ - $(2ND_SANITIZER_STEMS) -$(LOCAL_BUILT_MODULE): - @echo "Generate: $@" - @mkdir -p $(dir $@) - $(hide) echo -n > $@ - $(hide) $(foreach lib,$(PRIVATE_SANITIZER_RUNTIME_LIBRARIES), \ - echo $(lib) >> $@;) - ####################################### # ramdisk_node_list include $(CLEAR_VARS)