X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=tools%2FMakefile;h=7fea248113e4e928bb5b07ad3ce78b6f1dbf2a29;hb=414fc2e320735985b1db7b606faa2801f15e1be8;hp=6b846f8ef1504d5b742ee438963cac1b376c448e;hpb=dc3d2f715b044eeb60b85a68153acd2350c0d54a;p=oweals%2Fopenwrt.git diff --git a/tools/Makefile b/tools/Makefile index 6b846f8ef1..7fea248113 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -21,7 +21,7 @@ tools-y += findutils tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2 tools-$(CONFIG_powerpc) += upx tools-$(CONFIG_TARGET_x86) += qemu -tools-$(CONFIG_TARGET_imx23) += elftosb +tools-$(CONFIG_TARGET_mxs) += elftosb tools-$(CONFIG_TARGET_brcm2708) += mtools dosfstools ifneq ($(CONFIG_TARGET_ar71xx),) tools-y += lzma-old squashfs @@ -74,6 +74,10 @@ $(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache tools-y += ccache endif +# in case there is no patch tool on the host we need to make patch tool a +# dependency for tools which have patches directory +$(foreach tool, $(tools-y), $(if $(wildcard $(curdir)/$(tool)/patches),$(eval $(curdir)/$(tool)/compile += $(curdir)/patch/install))) + $(curdir)/builddirs := $(tools-y) $(tools-dep) $(tools-) $(curdir)/builddirs-default := $(tools-y)