diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-05 15:32:00 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-05 15:32:00 +0000 |
commit | b8d189b2967843015376d5696b244958cba44202 (patch) | |
tree | c6c6fc2e4d462f63f3268feefc3ed8d7c207f12f /config/arch | |
parent | 689f4b103ce4e33f612e91ec83b40d19bc892d8d (diff) | |
download | crosstool-ng-b8d189b2967843015376d5696b244958cba44202.tar.gz crosstool-ng-b8d189b2967843015376d5696b244958cba44202.tar.bz2 crosstool-ng-b8d189b2967843015376d5696b244958cba44202.zip |
Separate the architecture config file and function script.
/trunk/kconfig/kconfig.mk | 46 23 23 0 +++++++++++++++++++++++-----------------------
/trunk/scripts/crosstool.sh | 2 1 1 0 +-
/trunk/docs/overview.txt | 28 11 17 0 +++++++++++-----------------
3 files changed, 35 insertions(+), 41 deletions(-)
Diffstat (limited to 'config/arch')
-rw-r--r-- | config/arch/alpha.in (renamed from config/arch/alpha/config.in) | 0 | ||||
-rw-r--r-- | config/arch/alpha/functions | 9 | ||||
-rw-r--r-- | config/arch/arm.in (renamed from config/arch/arm/config.in) | 0 | ||||
-rw-r--r-- | config/arch/arm/functions | 17 | ||||
-rw-r--r-- | config/arch/ia64.in (renamed from config/arch/ia64/config.in) | 0 | ||||
-rw-r--r-- | config/arch/ia64/functions | 6 | ||||
-rw-r--r-- | config/arch/mips.in (renamed from config/arch/mips/config.in) | 0 | ||||
-rw-r--r-- | config/arch/mips/functions | 12 | ||||
-rw-r--r-- | config/arch/powerpc.in (renamed from config/arch/powerpc/config.in) | 0 | ||||
-rw-r--r-- | config/arch/powerpc/functions | 22 | ||||
-rw-r--r-- | config/arch/sh.in (renamed from config/arch/sh/config.in) | 0 | ||||
-rw-r--r-- | config/arch/sh/functions | 32 | ||||
-rw-r--r-- | config/arch/x86.in (renamed from config/arch/x86/config.in) | 0 | ||||
-rw-r--r-- | config/arch/x86/functions | 22 | ||||
-rw-r--r-- | config/arch/x86_64.in (renamed from config/arch/x86_64/config.in) | 0 | ||||
-rw-r--r-- | config/arch/x86_64/functions | 6 |
16 files changed, 0 insertions, 126 deletions
diff --git a/config/arch/alpha/config.in b/config/arch/alpha.in index cf8157a2..cf8157a2 100644 --- a/config/arch/alpha/config.in +++ b/config/arch/alpha.in diff --git a/config/arch/alpha/functions b/config/arch/alpha/functions deleted file mode 100644 index ea8ef536..00000000 --- a/config/arch/alpha/functions +++ /dev/null @@ -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 --git a/config/arch/arm/config.in b/config/arch/arm.in index a3c3d975..a3c3d975 100644 --- a/config/arch/arm/config.in +++ b/config/arch/arm.in diff --git a/config/arch/arm/functions b/config/arch/arm/functions deleted file mode 100644 index a1b8542c..00000000 --- a/config/arch/arm/functions +++ /dev/null @@ -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 --git a/config/arch/ia64/config.in b/config/arch/ia64.in index ad0d9fd3..ad0d9fd3 100644 --- a/config/arch/ia64/config.in +++ b/config/arch/ia64.in diff --git a/config/arch/ia64/functions b/config/arch/ia64/functions deleted file mode 100644 index 76f34ddb..00000000 --- a/config/arch/ia64/functions +++ /dev/null @@ -1,6 +0,0 @@ -# Compute IA-64-specific values - -CT_DoArchValues() { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}" -} diff --git a/config/arch/mips/config.in b/config/arch/mips.in index 0f91e83c..0f91e83c 100644 --- a/config/arch/mips/config.in +++ b/config/arch/mips.in diff --git a/config/arch/mips/functions b/config/arch/mips/functions deleted file mode 100644 index 4bf0501d..00000000 --- a/config/arch/mips/functions +++ /dev/null @@ -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 --git a/config/arch/powerpc/config.in b/config/arch/powerpc.in index 448065a5..448065a5 100644 --- a/config/arch/powerpc/config.in +++ b/config/arch/powerpc.in diff --git a/config/arch/powerpc/functions b/config/arch/powerpc/functions deleted file mode 100644 index 94ad11cd..00000000 --- a/config/arch/powerpc/functions +++ /dev/null @@ -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 --git a/config/arch/sh/config.in b/config/arch/sh.in index b21ee1bb..b21ee1bb 100644 --- a/config/arch/sh/config.in +++ b/config/arch/sh.in diff --git a/config/arch/sh/functions b/config/arch/sh/functions deleted file mode 100644 index b6dbc026..00000000 --- a/config/arch/sh/functions +++ /dev/null @@ -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 --git a/config/arch/x86/config.in b/config/arch/x86.in index 4a5c2f85..4a5c2f85 100644 --- a/config/arch/x86/config.in +++ b/config/arch/x86.in diff --git a/config/arch/x86/functions b/config/arch/x86/functions deleted file mode 100644 index ae67692d..00000000 --- a/config/arch/x86/functions +++ /dev/null @@ -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 --git a/config/arch/x86_64/config.in b/config/arch/x86_64.in index 83b6e83a..83b6e83a 100644 --- a/config/arch/x86_64/config.in +++ b/config/arch/x86_64.in diff --git a/config/arch/x86_64/functions b/config/arch/x86_64/functions deleted file mode 100644 index 2626abf6..00000000 --- a/config/arch/x86_64/functions +++ /dev/null @@ -1,6 +0,0 @@ -# Compute x86_64-specific values - -CT_DoArchValues() { - # The architecture part of the tuple: - CT_TARGET_ARCH="${CT_ARCH}" -} |