From b0a08b874ccfc4360079de115aa72c8ec6368e80 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 1 Jun 2016 15:27:11 -0700 Subject: [PATCH] Add LOCAL_LOGTAGS_FILES that prebuilts can use Soong modules can define logtags files that need to be combined into /system/etc/event-log-tags, so add a new LOCAL_LOGTAGS_FILES variable that can be used to specify *.logtags file outside of LOCAL_SRC_FILES. Bug: 28989759 Change-Id: I53c5d396dfb7c6006806758f351eb5cdde90fe74 --- core/base_rules.mk | 2 +- core/clear_vars.mk | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/base_rules.mk b/core/base_rules.mk index c4fbe11b9..30b6c1cd4 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -261,7 +261,7 @@ endif ## logtags: Add .logtags files to global list ########################################################### -logtags_sources := $(filter %.logtags,$(LOCAL_SRC_FILES)) +logtags_sources := $(filter %.logtags,$(LOCAL_SRC_FILES)) $(LOCAL_LOGTAGS_FILES) ifneq ($(strip $(logtags_sources)),) event_log_tags := $(addprefix $(LOCAL_PATH)/,$(logtags_sources)) diff --git a/core/clear_vars.mk b/core/clear_vars.mk index bc1eefb6e..9ca880b6f 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -197,6 +197,7 @@ LOCAL_NOTICE_FILE:= # to avoid installing the presigned apks with classes.dex unstripped. LOCAL_REPLACE_PREBUILT_APK_INSTALLED:= LOCAL_NDK_VERSION:=current +LOCAL_LOGTAGS_FILES:= # arch specific variables LOCAL_SRC_FILES_$(TARGET_ARCH):= -- 2.11.0