From 62231a8404b0b7babd5180541e0f574bbada09f8 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Fri, 3 Apr 2015 19:42:38 +0000
Subject: [PATCH] tools: build ccache when building the sdk (fixes #13949)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45266
---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index c929239175..7d4ab01ce5 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -72,7 +72,7 @@ $(curdir)/findutils/compile := $(curdir)/bison/install
 $(curdir)/gengetopt/compile := $(curdir)/libtool/install
 $(curdir)/patchelf/compile := $(curdir)/libtool/install
 
-ifneq ($(CONFIG_CCACHE),)
+ifneq ($(CONFIG_CCACHE)$(CONFIG_SDK),)
 $(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/install))
 tools-y += ccache
 endif
-- 
2.34.1