mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-16 15:28:55 +00:00
Further expand the architecture-specific function: add CT_KERNEL_ARCH building.
This commit is contained in:
parent
693ceb85bc
commit
9501e62afa
@ -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
|
||||
}
|
||||
|
@ -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.
|
||||
}
|
||||
|
@ -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.
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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.
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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}"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user