Build the uClibc utils with the uClibc-targeted toolchain.
authorManuel Novoa III <mjn3@codepoet.org>
Fri, 15 Oct 2004 08:26:30 +0000 (08:26 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Fri, 15 Oct 2004 08:26:30 +0000 (08:26 -0000)
While the host utils are also built, they are not currently installed.

Makefile
toolchain/uClibc/uclibc.mk

index 44220cc97620199a505315234f6f72ba0adc0a8e..4891adfbfb9e889062fdc5ed051b5562e716bf9b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y)
 # along with the packages to build for the target.
 #
 ##############################################################
-TARGETS:=host-sed kernel-headers uclibc-configured binutils gcc
+TARGETS:=host-sed kernel-headers uclibc-configured binutils gcc uclibc-target-utils
 include toolchain/Makefile.in
 include toolchain/*/Makefile.in
 include package/Makefile.in
index 5b19c2c4988129082de90ce0164963e9d822bf9f..65f59f6103e61375958244bbc13e63d514467864 100644 (file)
@@ -99,12 +99,11 @@ $(STAGING_DIR)/lib/libc.a: $(UCLIBC_DIR)/lib/libc.a
                DEVEL_PREFIX=/ \
                RUNTIME_PREFIX=/ \
                install_dev
-       $(MAKE) -C $(UCLIBC_DIR) \
+       # Build the host utils.  Need to add an install target...
+       $(MAKE) -C $(UCLIBC_DIR)/utils \
                PREFIX=$(STAGING_DIR) \
                HOSTCC="$(HOSTCC)" \
-               utils install_utils
-       # Clean up the host compiled utils...
-       $(MAKE) -C $(UCLIBC_DIR)/utils clean
+               hostutils
 
 ifneq ($(TARGET_DIR),)
 $(TARGET_DIR)/lib/libc.so.0: $(STAGING_DIR)/lib/libc.a
@@ -114,11 +113,11 @@ $(TARGET_DIR)/lib/libc.so.0: $(STAGING_DIR)/lib/libc.a
                RUNTIME_PREFIX=/ \
                install_runtime
 
-$(TARGET_DIR)/usr/bin/ldd: $(TARGET_DIR)/lib/libc.so.0
+$(TARGET_DIR)/usr/bin/ldd: gcc
        $(MAKE) -C $(UCLIBC_DIR) $(TARGET_CONFIGURE_OPTS) \
                PREFIX=$(TARGET_DIR) utils install_utils
 
-UCLIBC_TARGETS=$(TARGET_DIR)/lib/libc.so.0 $(TARGET_DIR)/usr/bin/ldd
+UCLIBC_TARGETS=$(TARGET_DIR)/lib/libc.so.0
 endif
 
 uclibc-configured: $(UCLIBC_DIR)/.configured
@@ -137,8 +136,7 @@ uclibc-clean:
 uclibc-dirclean:
        rm -rf $(UCLIBC_DIR)
 
-
-
+uclibc-target-utils: $(TARGET_DIR)/usr/bin/ldd
 
 #############################################################
 #
@@ -154,8 +152,7 @@ $(TARGET_DIR)/usr/lib/libc.a: $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libc.a
                RUNTIME_PREFIX=/ \
                install_dev
 
-uclibc_target: gcc uclibc $(TARGET_DIR)/usr/lib/libc.a
-
+uclibc_target: gcc uclibc $(TARGET_DIR)/usr/lib/libc.a $(TARGET_DIR)/usr/bin/ldd
 uclibc_target-clean:
        rm -f $(TARGET_DIR)/include