summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2013-07-18 11:25:49 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2013-07-18 12:18:16 +0200
commite1ba6ef59579d28be7bbef030cfe138011135d13 (patch)
tree777a99ef69b54b0533ab2763c08b2b8c38fa68b2
parent79310d327586619866a672fbaecc5682a33a0937 (diff)
downloadbuildroot-e1ba6ef59579d28be7bbef030cfe138011135d13.tar.gz
buildroot-e1ba6ef59579d28be7bbef030cfe138011135d13.zip
uclibc: uclibc-menuconfig: don't depend on gcc/binutils
With the move of uclibc to package/uclibc, the uclibc-menuconfig target now depends on uclibc-configure, which brings in the build of binutils/gcc-initial/mpfr/gmp, causing it to take ages with a clean tree. Fix it by moving the basic .config mangling to the patch step, and depend on that for menuconfig instead. Notice that this is broken for _OVERRIDE_SRCDIR users, just like for busybox, but as that is presumably a small subset of the buildroot user base (and these advanced users can just run menuconfig in their local uClibc tree), so this is considered the lesser evil of the two. The proposed out-of-tree build series will also cause problems with this. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/uclibc/uclibc.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk
index 8eca5feee8..f775b15601 100644
--- a/package/uclibc/uclibc.mk
+++ b/package/uclibc/uclibc.mk
@@ -358,7 +358,7 @@ UCLIBC_MAKE_FLAGS = \
UCLIBC_EXTRA_CFLAGS="$(TARGET_ABI)" \
HOSTCC="$(HOSTCC)"
-define UCLIBC_CONFIGURE_CMDS
+define UCLIBC_SETUP_DOT_CONFIG
cp -f $(UCLIBC_CONFIG_FILE) $(@D)/.config
$(call UCLIBC_OPT_SET,CROSS_COMPILER_PREFIX,"$(TARGET_CROSS)",$(@D))
$(call UCLIBC_OPT_SET,TARGET_$(UCLIBC_TARGET_ARCH),y,$(@D))
@@ -395,6 +395,11 @@ define UCLIBC_CONFIGURE_CMDS
DEVEL_PREFIX=/usr/ \
RUNTIME_PREFIX=$(STAGING_DIR) \
oldconfig
+endef
+
+UCLIBC_POST_PATCH_HOOKS += UCLIBC_SETUP_DOT_CONFIG
+
+define UCLIBC_CONFIGURE_CMDS
$(MAKE1) -C $(UCLIBC_DIR) \
$(UCLIBC_MAKE_FLAGS) \
PREFIX=$(STAGING_DIR) \
@@ -470,13 +475,13 @@ define UCLIBC_INSTALL_STAGING_CMDS
ln -sf ldconfig $(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-ldconfig
endef
-uclibc-menuconfig: dirs uclibc-configure
+uclibc-menuconfig: dirs uclibc-patch
$(MAKE1) -C $(UCLIBC_DIR) \
$(UCLIBC_MAKE_FLAGS) \
PREFIX=$(STAGING_DIR) \
DEVEL_PREFIX=/usr/ \
RUNTIME_PREFIX=$(STAGING_DIR)/ \
menuconfig
- rm -f $(UCLIBC_DIR)/.stamp_{built,target_installed,staging_installed}
+ rm -f $(UCLIBC_DIR)/.stamp_{configured,built,target_installed,staging_installed}
$(eval $(generic-package))
OpenPOWER on IntegriCloud