patches/binutils/2.21.1a/120-sh-conf.patch
author Cody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322 eb13867a034c
permissions -rw-r--r--
arch/powerpc: add powerpc64le support

Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).

powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).

Also make powerpc64 non-experimental. It's practically old at this point.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
yann@2665
     1
diff -durN binutils-2.21.1.orig/configure binutils-2.21.1/configure
yann@2665
     2
--- binutils-2.21.1.orig/configure	2011-09-12 13:39:06.292251293 +0200
yann@2665
     3
+++ binutils-2.21.1/configure	2011-09-12 13:39:07.135581381 +0200
yann@2665
     4
@@ -3148,7 +3148,7 @@
yann@2665
     5
   am33_2.0-*-linux*)
yann@2665
     6
     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
yann@2665
     7
     ;;
yann@2665
     8
-  sh-*-linux*)
yann@2665
     9
+  sh*-*-linux*)
yann@2665
    10
     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
yann@2665
    11
     ;;
yann@2665
    12
   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
yann@2665
    13
@@ -3487,7 +3487,7 @@
yann@2665
    14
   romp-*-*)
yann@2665
    15
     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
yann@2665
    16
     ;;
yann@2665
    17
-  sh-*-* | sh64-*-*)
yann@2665
    18
+  sh*-*-* | sh64-*-*)
yann@2665
    19
     case "${host}" in
yann@2665
    20
       i[3456789]86-*-vsta) ;; # don't add gprof back in
yann@2665
    21
       i[3456789]86-*-go32*) ;; # don't add gprof back in
yann@2665
    22
diff -durN binutils-2.21.1.orig/configure.ac binutils-2.21.1/configure.ac
yann@2665
    23
--- binutils-2.21.1.orig/configure.ac	2011-09-12 13:39:06.308917895 +0200
yann@2665
    24
+++ binutils-2.21.1/configure.ac	2011-09-12 13:39:07.145581342 +0200
yann@2665
    25
@@ -620,7 +620,7 @@
yann@2665
    26
   am33_2.0-*-linux*)
yann@2665
    27
     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
yann@2665
    28
     ;;
yann@2665
    29
-  sh-*-linux*)
yann@2665
    30
+  sh*-*-linux*)
yann@2665
    31
     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
yann@2665
    32
     ;;    
yann@2665
    33
   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
yann@2665
    34
@@ -959,7 +959,7 @@
yann@2665
    35
   romp-*-*)
yann@2665
    36
     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
yann@2665
    37
     ;;
yann@2665
    38
-  sh-*-* | sh64-*-*)
yann@2665
    39
+  sh*-*-* | sh64-*-*)
yann@2665
    40
     case "${host}" in
yann@2665
    41
       i[[3456789]]86-*-vsta) ;; # don't add gprof back in
yann@2665
    42
       i[[3456789]]86-*-go32*) ;; # don't add gprof back in