X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=tools%2FMakefile;h=9f8665ca99bb1b76fe6a144fda58e7f78e856f58;hp=0c2706d7a82783cf1bb35e96eeb27c838f4bc92e;hb=ccb6b0a063a4133ac59c811476b670c7d66f84ed;hpb=f9e41adc80d0492ff9c94b4b660ac9ac8a6cae02 diff --git a/tools/Makefile b/tools/Makefile index 0c2706d7a8..9f8665ca99 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -21,10 +21,9 @@ tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2 tools-$(CONFIG_powerpc) += upx tools-$(CONFIG_TARGET_x86) += qemu ifneq ($(CONFIG_TARGET_ar71xx),) -tools-y += lzma-old squashfs +tools-y += lzma-old squashfs endif tools-y += lzma squashfs4 -tools-$(CONFIG_CCACHE) += ccache ifdef CONFIG_GCC_USE_GRAPHITE ifeq ($(CONFIG_GCC_USE_SYSTEM_PPL_CLOOG),) @@ -59,6 +58,11 @@ $(curdir)/missing-macros/compile := $(curdir)/automake/install $(curdir)/e2fsprogs/compile := $(curdir)/automake/install $(curdir)/libelf/compile := $(curdir)/automake/install +ifneq ($(CONFIG_CCACHE),) +$(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/install)) +tools-y += ccache +endif + $(curdir)/builddirs := $(tools-y) $(tools-dep) $(tools-) $(curdir)/builddirs-default := $(tools-y)