# HG changeset patch # User "Yann E. MORIN" # Date 1223037058 0 # Node ID fe3eda71a9d040cf5bb93acd6044d682280fd53e # Parent 900515add745122bc0cdfcd37e6486e5554e6e10 Second shot at moving arch/ into config/arch/ . diff -r 900515add745 -r fe3eda71a9d0 arch/alpha/config.in --- a/arch/alpha/config.in Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -# Alpha specific configuration file - -config ARCH_alpha - select ARCH_SUPPORT_CPU - select ARCH_SUPPORT_TUNE - help - The Alpha architecture. - -choice - bool - prompt "Variant" - -config ARCH_ALPHA_EV4 - bool - prompt "EV4" - -config ARCH_ALPHA_EV45 - bool - prompt "EV45" - -config ARCH_ALPHA_EV5 - bool - prompt "EV5" - -config ARCH_ALPHA_EV56 - bool - prompt "EV56" - -config ARCH_ALPHA_EV6 - bool - prompt "EV6" - -config ARCH_ALPHA_EV67 - bool - prompt "EV67" - -endchoice - -config ARCH_ALPHA_VARIANT - string - default "ev4" if ARCH_ALPHA_EV4 - default "ev45" if ARCH_ALPHA_EV45 - default "ev5" if ARCH_ALPHA_EV5 - default "ev56" if ARCH_ALPHA_EV56 - default "ev6" if ARCH_ALPHA_EV6 - default "ev67" if ARCH_ALPHA_EV67 - -config ARCH_CPU - default "ev4" if ARCH_ALPHA_EV4 - default "ev45" if ARCH_ALPHA_EV45 - default "ev5" if ARCH_ALPHA_EV5 - default "ev56" if ARCH_ALPHA_EV56 - default "ev6" if ARCH_ALPHA_EV6 - default "ev67" if ARCH_ALPHA_EV67 - -config ARCH_TUNE - default "ev4" if ARCH_ALPHA_EV4 - default "ev45" if ARCH_ALPHA_EV45 - default "ev5" if ARCH_ALPHA_EV5 - default "ev56" if ARCH_ALPHA_EV56 - default "ev6" if ARCH_ALPHA_EV6 - default "ev67" if ARCH_ALPHA_EV67 diff -r 900515add745 -r fe3eda71a9d0 arch/alpha/functions --- a/arch/alpha/functions Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -# Compute Alpha-specific values - -CT_DoArchValues () { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_ALPHA_VARIANT}" - - # The kernel ARCH: - CT_KERNEL_ARCH=${CT_ARCH} -} diff -r 900515add745 -r fe3eda71a9d0 arch/arm/config.in --- a/arch/arm/config.in Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -# ARM specific configuration file - -config ARCH_arm - select ARCH_SUPPORTS_BOTH_ENDIAN - select ARCH_DEFAULT_LE - select ARCH_SUPPORT_ARCH - select ARCH_SUPPORT_CPU - select ARCH_SUPPORT_TUNE - select ARCH_SUPPORT_FPU - help - The ARM architecture, as defined by: - http://www.arm.com/ - -config ARCH_ARM_EABI - bool - prompt "Use EABI" - default n - help - Set up the toolchain so that it generates EABI-compliant binaries. - -config ARCH_ARM_ABI_OK - bool - default y - depends on ! ARCH_ARM_EABI - select ARCH_SUPPORT_ABI - diff -r 900515add745 -r fe3eda71a9d0 arch/arm/functions --- a/arch/arm/functions Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -# Compute ARM-specific values - -CT_DoArchValues() { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}" - - # The system part of the tuple: - case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in - *glibc,y) CT_TARGET_SYS=gnueabi;; - uClibc,y) CT_TARGET_SYS=uclibcgnueabi;; - none,y) CT_TARGET_SYS=eabi;; - esac - - # In case we're EABI, do *not* specify any ABI! - # which means, either we do not have an ABI specified, or we're not EABI. - CT_TestOrAbort "Internal error: CT_ARCH_ABI should not be set for EABI build." -z "${CT_ARCH_ABI}" -o -z "${CT_ARCH_ARM_EABI}" -} diff -r 900515add745 -r fe3eda71a9d0 arch/ia64/config.in --- a/arch/ia64/config.in Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -# ia64 specific config options -# EXPERIMENTAL - -config ARCH_ia64 - select ARCH_SUPPORTS_BOTH_ENDIAN - help - The ia64 architecture, as defined by: - http://www.intel.com/design/itanium/arch_spec.htm diff -r 900515add745 -r fe3eda71a9d0 arch/ia64/functions --- a/arch/ia64/functions Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -# Compute IA-64-specific values - -CT_DoArchValues() { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}" -} diff -r 900515add745 -r fe3eda71a9d0 arch/mips/config.in --- a/arch/mips/config.in Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -# MIPS specific config options - -config ARCH_mips - select ARCH_SUPPORTS_BOTH_ENDIAN - select ARCH_DEFAULT_BE - select ARCH_SUPPORT_ARCH - select ARCH_SUPPORT_ABI - select ARCH_SUPPORT_TUNE - help - The MIPS architecture, as defined by: - http://www.mips.com/ diff -r 900515add745 -r fe3eda71a9d0 arch/mips/functions --- a/arch/mips/functions Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -# Compute IA-64-specific values - -CT_DoArchValues() { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}" - - # Override CFLAGS for endianness: - case "${CT_ARCH_BE},${CT_ARCH_LE}" in - y,) CT_ARCH_ENDIAN_CFLAG="-EB";; - ,y) CT_ARCH_ENDIAN_CFLAG="-EL";; - esac -} diff -r 900515add745 -r fe3eda71a9d0 arch/powerpc/config.in --- a/arch/powerpc/config.in Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -# powerpc specific configuration file - -config ARCH_powerpc - select ARCH_SUPPORT_ABI - select ARCH_SUPPORT_CPU - select ARCH_SUPPORT_TUNE - help - The PowerPC architecture, as defined by: - http://www.ibm.com/developerworks/eserver/articles/archguide.html - -config ARCH_POWERPC_SPE - bool - prompt "Enable SPE support" - default n - help - Add support for the Signal Processing Engine. This will set up - the toolchain so that it supports the SPE ABI extensions. This - mainly targets Freescale e500 processors. - - Setting this option will append "spe" to the end of your target - tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc - configure/build system will know to include SPE ABI support. - It will also automatically add "-mabi=spe -mspe" to your - TARGET_CFLAGS, and "--enable-e500_double" to your CC_EXTRA_CONFIG, - so you do not need to explicitly add them. diff -r 900515add745 -r fe3eda71a9d0 arch/powerpc/functions --- a/arch/powerpc/functions Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -# Compute powerpc-specific values - -CT_DoArchValues () { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}" - - # The kernel ARCH: - CT_KERNEL_ARCH=powerpc - - # Add spe in the tuplet if needed - case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in - glibc,|eglibc,) CT_TARGET_SYS=gnu;; - glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;; - esac - - # Add extra flags for SPE if needed - if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then - CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe" - CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double" - CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double" - fi -} diff -r 900515add745 -r fe3eda71a9d0 arch/sh/config.in --- a/arch/sh/config.in Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -# Super-H specific configuration file -# EXPERIMENTAL - -config ARCH_sh - select ARCH_SUPPORTS_BOTH_ENDIAN - select ARCH_DEFAULT_LE - help - The Super-H architecture, as defined by: - http://www.renesas.com/fmwk.jsp?cnt=superh_family_landing.jsp&fp=/products/mpumcu/superh_family/ - -choice - bool - prompt "Variant" - -config ARCH_SH_SH3 - bool - prompt "sh3" - -config ARCH_SH_SH4 - bool - prompt "sh4" - -config ARCH_SH_SH4A - bool - prompt "sh4a" - -endchoice - -config ARCH_SH_VARIANT - string - default "sh3" if ARCH_SH_SH3 - default "sh4" if ARCH_SH_SH4 - default "sh4a" if ARCH_SH_SH4A diff -r 900515add745 -r fe3eda71a9d0 arch/sh/functions --- a/arch/sh/functions Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -# Compute sh-specific values - -CT_DoArchValues () { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${target_endian_eb}" - - # gcc ./configure flags - CT_ARCH_WITH_ARCH= - CT_ARCH_WITH_ABI= - CT_ARCH_WITH_CPU= - CT_ARCH_WITH_TUNE= - CT_ARCH_WITH_FPU= - CT_ARCH_WITH_FLOAT= - - # Endianness stuff - case "${CT_ARCH_BE},${CT_ARCH_LE}" in - y,) CT_ARCH_ENDIAN_CFLAG=-mb;; - ,y) CT_ARCH_ENDIAN_CFLAG=-ml;; - esac - - # CFLAGS - case "${CT_ARCH_SH_VARIENT}" in - sh3) CT_ARCH_ARCH_CFLAG=-m3;; - sh4*) - case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in - y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";; - ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";; - esac - ;; - esac - CT_ARCH_FLOAT_CFLAG= -} diff -r 900515add745 -r fe3eda71a9d0 arch/x86/config.in --- a/arch/x86/config.in Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -# x86 specific options - -config ARCH_x86 - select ARCH_SUPPORT_ARCH - select ARCH_SUPPORT_CPU - select ARCH_SUPPORT_TUNE - help - The x86 architecture, as defined by: - http://www.intel.com/ diff -r 900515add745 -r fe3eda71a9d0 arch/x86/functions --- a/arch/x86/functions Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -# Compute x86-specific values - -# This one really need a little love! :-( - -CT_DoArchValues() { - # The architecture part of the tuple: - arch="${CT_ARCH_ARCH}" - [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}" - case "${arch}" in - nocona|athlon*64|k8|athlon-fx|opteron) - CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";; - "") CT_TARGET_ARCH=i386;; - i386|i486|i586|i686) CT_TARGET_ARCH="${arch}";; - winchip*) CT_TARGET_ARCH=i486;; - pentium|pentium-mmx|c3*) CT_TARGET_ARCH=i586;; - pentiumpro|pentium*|athlon*) CT_TARGET_ARCH=i686;; - *) CT_TARGET_ARCH=i586;; - esac - - # The kernel ARCH: - CT_KERNEL_ARCH=i386 -} diff -r 900515add745 -r fe3eda71a9d0 arch/x86_64/config.in --- a/arch/x86_64/config.in Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -# x86_64 specific options - -config ARCH_x86_64 - select ARCH_SUPPORT_ARCH - select ARCH_SUPPORT_CPU - select ARCH_SUPPORT_TUNE - help - The x86_64 architecture, as defined by: - http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_875_7044,00.html diff -r 900515add745 -r fe3eda71a9d0 arch/x86_64/functions --- a/arch/x86_64/functions Fri Oct 03 12:30:29 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -# Compute x86_64-specific values - -CT_DoArchValues() { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}" -} diff -r 900515add745 -r fe3eda71a9d0 config/arch/alpha/config.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/alpha/config.in Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,62 @@ +# Alpha specific configuration file + +config ARCH_alpha + select ARCH_SUPPORT_CPU + select ARCH_SUPPORT_TUNE + help + The Alpha architecture. + +choice + bool + prompt "Variant" + +config ARCH_ALPHA_EV4 + bool + prompt "EV4" + +config ARCH_ALPHA_EV45 + bool + prompt "EV45" + +config ARCH_ALPHA_EV5 + bool + prompt "EV5" + +config ARCH_ALPHA_EV56 + bool + prompt "EV56" + +config ARCH_ALPHA_EV6 + bool + prompt "EV6" + +config ARCH_ALPHA_EV67 + bool + prompt "EV67" + +endchoice + +config ARCH_ALPHA_VARIANT + string + default "ev4" if ARCH_ALPHA_EV4 + default "ev45" if ARCH_ALPHA_EV45 + default "ev5" if ARCH_ALPHA_EV5 + default "ev56" if ARCH_ALPHA_EV56 + default "ev6" if ARCH_ALPHA_EV6 + default "ev67" if ARCH_ALPHA_EV67 + +config ARCH_CPU + default "ev4" if ARCH_ALPHA_EV4 + default "ev45" if ARCH_ALPHA_EV45 + default "ev5" if ARCH_ALPHA_EV5 + default "ev56" if ARCH_ALPHA_EV56 + default "ev6" if ARCH_ALPHA_EV6 + default "ev67" if ARCH_ALPHA_EV67 + +config ARCH_TUNE + default "ev4" if ARCH_ALPHA_EV4 + default "ev45" if ARCH_ALPHA_EV45 + default "ev5" if ARCH_ALPHA_EV5 + default "ev56" if ARCH_ALPHA_EV56 + default "ev6" if ARCH_ALPHA_EV6 + default "ev67" if ARCH_ALPHA_EV67 diff -r 900515add745 -r fe3eda71a9d0 config/arch/alpha/functions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/alpha/functions Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,9 @@ +# Compute Alpha-specific values + +CT_DoArchValues () { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_ALPHA_VARIANT}" + + # The kernel ARCH: + CT_KERNEL_ARCH=${CT_ARCH} +} diff -r 900515add745 -r fe3eda71a9d0 config/arch/arm/config.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/arm/config.in Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,26 @@ +# ARM specific configuration file + +config ARCH_arm + select ARCH_SUPPORTS_BOTH_ENDIAN + select ARCH_DEFAULT_LE + select ARCH_SUPPORT_ARCH + select ARCH_SUPPORT_CPU + select ARCH_SUPPORT_TUNE + select ARCH_SUPPORT_FPU + help + The ARM architecture, as defined by: + http://www.arm.com/ + +config ARCH_ARM_EABI + bool + prompt "Use EABI" + default n + help + Set up the toolchain so that it generates EABI-compliant binaries. + +config ARCH_ARM_ABI_OK + bool + default y + depends on ! ARCH_ARM_EABI + select ARCH_SUPPORT_ABI + diff -r 900515add745 -r fe3eda71a9d0 config/arch/arm/functions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/arm/functions Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,17 @@ +# Compute ARM-specific values + +CT_DoArchValues() { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}" + + # The system part of the tuple: + case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in + *glibc,y) CT_TARGET_SYS=gnueabi;; + uClibc,y) CT_TARGET_SYS=uclibcgnueabi;; + none,y) CT_TARGET_SYS=eabi;; + esac + + # In case we're EABI, do *not* specify any ABI! + # which means, either we do not have an ABI specified, or we're not EABI. + CT_TestOrAbort "Internal error: CT_ARCH_ABI should not be set for EABI build." -z "${CT_ARCH_ABI}" -o -z "${CT_ARCH_ARM_EABI}" +} diff -r 900515add745 -r fe3eda71a9d0 config/arch/ia64/config.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/ia64/config.in Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,8 @@ +# ia64 specific config options +# EXPERIMENTAL + +config ARCH_ia64 + select ARCH_SUPPORTS_BOTH_ENDIAN + help + The ia64 architecture, as defined by: + http://www.intel.com/design/itanium/arch_spec.htm diff -r 900515add745 -r fe3eda71a9d0 config/arch/ia64/functions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/ia64/functions Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,6 @@ +# Compute IA-64-specific values + +CT_DoArchValues() { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}" +} diff -r 900515add745 -r fe3eda71a9d0 config/arch/mips/config.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/mips/config.in Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,11 @@ +# MIPS specific config options + +config ARCH_mips + select ARCH_SUPPORTS_BOTH_ENDIAN + select ARCH_DEFAULT_BE + select ARCH_SUPPORT_ARCH + select ARCH_SUPPORT_ABI + select ARCH_SUPPORT_TUNE + help + The MIPS architecture, as defined by: + http://www.mips.com/ diff -r 900515add745 -r fe3eda71a9d0 config/arch/mips/functions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/mips/functions Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,12 @@ +# Compute IA-64-specific values + +CT_DoArchValues() { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}" + + # Override CFLAGS for endianness: + case "${CT_ARCH_BE},${CT_ARCH_LE}" in + y,) CT_ARCH_ENDIAN_CFLAG="-EB";; + ,y) CT_ARCH_ENDIAN_CFLAG="-EL";; + esac +} diff -r 900515add745 -r fe3eda71a9d0 config/arch/powerpc/config.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/powerpc/config.in Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,25 @@ +# powerpc specific configuration file + +config ARCH_powerpc + select ARCH_SUPPORT_ABI + select ARCH_SUPPORT_CPU + select ARCH_SUPPORT_TUNE + help + The PowerPC architecture, as defined by: + http://www.ibm.com/developerworks/eserver/articles/archguide.html + +config ARCH_POWERPC_SPE + bool + prompt "Enable SPE support" + default n + help + Add support for the Signal Processing Engine. This will set up + the toolchain so that it supports the SPE ABI extensions. This + mainly targets Freescale e500 processors. + + Setting this option will append "spe" to the end of your target + tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc + configure/build system will know to include SPE ABI support. + It will also automatically add "-mabi=spe -mspe" to your + TARGET_CFLAGS, and "--enable-e500_double" to your CC_EXTRA_CONFIG, + so you do not need to explicitly add them. diff -r 900515add745 -r fe3eda71a9d0 config/arch/powerpc/functions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/powerpc/functions Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,22 @@ +# Compute powerpc-specific values + +CT_DoArchValues () { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}" + + # The kernel ARCH: + CT_KERNEL_ARCH=powerpc + + # Add spe in the tuplet if needed + case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in + glibc,|eglibc,) CT_TARGET_SYS=gnu;; + glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;; + esac + + # Add extra flags for SPE if needed + if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then + CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe" + CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double" + CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double" + fi +} diff -r 900515add745 -r fe3eda71a9d0 config/arch/sh/config.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/sh/config.in Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,33 @@ +# Super-H specific configuration file +# EXPERIMENTAL + +config ARCH_sh + select ARCH_SUPPORTS_BOTH_ENDIAN + select ARCH_DEFAULT_LE + help + The Super-H architecture, as defined by: + http://www.renesas.com/fmwk.jsp?cnt=superh_family_landing.jsp&fp=/products/mpumcu/superh_family/ + +choice + bool + prompt "Variant" + +config ARCH_SH_SH3 + bool + prompt "sh3" + +config ARCH_SH_SH4 + bool + prompt "sh4" + +config ARCH_SH_SH4A + bool + prompt "sh4a" + +endchoice + +config ARCH_SH_VARIANT + string + default "sh3" if ARCH_SH_SH3 + default "sh4" if ARCH_SH_SH4 + default "sh4a" if ARCH_SH_SH4A diff -r 900515add745 -r fe3eda71a9d0 config/arch/sh/functions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/sh/functions Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,32 @@ +# Compute sh-specific values + +CT_DoArchValues () { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${target_endian_eb}" + + # gcc ./configure flags + CT_ARCH_WITH_ARCH= + CT_ARCH_WITH_ABI= + CT_ARCH_WITH_CPU= + CT_ARCH_WITH_TUNE= + CT_ARCH_WITH_FPU= + CT_ARCH_WITH_FLOAT= + + # Endianness stuff + case "${CT_ARCH_BE},${CT_ARCH_LE}" in + y,) CT_ARCH_ENDIAN_CFLAG=-mb;; + ,y) CT_ARCH_ENDIAN_CFLAG=-ml;; + esac + + # CFLAGS + case "${CT_ARCH_SH_VARIENT}" in + sh3) CT_ARCH_ARCH_CFLAG=-m3;; + sh4*) + case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in + y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";; + ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";; + esac + ;; + esac + CT_ARCH_FLOAT_CFLAG= +} diff -r 900515add745 -r fe3eda71a9d0 config/arch/x86/config.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/x86/config.in Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,9 @@ +# x86 specific options + +config ARCH_x86 + select ARCH_SUPPORT_ARCH + select ARCH_SUPPORT_CPU + select ARCH_SUPPORT_TUNE + help + The x86 architecture, as defined by: + http://www.intel.com/ diff -r 900515add745 -r fe3eda71a9d0 config/arch/x86/functions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/x86/functions Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,22 @@ +# Compute x86-specific values + +# This one really need a little love! :-( + +CT_DoArchValues() { + # The architecture part of the tuple: + arch="${CT_ARCH_ARCH}" + [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}" + case "${arch}" in + nocona|athlon*64|k8|athlon-fx|opteron) + CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";; + "") CT_TARGET_ARCH=i386;; + i386|i486|i586|i686) CT_TARGET_ARCH="${arch}";; + winchip*) CT_TARGET_ARCH=i486;; + pentium|pentium-mmx|c3*) CT_TARGET_ARCH=i586;; + pentiumpro|pentium*|athlon*) CT_TARGET_ARCH=i686;; + *) CT_TARGET_ARCH=i586;; + esac + + # The kernel ARCH: + CT_KERNEL_ARCH=i386 +} diff -r 900515add745 -r fe3eda71a9d0 config/arch/x86_64/config.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/x86_64/config.in Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,9 @@ +# x86_64 specific options + +config ARCH_x86_64 + select ARCH_SUPPORT_ARCH + select ARCH_SUPPORT_CPU + select ARCH_SUPPORT_TUNE + help + The x86_64 architecture, as defined by: + http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_875_7044,00.html diff -r 900515add745 -r fe3eda71a9d0 config/arch/x86_64/functions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/x86_64/functions Fri Oct 03 12:30:58 2008 +0000 @@ -0,0 +1,6 @@ +# Compute x86_64-specific values + +CT_DoArchValues() { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}" +}