diff options
author | Jayant Chowdhary <jchowdhary@google.com> | 2018-02-23 16:50:39 -0800 |
---|---|---|
committer | Jayant Chowdhary <jchowdhary@google.com> | 2018-02-28 16:29:51 -0800 |
commit | 67e0cc5d638616fcf82a846479bd2e9acb4e8dda (patch) | |
tree | 28f75cef9be6a87a2202fcc211bbc79de85645fa | |
parent | c187fdf7511c547a0a81aab85ac969e9fc369a1f (diff) | |
download | build-67e0cc5d638616fcf82a846479bd2e9acb4e8dda.tar.gz |
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
-rw-r--r-- | core/Makefile | 6 | ||||
-rw-r--r-- | core/main.mk | 3 |
2 files changed, 9 insertions, 0 deletions
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: |