forked from openkylin/platform_build
Fix dependencies around tools/*-event-log-tags.py
We should regenerate merged tag files and java sources when these scripts are updated. Change-Id: Id5f11d6f480f3f74dab08f01e929ee2d7fafd2d0
This commit is contained in:
parent
8fe0fc9065
commit
d3ce14c325
|
@ -434,9 +434,9 @@ all_event_log_tags_src := \
|
|||
pdk_fusion_log_tags_file := $(patsubst $(PRODUCT_OUT)/%,$(_pdk_fusion_intermediates)/%,$(filter $(event_log_tags_file),$(ALL_PDK_FUSION_FILES)))
|
||||
|
||||
$(all_event_log_tags_file): PRIVATE_SRC_FILES := $(all_event_log_tags_src) $(pdk_fusion_log_tags_file)
|
||||
$(all_event_log_tags_file): $(all_event_log_tags_src) $(pdk_fusion_log_tags_file)
|
||||
$(all_event_log_tags_file): $(all_event_log_tags_src) $(pdk_fusion_log_tags_file) $(MERGETAGS) build/tools/event_log_tags.py
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
$(hide) build/tools/merge-event-log-tags.py -o $@ $(PRIVATE_SRC_FILES)
|
||||
$(hide) $(MERGETAGS) -o $@ $(PRIVATE_SRC_FILES)
|
||||
|
||||
# Include tags from all packages included in this product, plus all
|
||||
# tags that are part of the system (ie, not in a vendor/ or device/
|
||||
|
@ -450,9 +450,9 @@ event_log_tags_src := \
|
|||
|
||||
$(event_log_tags_file): PRIVATE_SRC_FILES := $(event_log_tags_src) $(pdk_fusion_log_tags_file)
|
||||
$(event_log_tags_file): PRIVATE_MERGED_FILE := $(all_event_log_tags_file)
|
||||
$(event_log_tags_file): $(event_log_tags_src) $(all_event_log_tags_file) $(pdk_fusion_log_tags_file)
|
||||
$(event_log_tags_file): $(event_log_tags_src) $(all_event_log_tags_file) $(pdk_fusion_log_tags_file) $(MERGETAGS) build/tools/event_log_tags.py
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
$(hide) build/tools/merge-event-log-tags.py -o $@ -m $(PRIVATE_MERGED_FILE) $(PRIVATE_SRC_FILES)
|
||||
$(hide) $(MERGETAGS) -o $@ -m $(PRIVATE_MERGED_FILE) $(PRIVATE_SRC_FILES)
|
||||
|
||||
event-log-tags: $(event_log_tags_file)
|
||||
|
||||
|
|
|
@ -560,6 +560,7 @@ DEFAULT_JACK_EXTRA_ARGS += --verbose error
|
|||
|
||||
PROGUARD := external/proguard/bin/proguard.sh
|
||||
JAVATAGS := build/tools/java-event-log-tags.py
|
||||
MERGETAGS := build/tools/merge-event-log-tags.py
|
||||
APPEND2SIMG := $(HOST_OUT_EXECUTABLES)/append2simg
|
||||
VERITY_SIGNER := $(HOST_OUT_EXECUTABLES)/verity_signer
|
||||
BUILD_VERITY_TREE := $(HOST_OUT_EXECUTABLES)/build_verity_tree
|
||||
|
|
|
@ -1082,7 +1082,7 @@ endef
|
|||
define transform-logtags-to-java
|
||||
@mkdir -p $(dir $@)
|
||||
@echo "logtags: $@ <= $<"
|
||||
$(hide) $(JAVATAGS) -o $@ $^
|
||||
$(hide) $(JAVATAGS) -o $@ $< $(PRIVATE_MERGED_TAG)
|
||||
endef
|
||||
|
||||
|
||||
|
|
|
@ -354,7 +354,8 @@ ifneq ($(strip $(logtags_sources)),)
|
|||
logtags_java_sources := $(patsubst %.logtags,%.java,$(addprefix $(intermediates.COMMON)/src/, $(logtags_sources)))
|
||||
logtags_sources := $(addprefix $(LOCAL_PATH)/, $(logtags_sources))
|
||||
|
||||
$(logtags_java_sources): $(intermediates.COMMON)/src/%.java: $(LOCAL_PATH)/%.logtags $(TARGET_OUT_COMMON_INTERMEDIATES)/all-event-log-tags.txt
|
||||
$(logtags_java_sources): PRIVATE_MERGED_TAG := $(TARGET_OUT_COMMON_INTERMEDIATES)/all-event-log-tags.txt
|
||||
$(logtags_java_sources): $(intermediates.COMMON)/src/%.java: $(LOCAL_PATH)/%.logtags $(TARGET_OUT_COMMON_INTERMEDIATES)/all-event-log-tags.txt $(JAVATAGS) build/tools/event_log_tags.py
|
||||
$(transform-logtags-to-java)
|
||||
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue