aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayant Chowdhary <jchowdhary@google.com>2018-03-02 17:34:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-03-02 17:34:33 +0000
commit1fa15d7491df2231f067b32d63746557af61f2ea (patch)
tree6f5d9352f709d4b18d46872b1234041bba138b4e
parent5c93279fbe9be5c64d409669572be3dd663223c8 (diff)
parent67e0cc5d638616fcf82a846479bd2e9acb4e8dda (diff)
downloadbuild-1fa15d7491df2231f067b32d63746557af61f2ea.tar.gz
Merge "Collect all lsdump paths and write them to $(OUT_DIR)."
-rw-r--r--core/Makefile6
-rw-r--r--core/main.mk3
2 files changed, 9 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile
index 136690f95c..84524946a8 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -3230,3 +3230,9 @@ include $(BUILD_SYSTEM)/product-graph.mk
ifneq ($(sdk_repo_goal),)
include $(TOPDIR)development/build/tools/sdk_repo.mk
endif
+
+#------------------------------------------------------------------
+# Find lsdump paths
+FIND_LSDUMPS_FILE := $(PRODUCT_OUT)/lsdump_paths.txt
+$(FIND_LSDUMPS_FILE) : $(LSDUMP_PATHS)
+ $(hide) rm -rf $@ && echo "$^" > $@
diff --git a/core/main.mk b/core/main.mk
index ef55b4eeaa..0317a8980e 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -1256,6 +1256,9 @@ endif # samplecode in $(MAKECMDGOALS)
.PHONY: findbugs
findbugs: $(INTERNAL_FINDBUGS_HTML_TARGET) $(INTERNAL_FINDBUGS_XML_TARGET)
+.PHONY: findlsdumps
+findlsdumps: $(FIND_LSDUMPS_FILE)
+
#xxx scrape this from ALL_MODULE_NAME_TAGS
.PHONY: modules
modules: