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 <nbd@openwrt.org> SVN-Revision: 46982
This commit is contained in:
parent
e11479771d
commit
4d01d6ccb1
@ -86,6 +86,7 @@ endef
|
|||||||
# 3+: candidates
|
# 3+: candidates
|
||||||
define SetupHostCommand
|
define SetupHostCommand
|
||||||
define Require/$(1)
|
define Require/$(1)
|
||||||
|
[ -f "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0; \
|
||||||
for cmd in $(call QuoteHostCommand,$(3)) $(call QuoteHostCommand,$(4)) \
|
for cmd in $(call QuoteHostCommand,$(3)) $(call QuoteHostCommand,$(4)) \
|
||||||
$(call QuoteHostCommand,$(5)) $(call QuoteHostCommand,$(6)) \
|
$(call QuoteHostCommand,$(5)) $(call QuoteHostCommand,$(6)) \
|
||||||
$(call QuoteHostCommand,$(7)) $(call QuoteHostCommand,$(8)) \
|
$(call QuoteHostCommand,$(7)) $(call QuoteHostCommand,$(8)) \
|
||||||
|
Loading…
Reference in New Issue
Block a user