From 674a27ddaf0f0b30f4598f0a265cb39d580b1714 Mon Sep 17 00:00:00 2001 From: Johan Redestig Date: Thu, 12 Apr 2012 17:00:58 +0200 Subject: [PATCH] Allow several system property files TARGET_SYSTEM_PROP now is a list of files and all of them are included in the build.prop. Change-Id: I494f86412b0a299ee4c066e49ab4f4686bc2178a --- core/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/core/Makefile b/core/Makefile index 507a19898..70598ae51 100644 --- a/core/Makefile +++ b/core/Makefile @@ -190,9 +190,14 @@ $(INSTALLED_BUILD_PROP_TARGET): $(BUILDINFO_SH) $(INTERNAL_BUILD_ID_MAKEFILE) $( TARGET_CPU_ABI2="$(TARGET_CPU_ABI2)" \ TARGET_AAPT_CHARACTERISTICS="$(TARGET_AAPT_CHARACTERISTICS)" \ bash $(BUILDINFO_SH) > $@ - $(hide) if [ -f "$(system_prop_file)" ]; then \ - cat $(system_prop_file) >> $@; \ - fi + $(hide) $(foreach file,$(system_prop_file), \ + if [ -f "$(file)" ]; then \ + echo "#" >> $@; \ + echo Target buildinfo from: "$(file)"; \ + echo "# from $(file)" >> $@; \ + echo "#" >> $@; \ + cat $(file) >> $@; \ + fi;) $(if $(ADDITIONAL_BUILD_PROPERTIES), \ $(hide) echo >> $@; \ echo "#" >> $@; \