gcc-4.3.2: use multilib on sh4, so kernel can compile without fpu
authorHenning Heinold <heinold@inf.fu-berlin.de>
Mon, 6 Oct 2008 19:14:33 +0000 (19:14 +0000)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Mon, 6 Oct 2008 19:14:33 +0000 (19:14 +0000)
registers
* add patch gcc-4.2.3-linux-multilib-fix.patch used by various other
  linux distributions
* put the mulitlib config in gcc-cross4.inc because gcc-3 works without
  that
* need to bump PR because we pushed in earlier changes on sh4 without
  bumping

packages/gcc/gcc-4.3.2.inc
packages/gcc/gcc-4.3.2/gcc-4.2.3-linux-multilib-fix.patch [new file with mode: 0644]
packages/gcc/gcc-cross4.inc
packages/gcc/gcc-cross_4.3.2.bb

index 21c08ff..74ed254 100644 (file)
@@ -60,8 +60,8 @@ SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
 SRC_URI_append_sh3  = " file://sh3-installfix-fixheaders.patch;patch=1 "
 
 SRC_URI_append_sh4  = " file://sh_unwind.patch;patch=1 \
+                       file://gcc-4.2.3-linux-multilib-fix.patch;patch=1 \
                      "
-
 # Language Overrides
 FORTRAN = ""
 JAVA = ""
diff --git a/packages/gcc/gcc-4.3.2/gcc-4.2.3-linux-multilib-fix.patch b/packages/gcc/gcc-4.3.2/gcc-4.2.3-linux-multilib-fix.patch
new file mode 100644 (file)
index 0000000..81522a8
--- /dev/null
@@ -0,0 +1,23 @@
+Change gcc build : Enable m4 and m4-nofpu (needed for kernel) for sh4-gnu-linux
+
+Signed-off-by: Carl Shaw <carl.shaw@st.com>
+
+Index: gcc/gcc/config.gcc
+===================================================================
+--- gcc.orig/gcc/config.gcc    2008-07-18 10:37:54.000000000 +0100
++++ gcc/gcc/config.gcc 2008-07-18 11:00:42.000000000 +0100
+@@ -2097,11 +2097,12 @@
+       if test x${sh_multilibs} = x ; then
+               case ${target} in
+               sh64-superh-linux* | \
+-              sh[1234]*)      sh_multilibs=${sh_cpu_target} ;;
+               sh64* | sh5*)   sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
+-              sh-superh-*)    sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
++              sh-superh-* | \
++              sh4-*-linux*)   sh_multilibs=m4,m4-nofpu ;;
+               sh*-*-linux*)   sh_multilibs=m1,m3e,m4 ;;
+               sh*-*-netbsd*)  sh_multilibs=m3,m3e,m4 ;;
++              sh[1234]*)      sh_multilibs=${sh_cpu_target} ;;
+               *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;;
+               esac
+               if test x$with_fp = xno; then
index 3d34037..77a5596 100644 (file)
@@ -1,3 +1,5 @@
 require gcc-cross.inc
 
 DEPENDS += "gmp-native mpfr-native"
+
+EXTRA_OECONF_append_sh4 = " --with-multilib-list=m4,m4-nofpu "
index 526ec15..18d5abd 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r4"
+PR = "r5"
 require gcc-${PV}.inc
 require gcc-cross4.inc
 require gcc-configure-cross.inc