summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-14 21:50:30 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-14 21:50:30 (GMT)
commit9501e62afa556c97c4cdc3228b6812f22b183f6a (patch)
treef9e6db0c99a7a129f26c36f140a97c0822f3c80d /scripts
parent693ceb85bcc37910abac51a541c0f715f6cca82e (diff)
Further expand the architecture-specific function: add CT_KERNEL_ARCH building.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/crosstool.sh7
-rw-r--r--scripts/functions3
2 files changed, 3 insertions, 7 deletions
diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh
index fda7cd3..206c4aa 100755
--- a/scripts/crosstool.sh
+++ b/scripts/crosstool.sh
@@ -304,13 +304,6 @@ if [ -z "${CT_RESTART}" ]; then
# Ha. cygwin host have an .exe suffix (extension) for executables.
[ "${CT_KERNEL}" = "cygwin" ] && EXEEXT=".exe" || EXEEXT=""
- # Transform the ARCH into a kernel-understandable ARCH
- case "${CT_ARCH}" in
- x86) CT_KERNEL_ARCH=i386;;
- ppc) CT_KERNEL_ARCH=powerpc;;
- *) CT_KERNEL_ARCH="${CT_ARCH}";;
- esac
-
# Build up the TARGET_CFLAGS from user-provided options
# Override with user-specified CFLAGS
[ -n "${CT_ARCH_CPU}" ] && CT_TARGET_CFLAGS="-mcpu=${CT_ARCH_CPU} ${CT_TARGET_CFLAGS}"
diff --git a/scripts/functions b/scripts/functions
index e5a338a..f82b0c2 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -506,6 +506,9 @@ CT_DoBuildTargetTuple() {
uClibc) CT_TARGET_SYS=uclibc;;
esac
+ # Transform the ARCH into a kernel-understandable ARCH
+ CT_KERNEL_ARCH="${CT_ARCH}"
+
# Call the architecture specific settings
CT_DoArchValues