summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/functions2
-rw-r--r--arch/ia64/functions4
-rw-r--r--arch/mips/functions4
-rw-r--r--arch/x86/functions5
-rw-r--r--arch/x86_64/functions4
-rw-r--r--docs/overview.txt8
-rwxr-xr-xscripts/crosstool.sh7
-rw-r--r--scripts/functions3
8 files changed, 13 insertions, 24 deletions
diff --git a/arch/arm/functions b/arch/arm/functions
index b59be4f..464de42 100644
--- a/arch/arm/functions
+++ b/arch/arm/functions
@@ -11,6 +11,4 @@ CT_DoArchValues() {
uClibc,) CT_TARGET_SYS=uclibc;;
uClibc,y) CT_TARGET_SYS=uclibcgnueabi;;
esac
-
- # The endianness option default value is OK
}
diff --git a/arch/ia64/functions b/arch/ia64/functions
index 45a3d5b..76f34dd 100644
--- a/arch/ia64/functions
+++ b/arch/ia64/functions
@@ -3,8 +3,4 @@
CT_DoArchValues() {
# The architecture part of the tuple:
CT_TARGET_ARCH="${CT_ARCH}"
-
- # The system part of the tuple default value is OK.
-
- # The endianness option default value is OK.
}
diff --git a/arch/mips/functions b/arch/mips/functions
index e8bf09f..91a1d9a 100644
--- a/arch/mips/functions
+++ b/arch/mips/functions
@@ -3,8 +3,4 @@
CT_DoArchValues() {
# The architecture part of the tuple:
CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
-
- # The system part of the tuple default value is OK.
-
- # The endianness option default value is OK.
}
diff --git a/arch/x86/functions b/arch/x86/functions
index 039c079..ae67692 100644
--- a/arch/x86/functions
+++ b/arch/x86/functions
@@ -17,7 +17,6 @@ CT_DoArchValues() {
*) CT_TARGET_ARCH=i586;;
esac
- # The system part of the tuple default value is OK.
-
- # The endianness option default value is OK.
+ # The kernel ARCH:
+ CT_KERNEL_ARCH=i386
}
diff --git a/arch/x86_64/functions b/arch/x86_64/functions
index 68610d8..2626abf 100644
--- a/arch/x86_64/functions
+++ b/arch/x86_64/functions
@@ -3,8 +3,4 @@
CT_DoArchValues() {
# The architecture part of the tuple:
CT_TARGET_ARCH="${CT_ARCH}"
-
- # The system part of the tuple default value is OK.
-
- # The endianness option default value is OK.
}
diff --git a/docs/overview.txt b/docs/overview.txt
index ced069b..096f987 100644
--- a/docs/overview.txt
+++ b/docs/overview.txt
@@ -499,6 +499,14 @@ The "functions" file API:
the architecture part of the target tuple.
Eg.: "armeb" for big endian ARM
"i386" for an i386
+ + the environment variable CT_KERNEL_ARCH
+ - optional
+ - contains:
+ the architecture name as understandable by the Linux kernel build
+ system.
+ Eg.: "arm" for an ARM
+ "powerpc" for a PowerPC
+ "i386" for an x86
+ provides:
- the environment variable CT_TARGET_ARCH
- optional
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