diff --git a/toolchain/Makefile b/toolchain/Makefile index 4832a657dfa..7773c32c314 100644 --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -10,7 +10,6 @@ include $(TOPDIR)/rules.mk TARGETS-y:=kernel-headers TARGETS-$(CONFIG_GDB) += gdb -TARGETS-$(CONFIG_CCACHE) += ccache ifeq ($(CONFIG_NATIVE_TOOLCHAIN),) TARGETS-y+=binutils gcc uClibc endif diff --git a/tools/Makefile b/tools/Makefile index d03ab38ee38..8c5f699d321 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -8,6 +8,7 @@ # include $(TOPDIR)/rules.mk TARGETS-y:=sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils +TARGETS-$(CONFIG_CCACHE) += ccache TARGETS_DOWNLOAD:=$(patsubst %,%-download,$(TARGETS-y)) TARGETS_PREPARE:=$(patsubst %,%-prepare,$(TARGETS-y)) @@ -28,7 +29,7 @@ ifneq ($(shell $(SCRIPT_DIR)/timestamp.pl -p . $(STAMP)),$(STAMP)) $(STAMP): $(TARGETS_INSTALL) endif -$(STAMP): +$(STAMP): $(TOPDIR)/.config mkdir -p $(shell dirname $@) touch $@ diff --git a/toolchain/ccache/Makefile b/tools/ccache/Makefile similarity index 100% rename from toolchain/ccache/Makefile rename to tools/ccache/Makefile