From: Peter Korsgaard Date: Fri, 25 Feb 2011 12:18:45 +0000 (+0100) Subject: uClibc: fix uclibc-menuconfig with ccache enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92090917804e513a47b847b7ce3290d7abd446c1;p=buildroot.git 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 --- diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk index a677be7a46..19256bb905 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)" \