kernel: update 4.9 to 4.9.51
[openwrt/openwrt.git] / include / prereq.mk
index 33ac27823297b0ab86d98013aaeb8fc3f53321a7..6cb590e360aab351b567e8b76dfa35a98815d4af 100644 (file)
@@ -86,6 +86,7 @@ endef
 # 3+: candidates
 define SetupHostCommand
   define Require/$(1)
+       [ -f "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0; \
        for cmd in $(call QuoteHostCommand,$(3)) $(call QuoteHostCommand,$(4)) \
                   $(call QuoteHostCommand,$(5)) $(call QuoteHostCommand,$(6)) \
                   $(call QuoteHostCommand,$(7)) $(call QuoteHostCommand,$(8)) \