From ae9595674b34d151e4b58875a16a3fcf7b9c0f48 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Mon, 29 Jan 2018 09:22:24 -0800 Subject: [PATCH] Write SOONG_MODULES_MISSING_PGO_PROFILE_FILE to $DIST_DIR Bug: http://b/72642679 Store missing profile files and the modules that refer to them, passed via SOONG_MODULES_MISSING_PGO_PROFILE_FILE variable, to $DIST_DIR/pgo_profile_file_missing.txt as part of the 'dist' target. Test: 'm dist' and verify creation of pgo_profile_file_missing.txt. Change-Id: I4ac0a1f413cbb99b33ad1903aeebd3ebcf3b9f59 --- core/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/Makefile b/core/Makefile index a3fbe33ab..eb3298eca 100644 --- a/core/Makefile +++ b/core/Makefile @@ -546,6 +546,16 @@ $(WALL_WERROR): $(call dist-for-goals,droidcore,$(WALL_WERROR)) +# ----------------------------------------------------------------- +# Modules missing profile files +PGO_PROFILE_MISSING := $(PRODUCT_OUT)/pgo_profile_file_missing.txt +$(PGO_PROFILE_MISSING): + @rm -f $@ + echo "# Modules missing PGO profile files" >> $@ + for m in $(SOONG_MODULES_MISSING_PGO_PROFILE_FILE); do echo $$m >> $@; done + +$(call dist-for-goals,droidcore,$(PGO_PROFILE_MISSING)) + # ----------------------------------------------------------------- # The dev key is used to sign this package, and as the key required # for future OTA packages installed by this system. Actual product