Skip to content

Commit 4d01d6c

Browse files
author
Felix Fietkau
committed
build: do not overwrite already existing host commands
This prevents a later prereq check from overwriting the installed tar binary. Signed-off-by: Felix Fietkau <[email protected]> SVN-Revision: 46982
1 parent e114797 commit 4d01d6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/prereq.mk

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ endef
8686
# 3+: candidates
8787
define SetupHostCommand
8888
define Require/$(1)
89+
[ -f "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0; \
8990
for cmd in $(call QuoteHostCommand,$(3)) $(call QuoteHostCommand,$(4)) \
9091
$(call QuoteHostCommand,$(5)) $(call QuoteHostCommand,$(6)) \
9192
$(call QuoteHostCommand,$(7)) $(call QuoteHostCommand,$(8)) \

0 commit comments

Comments
 (0)