Further expand the architecture-specific function: add CT_KERNEL_ARCH building.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Sep 14 21:50:30 2007 +0000 (2007-09-14)
changeset 3872fa4b675a9a3
parent 386 d5c5ed1b75ef
child 388 bb590eb24312
Further expand the architecture-specific function: add CT_KERNEL_ARCH building.
arch/arm/functions
arch/ia64/functions
arch/mips/functions
arch/x86/functions
arch/x86_64/functions
docs/overview.txt
scripts/crosstool.sh
scripts/functions
     1.1 --- a/arch/arm/functions	Fri Sep 14 21:41:00 2007 +0000
     1.2 +++ b/arch/arm/functions	Fri Sep 14 21:50:30 2007 +0000
     1.3 @@ -11,6 +11,4 @@
     1.4          uClibc,)    CT_TARGET_SYS=uclibc;;
     1.5          uClibc,y)   CT_TARGET_SYS=uclibcgnueabi;;
     1.6      esac
     1.7 -
     1.8 -    # The endianness option default value is OK
     1.9  }
     2.1 --- a/arch/ia64/functions	Fri Sep 14 21:41:00 2007 +0000
     2.2 +++ b/arch/ia64/functions	Fri Sep 14 21:50:30 2007 +0000
     2.3 @@ -3,8 +3,4 @@
     2.4  CT_DoArchValues() {
     2.5      # The architecture part of the tuple:
     2.6      CT_TARGET_ARCH="${CT_ARCH}"
     2.7 -
     2.8 -    # The system part of the tuple default value is OK.
     2.9 -
    2.10 -    # The endianness option default value is OK.
    2.11  }
     3.1 --- a/arch/mips/functions	Fri Sep 14 21:41:00 2007 +0000
     3.2 +++ b/arch/mips/functions	Fri Sep 14 21:50:30 2007 +0000
     3.3 @@ -3,8 +3,4 @@
     3.4  CT_DoArchValues() {
     3.5      # The architecture part of the tuple:
     3.6      CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
     3.7 -
     3.8 -    # The system part of the tuple default value is OK.
     3.9 -
    3.10 -    # The endianness option default value is OK.
    3.11  }
     4.1 --- a/arch/x86/functions	Fri Sep 14 21:41:00 2007 +0000
     4.2 +++ b/arch/x86/functions	Fri Sep 14 21:50:30 2007 +0000
     4.3 @@ -17,7 +17,6 @@
     4.4          *)                            CT_TARGET_ARCH=i586;;
     4.5      esac
     4.6  
     4.7 -    # The system part of the tuple default value is OK.
     4.8 -
     4.9 -    # The endianness option default value is OK.
    4.10 +    # The kernel ARCH:
    4.11 +    CT_KERNEL_ARCH=i386
    4.12  }
     5.1 --- a/arch/x86_64/functions	Fri Sep 14 21:41:00 2007 +0000
     5.2 +++ b/arch/x86_64/functions	Fri Sep 14 21:50:30 2007 +0000
     5.3 @@ -3,8 +3,4 @@
     5.4  CT_DoArchValues() {
     5.5      # The architecture part of the tuple:
     5.6      CT_TARGET_ARCH="${CT_ARCH}"
     5.7 -
     5.8 -    # The system part of the tuple default value is OK.
     5.9 -
    5.10 -    # The endianness option default value is OK.
    5.11  }
     6.1 --- a/docs/overview.txt	Fri Sep 14 21:41:00 2007 +0000
     6.2 +++ b/docs/overview.txt	Fri Sep 14 21:50:30 2007 +0000
     6.3 @@ -499,6 +499,14 @@
     6.4         the architecture part of the target tuple.
     6.5         Eg.: "armeb" for big endian ARM
     6.6              "i386" for an i386
     6.7 +   + the environment variable CT_KERNEL_ARCH
     6.8 +     - optional
     6.9 +     - contains:
    6.10 +       the architecture name as understandable by the Linux kernel build
    6.11 +       system.
    6.12 +       Eg.: "arm" for an ARM
    6.13 +            "powerpc" for a PowerPC
    6.14 +            "i386" for an x86
    6.15     + provides:
    6.16       - the environment variable CT_TARGET_ARCH
    6.17       - optional
     7.1 --- a/scripts/crosstool.sh	Fri Sep 14 21:41:00 2007 +0000
     7.2 +++ b/scripts/crosstool.sh	Fri Sep 14 21:50:30 2007 +0000
     7.3 @@ -304,13 +304,6 @@
     7.4      # Ha. cygwin host have an .exe suffix (extension) for executables.
     7.5      [ "${CT_KERNEL}" = "cygwin" ] && EXEEXT=".exe" || EXEEXT=""
     7.6  
     7.7 -    # Transform the ARCH into a kernel-understandable ARCH
     7.8 -    case "${CT_ARCH}" in
     7.9 -        x86) CT_KERNEL_ARCH=i386;;
    7.10 -        ppc) CT_KERNEL_ARCH=powerpc;;
    7.11 -        *)   CT_KERNEL_ARCH="${CT_ARCH}";;
    7.12 -    esac
    7.13 -
    7.14      # Build up the TARGET_CFLAGS from user-provided options
    7.15      # Override with user-specified CFLAGS
    7.16      [ -n "${CT_ARCH_CPU}" ]  && CT_TARGET_CFLAGS="-mcpu=${CT_ARCH_CPU} ${CT_TARGET_CFLAGS}"
     8.1 --- a/scripts/functions	Fri Sep 14 21:41:00 2007 +0000
     8.2 +++ b/scripts/functions	Fri Sep 14 21:50:30 2007 +0000
     8.3 @@ -506,6 +506,9 @@
     8.4          uClibc) CT_TARGET_SYS=uclibc;;
     8.5      esac
     8.6  
     8.7 +    # Transform the ARCH into a kernel-understandable ARCH
     8.8 +    CT_KERNEL_ARCH="${CT_ARCH}"
     8.9 +
    8.10      # Call the architecture specific settings
    8.11      CT_DoArchValues
    8.12