From f175d45b4c350905956688e2bd40cd9f27f9026e Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@uclibc-ng.org>
Date: Mon, 21 Nov 2016 17:37:08 +0100
Subject: always use ccache from OpenADK, problem reported by Diez

---
 scripts/prereq.sh             | 8 --------
 target/config/Config.in.adk   | 2 +-
 target/config/Config.in.tools | 4 ----
 3 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/scripts/prereq.sh b/scripts/prereq.sh
index e833140f8..8d8da4f68 100755
--- a/scripts/prereq.sh
+++ b/scripts/prereq.sh
@@ -596,11 +596,6 @@ if ! which mkisofs >/dev/null 2>&1; then
   host_build_cdrtools=1
 fi
 
-host_build_ccache=0
-if ! which ccache >/dev/null 2>&1; then
-  host_build_ccache=1
-fi
-
 host_build_genext2fs=0
 if ! which genext2fs >/dev/null 2>&1; then
   host_build_genext2fs=1
@@ -686,9 +681,6 @@ if [ $host_build_xz -eq 1 ]; then
   printf "\t%s\n" "select ADK_HOST_BUILD_XZ" >> $topdir/target/config/Config.in.prereq
 fi
 # optional
-if [ $host_build_ccache -eq 1 ]; then
-  printf "\t%s\n" "select ADK_HOST_BUILD_CCACHE if ADK_HOST_NEED_CCACHE" >> $topdir/target/config/Config.in.prereq
-fi
 if [ $host_build_cdrtools -eq 1 ]; then
   printf "\t%s\n" "select ADK_HOST_BUILD_CDRTOOLS if ADK_HOST_NEED_CDRTOOLS" >> $topdir/target/config/Config.in.prereq
 fi
diff --git a/target/config/Config.in.adk b/target/config/Config.in.adk
index 34bfeaf9e..1e98eb890 100644
--- a/target/config/Config.in.adk
+++ b/target/config/Config.in.adk
@@ -75,7 +75,7 @@ config ADK_DISABLE_TARGET_KERNEL_PATCHES
 
 config ADK_USE_CCACHE
 	bool "Use ccache to speedup recompilation"
-	select ADK_HOST_NEED_CCACHE
+	select ADK_HOST_BUILD_CCACHE
 	default n
 	help
 	  Useful if you have enough space for the cache and need speedup compilation.
diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools
index b01becf42..2c2e4ed26 100644
--- a/target/config/Config.in.tools
+++ b/target/config/Config.in.tools
@@ -142,10 +142,6 @@ config ADK_HOST_BUILD_GENIMAGE
 	select ADK_HOST_BUILD_DOSFSTOOLS
 	default n
 
-config ADK_HOST_NEED_CCACHE
-	bool
-	default n
-
 config ADK_HOST_BUILD_CCACHE
 	bool
 	default n
-- 
cgit v1.2.3