Skip to content

Commit d86802a

Browse files
committed
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 <[email protected]>
1 parent 726e45d commit d86802a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/package.mk

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ define Build/CoreTargets
156156
$(STAMP_PREPARED): $(STAMP_PREPARED_DEPENDS)
157157
@-rm -rf $(PKG_BUILD_DIR)
158158
@mkdir -p $(PKG_BUILD_DIR)
159+
touch $$@_check
159160
$(foreach hook,$(Hooks/Prepare/Pre),$(call $(hook))$(sep))
160161
$(Build/Prepare)
161162
$(foreach hook,$(Hooks/Prepare/Post),$(call $(hook))$(sep))
@@ -172,6 +173,8 @@ define Build/CoreTargets
172173

173174
$(call Build/Exports,$(STAMP_BUILT))
174175
$(STAMP_BUILT): $(STAMP_CONFIGURED) $(STAMP_BUILT_DEPENDS)
176+
rm -f $$@
177+
touch $$@_check
175178
$(foreach hook,$(Hooks/Compile/Pre),$(call $(hook))$(sep))
176179
$(Build/Compile)
177180
$(foreach hook,$(Hooks/Compile/Post),$(call $(hook))$(sep))

0 commit comments

Comments
 (0)