Second shot at moving arch/ into config/arch/ .
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 03 12:30:58 2008 +0000 (2008-10-03)
changeset 898fe3eda71a9d0
parent 897 900515add745
child 899 da93630960d1
Second shot at moving arch/ into config/arch/ .
arch/alpha/config.in
arch/alpha/functions
arch/arm/config.in
arch/arm/functions
arch/ia64/config.in
arch/ia64/functions
arch/mips/config.in
arch/mips/functions
arch/powerpc/config.in
arch/powerpc/functions
arch/sh/config.in
arch/sh/functions
arch/x86/config.in
arch/x86/functions
arch/x86_64/config.in
arch/x86_64/functions
config/arch/alpha/config.in
config/arch/alpha/functions
config/arch/arm/config.in
config/arch/arm/functions
config/arch/ia64/config.in
config/arch/ia64/functions
config/arch/mips/config.in
config/arch/mips/functions
config/arch/powerpc/config.in
config/arch/powerpc/functions
config/arch/sh/config.in
config/arch/sh/functions
config/arch/x86/config.in
config/arch/x86/functions
config/arch/x86_64/config.in
config/arch/x86_64/functions
     1.1 --- a/arch/alpha/config.in	Fri Oct 03 12:30:29 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,62 +0,0 @@
     1.4 -# Alpha specific configuration file
     1.5 -
     1.6 -config ARCH_alpha
     1.7 -    select ARCH_SUPPORT_CPU
     1.8 -    select ARCH_SUPPORT_TUNE
     1.9 -    help
    1.10 -      The Alpha architecture.
    1.11 -
    1.12 -choice
    1.13 -    bool
    1.14 -    prompt "Variant"
    1.15 -
    1.16 -config ARCH_ALPHA_EV4
    1.17 -    bool
    1.18 -    prompt "EV4"
    1.19 -
    1.20 -config ARCH_ALPHA_EV45
    1.21 -    bool
    1.22 -    prompt "EV45"
    1.23 -
    1.24 -config ARCH_ALPHA_EV5
    1.25 -    bool
    1.26 -    prompt "EV5"
    1.27 -
    1.28 -config ARCH_ALPHA_EV56
    1.29 -    bool
    1.30 -    prompt "EV56"
    1.31 -
    1.32 -config ARCH_ALPHA_EV6
    1.33 -    bool
    1.34 -    prompt "EV6"
    1.35 -
    1.36 -config ARCH_ALPHA_EV67
    1.37 -    bool
    1.38 -    prompt "EV67"
    1.39 -
    1.40 -endchoice
    1.41 -
    1.42 -config ARCH_ALPHA_VARIANT
    1.43 -    string
    1.44 -    default "ev4"   if ARCH_ALPHA_EV4
    1.45 -    default "ev45"  if ARCH_ALPHA_EV45
    1.46 -    default "ev5"   if ARCH_ALPHA_EV5
    1.47 -    default "ev56"  if ARCH_ALPHA_EV56
    1.48 -    default "ev6"   if ARCH_ALPHA_EV6
    1.49 -    default "ev67"  if ARCH_ALPHA_EV67
    1.50 -
    1.51 -config ARCH_CPU
    1.52 -    default "ev4"   if ARCH_ALPHA_EV4
    1.53 -    default "ev45"  if ARCH_ALPHA_EV45
    1.54 -    default "ev5"   if ARCH_ALPHA_EV5
    1.55 -    default "ev56"  if ARCH_ALPHA_EV56
    1.56 -    default "ev6"   if ARCH_ALPHA_EV6
    1.57 -    default "ev67"  if ARCH_ALPHA_EV67
    1.58 -
    1.59 -config ARCH_TUNE
    1.60 -    default "ev4"   if ARCH_ALPHA_EV4
    1.61 -    default "ev45"  if ARCH_ALPHA_EV45
    1.62 -    default "ev5"   if ARCH_ALPHA_EV5
    1.63 -    default "ev56"  if ARCH_ALPHA_EV56
    1.64 -    default "ev6"   if ARCH_ALPHA_EV6
    1.65 -    default "ev67"  if ARCH_ALPHA_EV67
     2.1 --- a/arch/alpha/functions	Fri Oct 03 12:30:29 2008 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,9 +0,0 @@
     2.4 -# Compute Alpha-specific values
     2.5 -
     2.6 -CT_DoArchValues () {
     2.7 -    # The architecture part of the tuple:
     2.8 -    CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_ALPHA_VARIANT}"
     2.9 -
    2.10 -    # The kernel ARCH:
    2.11 -    CT_KERNEL_ARCH=${CT_ARCH}
    2.12 -}
     3.1 --- a/arch/arm/config.in	Fri Oct 03 12:30:29 2008 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,26 +0,0 @@
     3.4 -# ARM specific configuration file
     3.5 -
     3.6 -config ARCH_arm
     3.7 -    select ARCH_SUPPORTS_BOTH_ENDIAN
     3.8 -    select ARCH_DEFAULT_LE
     3.9 -    select ARCH_SUPPORT_ARCH
    3.10 -    select ARCH_SUPPORT_CPU
    3.11 -    select ARCH_SUPPORT_TUNE
    3.12 -    select ARCH_SUPPORT_FPU
    3.13 -    help
    3.14 -      The ARM architecture, as defined by:
    3.15 -        http://www.arm.com/
    3.16 -
    3.17 -config ARCH_ARM_EABI
    3.18 -    bool
    3.19 -    prompt "Use EABI"
    3.20 -    default n
    3.21 -    help
    3.22 -      Set up the toolchain so that it generates EABI-compliant binaries.
    3.23 -
    3.24 -config ARCH_ARM_ABI_OK
    3.25 -    bool
    3.26 -    default y
    3.27 -    depends on ! ARCH_ARM_EABI
    3.28 -    select ARCH_SUPPORT_ABI
    3.29 -
     4.1 --- a/arch/arm/functions	Fri Oct 03 12:30:29 2008 +0000
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,17 +0,0 @@
     4.4 -# Compute ARM-specific values
     4.5 -
     4.6 -CT_DoArchValues() {
     4.7 -    # The architecture part of the tuple:
     4.8 -    CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
     4.9 -
    4.10 -    # The system part of the tuple:
    4.11 -    case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
    4.12 -        *glibc,y)   CT_TARGET_SYS=gnueabi;;
    4.13 -        uClibc,y)   CT_TARGET_SYS=uclibcgnueabi;;
    4.14 -        none,y)     CT_TARGET_SYS=eabi;;
    4.15 -    esac
    4.16 -
    4.17 -    # In case we're EABI, do *not* specify any ABI!
    4.18 -    # which means, either we do not have an ABI specified, or we're not EABI.
    4.19 -    CT_TestOrAbort "Internal error: CT_ARCH_ABI should not be set for EABI build." -z "${CT_ARCH_ABI}" -o -z "${CT_ARCH_ARM_EABI}"
    4.20 -}
     5.1 --- a/arch/ia64/config.in	Fri Oct 03 12:30:29 2008 +0000
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,8 +0,0 @@
     5.4 -# ia64 specific config options
     5.5 -# EXPERIMENTAL
     5.6 -
     5.7 -config ARCH_ia64
     5.8 -    select ARCH_SUPPORTS_BOTH_ENDIAN
     5.9 -    help
    5.10 -      The ia64 architecture, as defined by:
    5.11 -        http://www.intel.com/design/itanium/arch_spec.htm
     6.1 --- a/arch/ia64/functions	Fri Oct 03 12:30:29 2008 +0000
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,6 +0,0 @@
     6.4 -# Compute IA-64-specific values
     6.5 -
     6.6 -CT_DoArchValues() {
     6.7 -    # The architecture part of the tuple:
     6.8 -    CT_TARGET_ARCH="${CT_ARCH}"
     6.9 -}
     7.1 --- a/arch/mips/config.in	Fri Oct 03 12:30:29 2008 +0000
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,11 +0,0 @@
     7.4 -# MIPS specific config options
     7.5 -
     7.6 -config ARCH_mips
     7.7 -    select ARCH_SUPPORTS_BOTH_ENDIAN
     7.8 -    select ARCH_DEFAULT_BE
     7.9 -    select ARCH_SUPPORT_ARCH
    7.10 -    select ARCH_SUPPORT_ABI
    7.11 -    select ARCH_SUPPORT_TUNE
    7.12 -    help
    7.13 -      The MIPS architecture, as defined by:
    7.14 -        http://www.mips.com/
     8.1 --- a/arch/mips/functions	Fri Oct 03 12:30:29 2008 +0000
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,12 +0,0 @@
     8.4 -# Compute IA-64-specific values
     8.5 -
     8.6 -CT_DoArchValues() {
     8.7 -    # The architecture part of the tuple:
     8.8 -    CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
     8.9 -
    8.10 -    # Override CFLAGS for endianness:
    8.11 -    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
    8.12 -        y,) CT_ARCH_ENDIAN_CFLAG="-EB";;
    8.13 -        ,y) CT_ARCH_ENDIAN_CFLAG="-EL";;
    8.14 -    esac
    8.15 -}
     9.1 --- a/arch/powerpc/config.in	Fri Oct 03 12:30:29 2008 +0000
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,25 +0,0 @@
     9.4 -# powerpc specific configuration file
     9.5 -
     9.6 -config ARCH_powerpc
     9.7 -    select ARCH_SUPPORT_ABI
     9.8 -    select ARCH_SUPPORT_CPU
     9.9 -    select ARCH_SUPPORT_TUNE
    9.10 -    help
    9.11 -      The PowerPC architecture, as defined by:
    9.12 -        http://www.ibm.com/developerworks/eserver/articles/archguide.html
    9.13 -
    9.14 -config ARCH_POWERPC_SPE
    9.15 -    bool
    9.16 -    prompt "Enable SPE support"
    9.17 -    default n
    9.18 -    help
    9.19 -      Add support for the Signal Processing Engine.  This will set up
    9.20 -      the toolchain so that it supports the SPE ABI extensions. This
    9.21 -      mainly targets Freescale e500 processors.
    9.22 -
    9.23 -      Setting this option will append "spe" to the end of your target
    9.24 -      tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc
    9.25 -      configure/build system will know to include SPE ABI support.
    9.26 -      It will also automatically add "-mabi=spe -mspe" to your
    9.27 -      TARGET_CFLAGS, and "--enable-e500_double" to your CC_EXTRA_CONFIG,
    9.28 -      so you do not need to explicitly add them.
    10.1 --- a/arch/powerpc/functions	Fri Oct 03 12:30:29 2008 +0000
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,22 +0,0 @@
    10.4 -# Compute powerpc-specific values
    10.5 -
    10.6 -CT_DoArchValues () {
    10.7 -    # The architecture part of the tuple:
    10.8 -    CT_TARGET_ARCH="${CT_ARCH}"
    10.9 -
   10.10 -    # The kernel ARCH:
   10.11 -    CT_KERNEL_ARCH=powerpc
   10.12 -
   10.13 -    # Add spe in the tuplet if needed
   10.14 -    case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
   10.15 -        glibc,|eglibc,)   CT_TARGET_SYS=gnu;;
   10.16 -        glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
   10.17 -    esac
   10.18 -
   10.19 -    # Add extra flags for SPE if needed
   10.20 -    if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
   10.21 -        CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
   10.22 -        CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
   10.23 -        CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
   10.24 -    fi
   10.25 -}
    11.1 --- a/arch/sh/config.in	Fri Oct 03 12:30:29 2008 +0000
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,33 +0,0 @@
    11.4 -# Super-H specific configuration file
    11.5 -# EXPERIMENTAL
    11.6 -
    11.7 -config ARCH_sh
    11.8 -    select ARCH_SUPPORTS_BOTH_ENDIAN
    11.9 -    select ARCH_DEFAULT_LE
   11.10 -    help
   11.11 -      The Super-H architecture, as defined by:
   11.12 -        http://www.renesas.com/fmwk.jsp?cnt=superh_family_landing.jsp&fp=/products/mpumcu/superh_family/
   11.13 -
   11.14 -choice
   11.15 -    bool
   11.16 -    prompt "Variant"
   11.17 -
   11.18 -config ARCH_SH_SH3
   11.19 -    bool
   11.20 -    prompt "sh3"
   11.21 -
   11.22 -config ARCH_SH_SH4
   11.23 -    bool
   11.24 -    prompt "sh4"
   11.25 -
   11.26 -config ARCH_SH_SH4A
   11.27 -    bool
   11.28 -    prompt "sh4a"
   11.29 -
   11.30 -endchoice
   11.31 -
   11.32 -config ARCH_SH_VARIANT
   11.33 -    string
   11.34 -    default "sh3"   if ARCH_SH_SH3
   11.35 -    default "sh4"   if ARCH_SH_SH4
   11.36 -    default "sh4a"  if ARCH_SH_SH4A
    12.1 --- a/arch/sh/functions	Fri Oct 03 12:30:29 2008 +0000
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,32 +0,0 @@
    12.4 -# Compute sh-specific values
    12.5 -
    12.6 -CT_DoArchValues () {
    12.7 -    # The architecture part of the tuple:
    12.8 -    CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${target_endian_eb}"
    12.9 -
   12.10 -    # gcc ./configure flags
   12.11 -    CT_ARCH_WITH_ARCH=
   12.12 -    CT_ARCH_WITH_ABI=
   12.13 -    CT_ARCH_WITH_CPU=
   12.14 -    CT_ARCH_WITH_TUNE=
   12.15 -    CT_ARCH_WITH_FPU=
   12.16 -    CT_ARCH_WITH_FLOAT=
   12.17 -
   12.18 -    # Endianness stuff
   12.19 -    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
   12.20 -        y,) CT_ARCH_ENDIAN_CFLAG=-mb;;
   12.21 -        ,y) CT_ARCH_ENDIAN_CFLAG=-ml;;
   12.22 -    esac
   12.23 -
   12.24 -    # CFLAGS
   12.25 -    case "${CT_ARCH_SH_VARIENT}" in
   12.26 -        sh3)    CT_ARCH_ARCH_CFLAG=-m3;;
   12.27 -        sh4*)
   12.28 -            case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
   12.29 -                y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";;
   12.30 -                ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";;
   12.31 -            esac
   12.32 -            ;;
   12.33 -    esac
   12.34 -    CT_ARCH_FLOAT_CFLAG=
   12.35 -}
    13.1 --- a/arch/x86/config.in	Fri Oct 03 12:30:29 2008 +0000
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,9 +0,0 @@
    13.4 -# x86 specific options
    13.5 -
    13.6 -config ARCH_x86
    13.7 -    select ARCH_SUPPORT_ARCH
    13.8 -    select ARCH_SUPPORT_CPU
    13.9 -    select ARCH_SUPPORT_TUNE
   13.10 -    help
   13.11 -      The x86 architecture, as defined by:
   13.12 -        http://www.intel.com/
    14.1 --- a/arch/x86/functions	Fri Oct 03 12:30:29 2008 +0000
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,22 +0,0 @@
    14.4 -# Compute x86-specific values
    14.5 -
    14.6 -# This one really need a little love! :-(
    14.7 -
    14.8 -CT_DoArchValues() {
    14.9 -    # The architecture part of the tuple:
   14.10 -    arch="${CT_ARCH_ARCH}"
   14.11 -    [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
   14.12 -    case "${arch}" in
   14.13 -        nocona|athlon*64|k8|athlon-fx|opteron)
   14.14 -            CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";;
   14.15 -        "")                           CT_TARGET_ARCH=i386;;
   14.16 -        i386|i486|i586|i686)          CT_TARGET_ARCH="${arch}";;
   14.17 -        winchip*)                     CT_TARGET_ARCH=i486;;
   14.18 -        pentium|pentium-mmx|c3*)      CT_TARGET_ARCH=i586;;
   14.19 -        pentiumpro|pentium*|athlon*)  CT_TARGET_ARCH=i686;;
   14.20 -        *)                            CT_TARGET_ARCH=i586;;
   14.21 -    esac
   14.22 -
   14.23 -    # The kernel ARCH:
   14.24 -    CT_KERNEL_ARCH=i386
   14.25 -}
    15.1 --- a/arch/x86_64/config.in	Fri Oct 03 12:30:29 2008 +0000
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,9 +0,0 @@
    15.4 -# x86_64 specific options
    15.5 -
    15.6 -config ARCH_x86_64
    15.7 -    select ARCH_SUPPORT_ARCH
    15.8 -    select ARCH_SUPPORT_CPU
    15.9 -    select ARCH_SUPPORT_TUNE
   15.10 -    help
   15.11 -      The x86_64 architecture, as defined by:
   15.12 -        http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_875_7044,00.html
    16.1 --- a/arch/x86_64/functions	Fri Oct 03 12:30:29 2008 +0000
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,6 +0,0 @@
    16.4 -# Compute x86_64-specific values
    16.5 -
    16.6 -CT_DoArchValues() {
    16.7 -    # The architecture part of the tuple:
    16.8 -    CT_TARGET_ARCH="${CT_ARCH}"
    16.9 -}
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/config/arch/alpha/config.in	Fri Oct 03 12:30:58 2008 +0000
    17.3 @@ -0,0 +1,62 @@
    17.4 +# Alpha specific configuration file
    17.5 +
    17.6 +config ARCH_alpha
    17.7 +    select ARCH_SUPPORT_CPU
    17.8 +    select ARCH_SUPPORT_TUNE
    17.9 +    help
   17.10 +      The Alpha architecture.
   17.11 +
   17.12 +choice
   17.13 +    bool
   17.14 +    prompt "Variant"
   17.15 +
   17.16 +config ARCH_ALPHA_EV4
   17.17 +    bool
   17.18 +    prompt "EV4"
   17.19 +
   17.20 +config ARCH_ALPHA_EV45
   17.21 +    bool
   17.22 +    prompt "EV45"
   17.23 +
   17.24 +config ARCH_ALPHA_EV5
   17.25 +    bool
   17.26 +    prompt "EV5"
   17.27 +
   17.28 +config ARCH_ALPHA_EV56
   17.29 +    bool
   17.30 +    prompt "EV56"
   17.31 +
   17.32 +config ARCH_ALPHA_EV6
   17.33 +    bool
   17.34 +    prompt "EV6"
   17.35 +
   17.36 +config ARCH_ALPHA_EV67
   17.37 +    bool
   17.38 +    prompt "EV67"
   17.39 +
   17.40 +endchoice
   17.41 +
   17.42 +config ARCH_ALPHA_VARIANT
   17.43 +    string
   17.44 +    default "ev4"   if ARCH_ALPHA_EV4
   17.45 +    default "ev45"  if ARCH_ALPHA_EV45
   17.46 +    default "ev5"   if ARCH_ALPHA_EV5
   17.47 +    default "ev56"  if ARCH_ALPHA_EV56
   17.48 +    default "ev6"   if ARCH_ALPHA_EV6
   17.49 +    default "ev67"  if ARCH_ALPHA_EV67
   17.50 +
   17.51 +config ARCH_CPU
   17.52 +    default "ev4"   if ARCH_ALPHA_EV4
   17.53 +    default "ev45"  if ARCH_ALPHA_EV45
   17.54 +    default "ev5"   if ARCH_ALPHA_EV5
   17.55 +    default "ev56"  if ARCH_ALPHA_EV56
   17.56 +    default "ev6"   if ARCH_ALPHA_EV6
   17.57 +    default "ev67"  if ARCH_ALPHA_EV67
   17.58 +
   17.59 +config ARCH_TUNE
   17.60 +    default "ev4"   if ARCH_ALPHA_EV4
   17.61 +    default "ev45"  if ARCH_ALPHA_EV45
   17.62 +    default "ev5"   if ARCH_ALPHA_EV5
   17.63 +    default "ev56"  if ARCH_ALPHA_EV56
   17.64 +    default "ev6"   if ARCH_ALPHA_EV6
   17.65 +    default "ev67"  if ARCH_ALPHA_EV67
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/config/arch/alpha/functions	Fri Oct 03 12:30:58 2008 +0000
    18.3 @@ -0,0 +1,9 @@
    18.4 +# Compute Alpha-specific values
    18.5 +
    18.6 +CT_DoArchValues () {
    18.7 +    # The architecture part of the tuple:
    18.8 +    CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_ALPHA_VARIANT}"
    18.9 +
   18.10 +    # The kernel ARCH:
   18.11 +    CT_KERNEL_ARCH=${CT_ARCH}
   18.12 +}
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/config/arch/arm/config.in	Fri Oct 03 12:30:58 2008 +0000
    19.3 @@ -0,0 +1,26 @@
    19.4 +# ARM specific configuration file
    19.5 +
    19.6 +config ARCH_arm
    19.7 +    select ARCH_SUPPORTS_BOTH_ENDIAN
    19.8 +    select ARCH_DEFAULT_LE
    19.9 +    select ARCH_SUPPORT_ARCH
   19.10 +    select ARCH_SUPPORT_CPU
   19.11 +    select ARCH_SUPPORT_TUNE
   19.12 +    select ARCH_SUPPORT_FPU
   19.13 +    help
   19.14 +      The ARM architecture, as defined by:
   19.15 +        http://www.arm.com/
   19.16 +
   19.17 +config ARCH_ARM_EABI
   19.18 +    bool
   19.19 +    prompt "Use EABI"
   19.20 +    default n
   19.21 +    help
   19.22 +      Set up the toolchain so that it generates EABI-compliant binaries.
   19.23 +
   19.24 +config ARCH_ARM_ABI_OK
   19.25 +    bool
   19.26 +    default y
   19.27 +    depends on ! ARCH_ARM_EABI
   19.28 +    select ARCH_SUPPORT_ABI
   19.29 +
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/config/arch/arm/functions	Fri Oct 03 12:30:58 2008 +0000
    20.3 @@ -0,0 +1,17 @@
    20.4 +# Compute ARM-specific values
    20.5 +
    20.6 +CT_DoArchValues() {
    20.7 +    # The architecture part of the tuple:
    20.8 +    CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
    20.9 +
   20.10 +    # The system part of the tuple:
   20.11 +    case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
   20.12 +        *glibc,y)   CT_TARGET_SYS=gnueabi;;
   20.13 +        uClibc,y)   CT_TARGET_SYS=uclibcgnueabi;;
   20.14 +        none,y)     CT_TARGET_SYS=eabi;;
   20.15 +    esac
   20.16 +
   20.17 +    # In case we're EABI, do *not* specify any ABI!
   20.18 +    # which means, either we do not have an ABI specified, or we're not EABI.
   20.19 +    CT_TestOrAbort "Internal error: CT_ARCH_ABI should not be set for EABI build." -z "${CT_ARCH_ABI}" -o -z "${CT_ARCH_ARM_EABI}"
   20.20 +}
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/config/arch/ia64/config.in	Fri Oct 03 12:30:58 2008 +0000
    21.3 @@ -0,0 +1,8 @@
    21.4 +# ia64 specific config options
    21.5 +# EXPERIMENTAL
    21.6 +
    21.7 +config ARCH_ia64
    21.8 +    select ARCH_SUPPORTS_BOTH_ENDIAN
    21.9 +    help
   21.10 +      The ia64 architecture, as defined by:
   21.11 +        http://www.intel.com/design/itanium/arch_spec.htm
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/config/arch/ia64/functions	Fri Oct 03 12:30:58 2008 +0000
    22.3 @@ -0,0 +1,6 @@
    22.4 +# Compute IA-64-specific values
    22.5 +
    22.6 +CT_DoArchValues() {
    22.7 +    # The architecture part of the tuple:
    22.8 +    CT_TARGET_ARCH="${CT_ARCH}"
    22.9 +}
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/config/arch/mips/config.in	Fri Oct 03 12:30:58 2008 +0000
    23.3 @@ -0,0 +1,11 @@
    23.4 +# MIPS specific config options
    23.5 +
    23.6 +config ARCH_mips
    23.7 +    select ARCH_SUPPORTS_BOTH_ENDIAN
    23.8 +    select ARCH_DEFAULT_BE
    23.9 +    select ARCH_SUPPORT_ARCH
   23.10 +    select ARCH_SUPPORT_ABI
   23.11 +    select ARCH_SUPPORT_TUNE
   23.12 +    help
   23.13 +      The MIPS architecture, as defined by:
   23.14 +        http://www.mips.com/
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/config/arch/mips/functions	Fri Oct 03 12:30:58 2008 +0000
    24.3 @@ -0,0 +1,12 @@
    24.4 +# Compute IA-64-specific values
    24.5 +
    24.6 +CT_DoArchValues() {
    24.7 +    # The architecture part of the tuple:
    24.8 +    CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
    24.9 +
   24.10 +    # Override CFLAGS for endianness:
   24.11 +    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
   24.12 +        y,) CT_ARCH_ENDIAN_CFLAG="-EB";;
   24.13 +        ,y) CT_ARCH_ENDIAN_CFLAG="-EL";;
   24.14 +    esac
   24.15 +}
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/config/arch/powerpc/config.in	Fri Oct 03 12:30:58 2008 +0000
    25.3 @@ -0,0 +1,25 @@
    25.4 +# powerpc specific configuration file
    25.5 +
    25.6 +config ARCH_powerpc
    25.7 +    select ARCH_SUPPORT_ABI
    25.8 +    select ARCH_SUPPORT_CPU
    25.9 +    select ARCH_SUPPORT_TUNE
   25.10 +    help
   25.11 +      The PowerPC architecture, as defined by:
   25.12 +        http://www.ibm.com/developerworks/eserver/articles/archguide.html
   25.13 +
   25.14 +config ARCH_POWERPC_SPE
   25.15 +    bool
   25.16 +    prompt "Enable SPE support"
   25.17 +    default n
   25.18 +    help
   25.19 +      Add support for the Signal Processing Engine.  This will set up
   25.20 +      the toolchain so that it supports the SPE ABI extensions. This
   25.21 +      mainly targets Freescale e500 processors.
   25.22 +
   25.23 +      Setting this option will append "spe" to the end of your target
   25.24 +      tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc
   25.25 +      configure/build system will know to include SPE ABI support.
   25.26 +      It will also automatically add "-mabi=spe -mspe" to your
   25.27 +      TARGET_CFLAGS, and "--enable-e500_double" to your CC_EXTRA_CONFIG,
   25.28 +      so you do not need to explicitly add them.
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/config/arch/powerpc/functions	Fri Oct 03 12:30:58 2008 +0000
    26.3 @@ -0,0 +1,22 @@
    26.4 +# Compute powerpc-specific values
    26.5 +
    26.6 +CT_DoArchValues () {
    26.7 +    # The architecture part of the tuple:
    26.8 +    CT_TARGET_ARCH="${CT_ARCH}"
    26.9 +
   26.10 +    # The kernel ARCH:
   26.11 +    CT_KERNEL_ARCH=powerpc
   26.12 +
   26.13 +    # Add spe in the tuplet if needed
   26.14 +    case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
   26.15 +        glibc,|eglibc,)   CT_TARGET_SYS=gnu;;
   26.16 +        glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
   26.17 +    esac
   26.18 +
   26.19 +    # Add extra flags for SPE if needed
   26.20 +    if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
   26.21 +        CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
   26.22 +        CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
   26.23 +        CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
   26.24 +    fi
   26.25 +}
    27.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.2 +++ b/config/arch/sh/config.in	Fri Oct 03 12:30:58 2008 +0000
    27.3 @@ -0,0 +1,33 @@
    27.4 +# Super-H specific configuration file
    27.5 +# EXPERIMENTAL
    27.6 +
    27.7 +config ARCH_sh
    27.8 +    select ARCH_SUPPORTS_BOTH_ENDIAN
    27.9 +    select ARCH_DEFAULT_LE
   27.10 +    help
   27.11 +      The Super-H architecture, as defined by:
   27.12 +        http://www.renesas.com/fmwk.jsp?cnt=superh_family_landing.jsp&fp=/products/mpumcu/superh_family/
   27.13 +
   27.14 +choice
   27.15 +    bool
   27.16 +    prompt "Variant"
   27.17 +
   27.18 +config ARCH_SH_SH3
   27.19 +    bool
   27.20 +    prompt "sh3"
   27.21 +
   27.22 +config ARCH_SH_SH4
   27.23 +    bool
   27.24 +    prompt "sh4"
   27.25 +
   27.26 +config ARCH_SH_SH4A
   27.27 +    bool
   27.28 +    prompt "sh4a"
   27.29 +
   27.30 +endchoice
   27.31 +
   27.32 +config ARCH_SH_VARIANT
   27.33 +    string
   27.34 +    default "sh3"   if ARCH_SH_SH3
   27.35 +    default "sh4"   if ARCH_SH_SH4
   27.36 +    default "sh4a"  if ARCH_SH_SH4A
    28.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.2 +++ b/config/arch/sh/functions	Fri Oct 03 12:30:58 2008 +0000
    28.3 @@ -0,0 +1,32 @@
    28.4 +# Compute sh-specific values
    28.5 +
    28.6 +CT_DoArchValues () {
    28.7 +    # The architecture part of the tuple:
    28.8 +    CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${target_endian_eb}"
    28.9 +
   28.10 +    # gcc ./configure flags
   28.11 +    CT_ARCH_WITH_ARCH=
   28.12 +    CT_ARCH_WITH_ABI=
   28.13 +    CT_ARCH_WITH_CPU=
   28.14 +    CT_ARCH_WITH_TUNE=
   28.15 +    CT_ARCH_WITH_FPU=
   28.16 +    CT_ARCH_WITH_FLOAT=
   28.17 +
   28.18 +    # Endianness stuff
   28.19 +    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
   28.20 +        y,) CT_ARCH_ENDIAN_CFLAG=-mb;;
   28.21 +        ,y) CT_ARCH_ENDIAN_CFLAG=-ml;;
   28.22 +    esac
   28.23 +
   28.24 +    # CFLAGS
   28.25 +    case "${CT_ARCH_SH_VARIENT}" in
   28.26 +        sh3)    CT_ARCH_ARCH_CFLAG=-m3;;
   28.27 +        sh4*)
   28.28 +            case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
   28.29 +                y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";;
   28.30 +                ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";;
   28.31 +            esac
   28.32 +            ;;
   28.33 +    esac
   28.34 +    CT_ARCH_FLOAT_CFLAG=
   28.35 +}
    29.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.2 +++ b/config/arch/x86/config.in	Fri Oct 03 12:30:58 2008 +0000
    29.3 @@ -0,0 +1,9 @@
    29.4 +# x86 specific options
    29.5 +
    29.6 +config ARCH_x86
    29.7 +    select ARCH_SUPPORT_ARCH
    29.8 +    select ARCH_SUPPORT_CPU
    29.9 +    select ARCH_SUPPORT_TUNE
   29.10 +    help
   29.11 +      The x86 architecture, as defined by:
   29.12 +        http://www.intel.com/
    30.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.2 +++ b/config/arch/x86/functions	Fri Oct 03 12:30:58 2008 +0000
    30.3 @@ -0,0 +1,22 @@
    30.4 +# Compute x86-specific values
    30.5 +
    30.6 +# This one really need a little love! :-(
    30.7 +
    30.8 +CT_DoArchValues() {
    30.9 +    # The architecture part of the tuple:
   30.10 +    arch="${CT_ARCH_ARCH}"
   30.11 +    [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
   30.12 +    case "${arch}" in
   30.13 +        nocona|athlon*64|k8|athlon-fx|opteron)
   30.14 +            CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";;
   30.15 +        "")                           CT_TARGET_ARCH=i386;;
   30.16 +        i386|i486|i586|i686)          CT_TARGET_ARCH="${arch}";;
   30.17 +        winchip*)                     CT_TARGET_ARCH=i486;;
   30.18 +        pentium|pentium-mmx|c3*)      CT_TARGET_ARCH=i586;;
   30.19 +        pentiumpro|pentium*|athlon*)  CT_TARGET_ARCH=i686;;
   30.20 +        *)                            CT_TARGET_ARCH=i586;;
   30.21 +    esac
   30.22 +
   30.23 +    # The kernel ARCH:
   30.24 +    CT_KERNEL_ARCH=i386
   30.25 +}
    31.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.2 +++ b/config/arch/x86_64/config.in	Fri Oct 03 12:30:58 2008 +0000
    31.3 @@ -0,0 +1,9 @@
    31.4 +# x86_64 specific options
    31.5 +
    31.6 +config ARCH_x86_64
    31.7 +    select ARCH_SUPPORT_ARCH
    31.8 +    select ARCH_SUPPORT_CPU
    31.9 +    select ARCH_SUPPORT_TUNE
   31.10 +    help
   31.11 +      The x86_64 architecture, as defined by:
   31.12 +        http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_875_7044,00.html
    32.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.2 +++ b/config/arch/x86_64/functions	Fri Oct 03 12:30:58 2008 +0000
    32.3 @@ -0,0 +1,6 @@
    32.4 +# Compute x86_64-specific values
    32.5 +
    32.6 +CT_DoArchValues() {
    32.7 +    # The architecture part of the tuple:
    32.8 +    CT_TARGET_ARCH="${CT_ARCH}"
    32.9 +}