Remove the USE_UCLIBC_TOOLCHAIN config option, since that's all we support.
authorManuel Novoa III <mjn3@codepoet.org>
Sun, 30 Nov 2003 20:21:47 +0000 (20:21 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Sun, 30 Nov 2003 20:21:47 +0000 (20:21 -0000)
Add some comments in Makefile about support for various archs.
Disable buildroot large file for cris, since uClibc currently disables it.

Makefile
make/uclibc.mk

index 45e2f2f960ad46a2d0baf787a15d42f07afe45f3..583dd112a9f8c443f3045c735b41c61beee12efa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,22 +33,25 @@ ARCH:=i386
 #ARCH:=arm
 #ARCH:=mips
 #ARCH:=mipsel
+# Possible issues remaining with powerpc and soft float.
 #ARCH:=powerpc
 #ARCH:=sh4
+# Busybox link failing due to needing libgcc functions that are statics.
 #ARCH:=cris
+
+# The following currently fail to build since no shared lib support.
+#ARCH:=sh64
 #ARCH:=m68k
 #ARCH:=v850
 #ARCH:=sparc
-#ARCH:=sh64
 #ARCH:=whatever
 
-# enable to build a native gcc toolchain with uclibc support
-USE_UCLIBC_TOOLCHAIN:=true
-
 # If you are building a native gcc toolchain, do you want to
 # build the old gcc-2.95 based toolchain, or would you prefer
-# a nice and shiny new gcc-3.2.1 toolchain?
+# a nice and shiny new gcc-3.3.2 toolchain?
+# WARNING -- 2.95 currently does not build.
 GCC_2_95_TOOLCHAIN:=false
+# WARNING -- 2.95 currently does not build.
 
 # Enable this to use the uClibc daily snapshot instead of a released
 # version.  Daily snapshots may contain new features and bugfixes. Or
@@ -85,24 +88,26 @@ OPTIMIZE_FOR_CPU=$(ARCH)
 #   The uClibc built will support _only_ applications compiled with the
 #      -msoft-float flag.  To avoid CFLAGS problems, you may want to use
 #      scripts similar to those in the build*/staging_dir/bin directory.
-# Uncomment the next 2 lines to build a soft-float toolchain and rootfs.
+# (Un)comment the appropriate line below.
+#SOFT_FLOAT:=true
 SOFT_FLOAT:=false
 
 TARGET_OPTIMIZATION=-Os
 TARGET_DEBUGGING= #-g
 
 # Any additional gcc options you may want to include....
-EXTRA_GCC_CONFIG_OPTIONS=
+EXTRA_GCC_CONFIG_OPTIONS:=
 
 # Enable the following if you want locale/gettext/i18n support.
+# NOTE!  Currently the pregnerated locale stuff only works for x86!
 #ENABLE_LOCALE:=true
 ENABLE_LOCALE:=false
 
 # If you want multilib enabled, enable this...
 MULTILIB:=--enable-multilib
 
-#Install libstdc++?
-INSTALL_LIBSTDCPP=true
+# Build/install c++ compiler and libstdc++?
+INSTALL_LIBSTDCPP:=true
 
 # For SMP machines some stuff can be run in parallel
 #JLEVEL=-j3
@@ -113,17 +118,12 @@ INSTALL_LIBSTDCPP=true
 #
 #############################################################
 TARGETS:=host-sed
-# The toolchain comes next if we are building one
-ifeq ($(USE_UCLIBC_TOOLCHAIN),true)
+
 ifeq ($(GCC_2_95_TOOLCHAIN),true)
-TARGETS+=binutils uclibc-configured gcc2_95
+TARGETS+=uclibc-configured binutils gcc2_95
 else
-#TARGETS+=binutils uclibc-configured gcc3_3
 TARGETS+=uclibc-configured binutils gcc3_3
 endif
-else
-TARGETS+=uclibc
-endif
 
 # Do you want user mode Linux (x86 only), or are you building a
 # your own kernel that will run on its own?  Perhaps you have a
@@ -214,6 +214,11 @@ ifeq ($(ENABLE_LOCALE),true)
 EXTRA_GCC_CONFIG_OPTIONS += --enable-clocale=gnu
 endif
 
+# WARNING -- uClibc currently disables large file support on cris.
+ifeq ("$(strip $(ARCH))","cris")
+BUILD_WITH_LARGEFILE:=false
+endif
+
 ifneq ($(BUILD_WITH_LARGEFILE),true)
 DISABLE_LARGEFILE= --disable-largefile 
 endif
index ed56446b9f1ddc4bb53ca573dbc1ff5ab2ba4369..9024baacf7804bc6c5694d56e123d29c2b12cd29 100644 (file)
@@ -55,11 +55,9 @@ endif
        $(SED) 's,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX=\"/lib\",g' \
                $(UCLIBC_DIR)/.config
 ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
-       $(SED) "s/^.*UCLIBC_HAS_LFS.*/UCLIBC_HAS_LFS=y/;" \
-               $(UCLIBC_DIR)/.config
+       $(SED) 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=y,g' $(UCLIBC_DIR)/.config
 else
-       $(SED) "s/^.*UCLIBC_HAS_LFS.*/UCLIBC_HAS_LFS=n/;" \
-               $(UCLIBC_DIR)/.config
+       $(SED) 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=n,g' $(UCLIBC_DIR)/.config
 endif
        $(SED) 's,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g' $(UCLIBC_DIR)/.config
        if [ -n "$(strip $(TARGET_SOFT_FLOAT))" ] ; then \
@@ -148,15 +146,11 @@ $(TARGET_DIR)/usr/lib/libc.a: $(STAGING_DIR)/lib/libc.a
                ln -fs /lib/libthread_db.so.1 libthread_db.so; \
        )
 
-ifeq ($(USE_UCLIBC_TOOLCHAIN),true)
 ifeq ($(GCC_2_95_TOOLCHAIN),true)
 uclibc_target: gcc2_95 uclibc $(TARGET_DIR)/usr/lib/libc.a
 else
 uclibc_target: gcc3_3 uclibc $(TARGET_DIR)/usr/lib/libc.a
 endif
-else
-uclibc_target: uclibc $(TARGET_DIR)/usr/lib/libc.a
-endif
 
 uclibc_target-clean:
        rm -f $(TARGET_DIR)/include