yann@1069: Original patch from Gentoo: yann@1069: gentoo/src/patchsets/binutils/2.19/12_all_sh-targets.patch yann@1069: yann@1069: r10231 | lethal | 2005-05-02 09:58:00 -0400 (Mon, 02 May 2005) | 13 lines yann@1069: yann@1069: Likewise, binutils has no idea about any of these new targets either, so we yann@1069: fix that up too.. now we're able to actually build a real toolchain for yann@1069: sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more yann@1069: inept targets than that one, really. Go look, I promise). yann@1069: yann@1069: diff -durN binutils-2.19.orig/configure binutils-2.19/configure yann@1069: --- binutils-2.19.orig/configure 2008-11-23 16:23:44.000000000 +0100 yann@1069: +++ binutils-2.19/configure 2008-11-23 16:23:57.000000000 +0100 yann@1069: @@ -2281,7 +2281,7 @@ yann@1069: am33_2.0-*-linux*) yann@1069: noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" yann@1069: ;; yann@1069: - sh-*-linux*) yann@1069: + sh*-*-linux*) yann@1069: noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" yann@1069: ;; yann@1069: sh*-*-pe|mips*-*-pe|*arm-wince-pe) yann@1069: @@ -2606,7 +2606,7 @@ yann@1069: romp-*-*) yann@1069: noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" yann@1069: ;; yann@1069: - sh-*-* | sh64-*-*) yann@1069: + sh*-*-* | sh64-*-*) yann@1069: case "${host}" in yann@1069: i[3456789]86-*-vsta) ;; # don't add gprof back in yann@1069: i[3456789]86-*-go32*) ;; # don't add gprof back in yann@1069: diff -durN binutils-2.19.orig/configure.ac binutils-2.19/configure.ac yann@1069: --- binutils-2.19.orig/configure.ac 2008-10-16 15:45:42.000000000 +0200 yann@1069: +++ binutils-2.19/configure.ac 2008-11-23 16:23:57.000000000 +0100 yann@1069: @@ -530,7 +530,7 @@ yann@1069: am33_2.0-*-linux*) yann@1069: noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" yann@1069: ;; yann@1069: - sh-*-linux*) yann@1069: + sh*-*-linux*) yann@1069: noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" yann@1069: ;; yann@1069: sh*-*-pe|mips*-*-pe|*arm-wince-pe) yann@1069: @@ -855,7 +855,7 @@ yann@1069: romp-*-*) yann@1069: noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" yann@1069: ;; yann@1069: - sh-*-* | sh64-*-*) yann@1069: + sh*-*-* | sh64-*-*) yann@1069: case "${host}" in yann@1069: i[[3456789]]86-*-vsta) ;; # don't add gprof back in yann@1069: i[[3456789]]86-*-go32*) ;; # don't add gprof back in