From 67e0cc5d638616fcf82a846479bd2e9acb4e8dda Mon Sep 17 00:00:00 2001 From: Jayant Chowdhary Date: Fri, 23 Feb 2018 16:50:39 -0800 Subject: [PATCH] Collect all lsdump paths and write them to $(OUT_DIR). $(OUT_DIR)/target/product/$(TARGET_DEVICE)/lsdump_paths.txt will contain all .lsdump paths relative to $(ANDROID_BUILD_TOP). This helps faster lookup while running scripts to generate reference dumps. Test: m -j findlsdumps for aosp_arm64_ab. $OUT_DIR/lsdump_paths/generic_arm64_ab/paths.txt has paths to lsdump files generated for the build. Test: m -j findlsdumps for aosp_arm_ab. $OUT_DIR/target/product/generic_arm_ab/lsump_paths.txt has paths to lsdump files generated for the build. Change-Id: Iab1640f57bf9d0af5e88e6dda64a610fedcbe87e --- core/Makefile | 6 ++++++ core/main.mk | 3 +++ 2 files changed, 9 insertions(+) diff --git a/core/Makefile b/core/Makefile index f46ab11cd7..bb2f6ea10a 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: