# HG changeset patch # User "Yann E. MORIN" # Date 1189806630 0 # Node ID 2fa4b675a9a3d99a34abea3839b7b7a85071f3df # Parent d5c5ed1b75ef76f5de1dc79439b3ec1cb2faa5de Further expand the architecture-specific function: add CT_KERNEL_ARCH building. diff -r d5c5ed1b75ef -r 2fa4b675a9a3 arch/arm/functions --- a/arch/arm/functions Fri Sep 14 21:41:00 2007 +0000 +++ b/arch/arm/functions Fri Sep 14 21:50:30 2007 +0000 @@ -11,6 +11,4 @@ uClibc,) CT_TARGET_SYS=uclibc;; uClibc,y) CT_TARGET_SYS=uclibcgnueabi;; esac - - # The endianness option default value is OK } diff -r d5c5ed1b75ef -r 2fa4b675a9a3 arch/ia64/functions --- a/arch/ia64/functions Fri Sep 14 21:41:00 2007 +0000 +++ b/arch/ia64/functions Fri Sep 14 21:50:30 2007 +0000 @@ -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 -r d5c5ed1b75ef -r 2fa4b675a9a3 arch/mips/functions --- a/arch/mips/functions Fri Sep 14 21:41:00 2007 +0000 +++ b/arch/mips/functions Fri Sep 14 21:50:30 2007 +0000 @@ -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 -r d5c5ed1b75ef -r 2fa4b675a9a3 arch/x86/functions --- a/arch/x86/functions Fri Sep 14 21:41:00 2007 +0000 +++ b/arch/x86/functions Fri Sep 14 21:50:30 2007 +0000 @@ -17,7 +17,6 @@ *) 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 -r d5c5ed1b75ef -r 2fa4b675a9a3 arch/x86_64/functions --- a/arch/x86_64/functions Fri Sep 14 21:41:00 2007 +0000 +++ b/arch/x86_64/functions Fri Sep 14 21:50:30 2007 +0000 @@ -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 -r d5c5ed1b75ef -r 2fa4b675a9a3 docs/overview.txt --- a/docs/overview.txt Fri Sep 14 21:41:00 2007 +0000 +++ b/docs/overview.txt Fri Sep 14 21:50:30 2007 +0000 @@ -499,6 +499,14 @@ 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 -r d5c5ed1b75ef -r 2fa4b675a9a3 scripts/crosstool.sh --- a/scripts/crosstool.sh Fri Sep 14 21:41:00 2007 +0000 +++ b/scripts/crosstool.sh Fri Sep 14 21:50:30 2007 +0000 @@ -304,13 +304,6 @@ # 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 -r d5c5ed1b75ef -r 2fa4b675a9a3 scripts/functions --- a/scripts/functions Fri Sep 14 21:41:00 2007 +0000 +++ b/scripts/functions Fri Sep 14 21:50:30 2007 +0000 @@ -506,6 +506,9 @@ 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