summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-02-25 12:18:45 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-02-25 12:18:45 (GMT)
commit92090917804e513a47b847b7ce3290d7abd446c1 (patch)
treeaeb4c0b136054d0a5c9726d13622354a9634bf5f
parent6c016c07e49a2272f2d71ac8d542665fb65903de (diff)
downloadbuildroot-92090917804e513a47b847b7ce3290d7abd446c1.tar.gz
buildroot-92090917804e513a47b847b7ce3290d7abd446c1.tar.bz2
uClibc: fix uclibc-menuconfig with ccache enabled
If ccache is enabled, we need to ensure it is built for the host before anything else. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--toolchain/uClibc/uclibc.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk
index a677be7..19256bb 100644
--- a/toolchain/uClibc/uclibc.mk
+++ b/toolchain/uClibc/uclibc.mk
@@ -395,6 +395,13 @@ $(UCLIBC_DIR)/.config: $(UCLIBC_DIR)/.oldconfig
oldconfig
touch $@
+ifeq ($(BR2_CCACHE),y)
+# we'll need ccache for the host built before make oldconfig
+# if configured, otherwise uclibc-menuconfig will fail.
+# Use order-only dependency as host-ccache is a virtual target
+$(UCLIBC_DIR)/.config: | host-ccache
+endif
+
$(UCLIBC_DIR)/.configured: $(LINUX_HEADERS_DIR)/.configured $(UCLIBC_DIR)/.config
$(MAKE1) -C $(UCLIBC_DIR) \
ARCH="$(UCLIBC_TARGET_ARCH)" \