svn commit: trunk/buildroot/toolchain: gcc gcc/3.4.6
Author: vanokuten
Date: 2007-11-09 01:57:25 -0800 (Fri, 09 Nov 2007) New Revision: 20393
Log:
update gcc nios2 support, thanks atle
Added:
trunk/buildroot/toolchain/gcc/3.4.6/901-nios2-ctor_dtor.patch trunk/buildroot/toolchain/gcc/3.4.6/nios2-config-fix.patch.conditional
Modified:
trunk/buildroot/toolchain/Config.in.2 trunk/buildroot/toolchain/gcc/Makefile.in trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk
Changeset:
Modified: trunk/buildroot/toolchain/Config.in.2
===================================================================
buildroot/toolchain/Config.in.2 +1 -1
@@ -48,7 +48,7 @@ config BR2_SOFT_FLOAT bool "Use software floating point by default" default n - depends on BR2_arm || BR2_armeb || BR2_avr32 || BR2_mips || BR2_mipsel || BR2_powerpc + depends on BR2_arm || BR2_armeb || BR2_avr32 || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_nios2 help If your target CPU does not have a Floating Point Unit (FPU) or a kernel FPU emulator, but you still wish to support floating point
Added: trunk/buildroot/toolchain/gcc/3.4.6/901-nios2-ctor_dtor.patch
===================================================================
buildroot/toolchain/gcc/3.4.6/901-nios2-ctor_dtor.patch +52 -0
52 lines not on this page · raw message
Added: trunk/buildroot/toolchain/gcc/3.4.6/nios2-config-fix.patch.conditional
===================================================================
buildroot/toolchain/gcc/3.4.6/nios2-config-fix.patch.conditional +19 -0
@@ -0,0 +1,19 @@ +--- gcc-3.4.6/gcc/config/t-linux-uclibc 2007-11-07 14:50:34.000000000 +0100 ++++ /dev/null 2007-11-02 12:35:37.750656579 +0100 +@@ -1,5 +0,0 @@ +-# Remove glibc specific files added in t-linux +-SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES)) +- +-# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc +-LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH)) +--- gcc-3.4.6/gcc/config.gcc.orig 2007-11-07 14:50:34.000000000 +0100 ++++ gcc-3.4.6/gcc/config.gcc 2007-11-07 15:32:31.000000000 +0100 +@@ -2334,7 +2334,7 @@ + # Rather than hook into each target, just do it after all the linux + # targets have been processed + case ${target} in +-*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC" ; tmake_file="${tmake_file} t-linux-uclibc" ++*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC" + esac + + # Support for --with-cpu and related options (and a few unrelated options,
Modified: trunk/buildroot/toolchain/gcc/Makefile.in
===================================================================
buildroot/toolchain/gcc/Makefile.in +2 -0
@@ -27,7 +27,9 @@ ifeq ($(BR2_SOFT_FLOAT),y) # gcc 3.4.x soft float configuration is different than previous versions. ifeq ($(findstring x3.4.,x$(GCC_VERSION)),x3.4.) +ifneq ($(BR2_nios2),y) SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft +endif else SOFT_FLOAT_CONFIG_OPTION:=--without-float endif
Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk
===================================================================
buildroot/toolchain/gcc/gcc-uclibc-3.x.mk +3 -0
@@ -168,6 +168,9 @@ #toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc i386-gcc-soft-float.patch #endif endif +ifeq ("$(strip $(ARCH))","nios2") + toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc/$(GCC_VERSION) nios2-config-fix.patch.conditional +endif touch $@ # The --without-headers option stopped working with gcc 3.0 and has never been