summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-01 14:44:22 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-01 14:45:13 +0100
commitd86802acd8ebe0aaf855dc75ad6276856032bfef (patch)
treece0e3ce212554498092c016c8a9d1995cbf5b709 /include
parent726e45dfe956ba6e0814919f2943a6a9d2f529d3 (diff)
downloadmtk-20170518-d86802acd8ebe0aaf855dc75ad6276856032bfef.zip
mtk-20170518-d86802acd8ebe0aaf855dc75ad6276856032bfef.tar.gz
mtk-20170518-d86802acd8ebe0aaf855dc75ad6276856032bfef.tar.bz2
build: keep recursive dependency check stampfiles up to date
Since the main stamp file depends on the _check stampfile, the _check stampfile needs to be created on the first run as well. Fixes spurious rebuilds with CONFIG_AUTOREBUILD=y Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include')
-rw-r--r--include/package.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk
index 91871f0..ce1aa25 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -156,6 +156,7 @@ define Build/CoreTargets
$(STAMP_PREPARED): $(STAMP_PREPARED_DEPENDS)
@-rm -rf $(PKG_BUILD_DIR)
@mkdir -p $(PKG_BUILD_DIR)
+ touch $$@_check
$(foreach hook,$(Hooks/Prepare/Pre),$(call $(hook))$(sep))
$(Build/Prepare)
$(foreach hook,$(Hooks/Prepare/Post),$(call $(hook))$(sep))
@@ -172,6 +173,8 @@ define Build/CoreTargets
$(call Build/Exports,$(STAMP_BUILT))
$(STAMP_BUILT): $(STAMP_CONFIGURED) $(STAMP_BUILT_DEPENDS)
+ rm -f $$@
+ touch $$@_check
$(foreach hook,$(Hooks/Compile/Pre),$(call $(hook))$(sep))
$(Build/Compile)
$(foreach hook,$(Hooks/Compile/Post),$(call $(hook))$(sep))