scripts/build/arch/x86.sh
author Cody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322 eb13867a034c
parent 2759 d063b1ae8c1b
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@383
     1
# Compute x86-specific values
yann@383
     2
yann@1635
     3
# This one really needs a little love! :-(
yann@383
     4
yann@964
     5
CT_DoArchTupleValues() {
yann@1635
     6
    # Override the architecture part of the tuple:
yann@1635
     7
    if [ "${CT_ARCH_64}" = "y" ]; then
yann@1635
     8
        CT_TARGET_ARCH=x86_64
yann@1635
     9
    else
yann@1635
    10
        arch="${CT_ARCH_ARCH}"
yann@1635
    11
        [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
yann@1635
    12
        case "${arch}" in
yann@1635
    13
            "")                           CT_TARGET_ARCH=i386;;
yann@1635
    14
            i386|i486|i586|i686)          CT_TARGET_ARCH="${arch}";;
yann@1635
    15
            winchip*)                     CT_TARGET_ARCH=i486;;
yann@1635
    16
            pentium|pentium-mmx|c3*)      CT_TARGET_ARCH=i586;;
yann@1635
    17
            pentiumpro|pentium*|athlon*)  CT_TARGET_ARCH=i686;;
titus@2759
    18
            prescott)                     CT_TARGET_ARCH=i686;;
yann@1635
    19
            *)                            CT_TARGET_ARCH=i586;;
yann@1635
    20
        esac
yann@1635
    21
    fi
w@3169
    22
    CT_TARGET_ARCH="${CT_TARGET_ARCH}${CT_ARCH_SUFFIX}"
yann@383
    23
}