diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2010-11-04 14:17:06 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2010-11-04 14:17:06 +0000 |
commit | 54dea0c74f09b73d4143956bce1fbed54cc3ca4d (patch) | |
tree | 38cef5e9ffbcbf0e4e979789d4e3246e6e2707e3 /toolchain/gcc/patches/4.3.5/939-avr32_fix_linux_build.patch | |
parent | edcbafc836ac407e57f42dc7e984657aa9125fe4 (diff) | |
download | mtk-20170518-54dea0c74f09b73d4143956bce1fbed54cc3ca4d.zip mtk-20170518-54dea0c74f09b73d4143956bce1fbed54cc3ca4d.tar.gz mtk-20170518-54dea0c74f09b73d4143956bce1fbed54cc3ca4d.tar.bz2 |
add avr32 support to gcc 4.3.5
SVN-Revision: 23865
Diffstat (limited to 'toolchain/gcc/patches/4.3.5/939-avr32_fix_linux_build.patch')
-rw-r--r-- | toolchain/gcc/patches/4.3.5/939-avr32_fix_linux_build.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.3.5/939-avr32_fix_linux_build.patch b/toolchain/gcc/patches/4.3.5/939-avr32_fix_linux_build.patch new file mode 100644 index 0000000..1569592 --- /dev/null +++ b/toolchain/gcc/patches/4.3.5/939-avr32_fix_linux_build.patch @@ -0,0 +1,25 @@ +--- a/gcc/config.gcc ++++ b/gcc/config.gcc +@@ -836,7 +836,7 @@ avr-*-*) + ;; + avr32*-*-linux*) + tm_file="dbxelf.h elfos.h linux.h avr32/linux-elf.h avr32/avr32.h " +- tmake_file="t-linux avr32/t-avr32 avr32/t-elf" ++ tmake_file="t-linux avr32/t-avr32-linux" + extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" + extra_modes=avr32/avr32-modes.def + gnu_ld=yes +--- a/libgcc/config.host ++++ b/libgcc/config.host +@@ -240,6 +240,11 @@ arm-*-pe*) + ;; + arm*-*-kaos*) + ;; ++avr32-*-linux*) ++ # No need to build crtbeginT.o on uClibc systems. Should probably be ++ # moved to the OS specific section above. ++ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" ++ ;; + avr32-*-*) + ;; + avr-*-rtems*) |