X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=include%2Fprereq.mk;h=6cb590e360aab351b567e8b76dfa35a98815d4af;hp=71ca96e8a78476010922929f06e02c2219fe5a54;hb=758ef7aa992492ecb29a0cd5a30f5255ccdc9ea7;hpb=834417623de8f3c23ba1c231b6e078d5091e040c diff --git a/include/prereq.mk b/include/prereq.mk index 71ca96e8a7..6cb590e360 100644 --- a/include/prereq.mk +++ b/include/prereq.mk @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2006-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -62,7 +62,7 @@ define RequireHeader define Require/$(1) [ -e "$(1)" ] endef - + $$(eval $$(call Require,$(1),$(2))) endef @@ -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)) \