summaryrefslogtreecommitdiffstats
path: root/core/pdk_config.mk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-04-23 18:49:04 -0700
committerColin Cross <ccross@android.com>2012-04-24 12:36:55 -0700
commit2bea2e65658c686afc11eb753f647c5257685966 (patch)
tree10718605ab39ea405cef102f9c721ed4371cc55e /core/pdk_config.mk
parentebb351e1b38422345e060ba3a986f470e461c95c (diff)
downloadbuild-2bea2e65658c686afc11eb753f647c5257685966.zip
build-2bea2e65658c686afc11eb753f647c5257685966.tar.gz
build-2bea2e65658c686afc11eb753f647c5257685966.tar.bz2
Set timestamps of files from platform.zip to current time
Touch files unzipped from platform.zip to update their timestamp. Prevents make dependency confusion from files with old times. Also add a dependency for the implicit copy rule on the pdk_fusion.stamp file to force make to use the updated files. Change-Id: Ia54454518d229ce3670023819836f586fef65d3f
Diffstat (limited to 'core/pdk_config.mk')
-rw-r--r--core/pdk_config.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pdk_config.mk b/core/pdk_config.mk
index c0f80fd..f3dbe55 100644
--- a/core/pdk_config.mk
+++ b/core/pdk_config.mk
@@ -46,7 +46,7 @@ $(_pdk_fusion_stamp) : $(PDK_FUSION_PLATFORM_ZIP)
@echo "Unzip $(dir $@) <- $<"
$(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
$(hide) unzip -qo $< -d $(dir $@)
- $(hide) touch $@
+ $(hide) touch $@ $(_pdk_fusion_files)
_pdk_fusion_file_list := $(shell unzip -Z -1 $(PDK_FUSION_PLATFORM_ZIP) '*[^/]' 2>/dev/null)
_pdk_fusion_files := $(addprefix $(_pdk_fusion_intermediates)/, $(_pdk_fusion_file_list))
@@ -57,7 +57,7 @@ $(_pdk_fusion_files) : $(_pdk_fusion_stamp)
# the pattern rule will be just ignored by make.
# That's desired by us: we want only absent files from the platform zip package.
# Copy with the last-modified time preserved, never follow symbolic links.
-$(PRODUCT_OUT)/% : $(_pdk_fusion_intermediates)/%
+$(PRODUCT_OUT)/% : $(_pdk_fusion_intermediates)/% $(_pdk_fusion_stamp)
@mkdir -p $(dir $@)
$(hide) cp -fpPR $< $@