Further expand the architecture-specific function: add CT_KERNEL_ARCH building.

This commit is contained in:
Yann E. MORIN" 2007-09-14 21:50:30 +00:00
parent 693ceb85bc
commit 9501e62afa
8 changed files with 13 additions and 24 deletions

View File

@ -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
}

View File

@ -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.
}

View File

@ -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.
}

View File

@ -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
}

View File

@ -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.
}

View File

@ -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

View File

@ -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}"

View File

@ -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