arch/powerpc: add powerpc64le support
authorCody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322eb13867a034c
parent 3321 8a753e6c5621
child 3323 99029fac116b
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
config/arch/powerpc.in
scripts/build/arch/powerpc.sh
     1.1 --- a/config/arch/powerpc.in	Sun May 11 23:55:16 2014 +0200
     1.2 +++ b/config/arch/powerpc.in	Mon May 12 00:02:13 2014 +0200
     1.3 @@ -1,8 +1,10 @@
     1.4  # powerpc specific configuration file
     1.5  
     1.6  ## select ARCH_SUPPORTS_32
     1.7 -## select ARCH_SUPPORTS_64 if EXPERIMENTAL
     1.8 +## select ARCH_SUPPORTS_64
     1.9  ## select ARCH_DEFAULT_32
    1.10 +## select ARCH_SUPPORTS_BOTH_ENDIAN
    1.11 +## select ARCH_DEFAULT_BE
    1.12  ## select ARCH_USE_MMU
    1.13  ## select ARCH_SUPPORTS_WITH_ABI
    1.14  ## select ARCH_SUPPORTS_WITH_CPU
     2.1 --- a/scripts/build/arch/powerpc.sh	Sun May 11 23:55:16 2014 +0200
     2.2 +++ b/scripts/build/arch/powerpc.sh	Mon May 12 00:02:13 2014 +0200
     2.3 @@ -1,10 +1,8 @@
     2.4  # Compute powerpc-specific values
     2.5  
     2.6  CT_DoArchTupleValues () {
     2.7 -    # The architecture part of the tuple, override only for 64-bit
     2.8 -    if [ "${CT_ARCH_64}" = "y" ]; then
     2.9 -        CT_TARGET_ARCH="powerpc64${CT_ARCH_SUFFIX}"
    2.10 -    fi
    2.11 +    # The architecture part of the tuple
    2.12 +    CT_TARGET_ARCH="powerpc${target_bits_64}${target_endian_le}${CT_ARCH_SUFFIX}"
    2.13  
    2.14      # Only override values when ABI is not the default
    2.15      case "${CT_ARCH_powerpc_ABI}" in