[Buildroot] [PATCH 2/2] Added some gcc patches to get the lm32 toolchain compiled

Henk henk.vergonet at gmail.com
Fri Jan 7 12:19:09 UTC 2011


Added some gcc patches to get the lm32 toolchain compiled.

Signed-off-by: Henk Vergonet <Henk.Vergonet at gmail.com>

diff --git a/toolchain/gcc/4.5.2/105-lm32-fix-linux-uclibc-target.patch
b/toolchain/gcc/4.5.2/105-lm32-fix-linux-uclibc-target.patch
new file mode 100644
index 0000000..ee6ec74
--- /dev/null
+++ b/toolchain/gcc/4.5.2/105-lm32-fix-linux-uclibc-target.patch
@@ -0,0 +1,11 @@
+--- gcc-4.5.2/gcc/config.gcc.orig      2010-10-09 11:35:53.000000000 +0200
++++ gcc-4.5.2/gcc/config.gcc   2011-01-07 00:12:51.000000000 +0100
+@@ -1527,7 +1527,7 @@
+       tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp
soft-fp/t-softfp"
+       tmake_file="${tmake_file} t-rtems"
+          ;;
+-lm32-*-uclinux*)
++lm32-*-uclinux*|lm32-*-linux-uclibc*)
+         tm_file="dbxelf.h elfos.h ${tm_file} linux.h lm32/uclinux-elf.h"
+       tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp
soft-fp/t-softfp"
+         ;;
diff --git a/toolchain/gcc/4.5.2/110-lm32-fix-bug-46692.patch
b/toolchain/gcc/4.5.2/110-lm32-fix-bug-46692.patch
new file mode 100644
index 0000000..a67f3e1
--- /dev/null
+++ b/toolchain/gcc/4.5.2/110-lm32-fix-bug-46692.patch
@@ -0,0 +1,5 @@
+--- gcc-4.5.2/gcc/config/lm32/t-lm32.orig      2010-03-30
12:26:24.000000000 +0200
++++ gcc-4.5.2/gcc/config/lm32/t-lm32   2010-11-28 12:42:30.047795004 +0100
+@@ -1,1 +1,1 @@
+-MULTILIB_OPTIONS = mmultiply-enabled mbarrel-shift-enabled
++MULTILIB_OPTIONS = mbarrel-shift-enabled mmultiply-enabled
mdivide-enabled msign-extend-enabled



More information about the buildroot mailing list