Update all samples to the latest set of config options.
There might be some small issues here and there due to the split of CT_ExtractAndPatch.
/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/sh4-unknown-linux-gnu/crosstool.config | 13 10 3 0 +++++++++---
/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 10 7 3 0 ++++++---
/trunk/samples/arm-unknown-elf/crosstool.config | 8 4 4 0 +++---
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/armeb-unknown-eabi/crosstool.config | 8 4 4 0 +++---
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 13 10 3 0 +++++++++---
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/armeb-unknown-linux-gnueabi/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/arm-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 10 7 3 0 ++++++---
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/arm-iphone-linux-gnueabi/crosstool.config | 5 2 3 0 ++---
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config | 10 7 3 0 ++++++---
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/powerpc-405-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/mips-unknown-elf/crosstool.config | 8 4 4 0 +++---
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 11 8 3 0 +++++++---
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config | 13 10 3 0 +++++++++---
/trunk/samples/arm-unknown-eabi/crosstool.config | 8 4 4 0 +++---
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 14 11 3 0 ++++++++++---
/trunk/samples/powerpc-860-linux-gnu/crosstool.config | 13 10 3 0 +++++++++---
28 files changed, 237 insertions(+), 88 deletions(-)
1 # This file declares functions to install the kernel headers for linux
2 # Copyright 2007 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
5 CT_DoKernelTupleValues() {
6 # Nothing to do, keep the default value
12 if [ "${CT_KERNEL_LINUX_USE_CUSTOM_DIR}" != "y" ]; then
13 CT_GetFile "linux-${CT_KERNEL_VERSION}" \
14 {ftp,http}://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.{6{,/testing},4,2}
21 if [ "${CT_KERNEL_LINUX_USE_CUSTOM_DIR}" != "y" ]; then
22 CT_Extract "linux-${CT_KERNEL_VERSION}"
23 CT_Patch "linux-${CT_KERNEL_VERSION}"
28 # Wrapper to the actual headers install method
30 CT_DoStep INFO "Installing kernel headers"
32 if [ "${CT_KERNEL_LINUX_USE_CUSTOM_DIR}" = "y" ]; then
33 do_kernel_preinstalled
41 # Install kernel headers using headers_install from kernel sources.
43 CT_DoLog DEBUG "Using kernel's headers_install"
45 mkdir -p "${CT_BUILD_DIR}/build-kernel-headers"
46 cd "${CT_BUILD_DIR}/build-kernel-headers"
48 # Only starting with 2.6.18 does headers_install is usable. We only
49 # have 2.6 version available, so only test for sublevel.
50 k_sublevel=$(gawk '/^SUBLEVEL =/ { print $3 }' "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}/Makefile")
51 [ ${k_sublevel} -ge 18 ] || CT_Abort "Kernel version >= 2.6.18 is needed to install kernel headers."
53 V_OPT="V=${CT_KERNEL_LINUX_VERBOSE_LEVEL}"
55 CT_DoLog EXTRA "Installing kernel headers"
57 make -C "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}" \
59 ARCH=${CT_KERNEL_ARCH} \
60 INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
64 if [ "${CT_KERNEL_LINUX_INSTALL_CHECK}" = "y" ]; then
65 CT_DoLog EXTRA "Checking installed headers"
67 make -C "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}" \
69 ARCH=${CT_KERNEL_ARCH} \
70 INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
73 find "${CT_SYSROOT_DIR}" -type f -name '.check*' -exec rm {} \;
77 # Use preinstalled headers (most probably by using make headers_install in a
78 # modified (read: customised) kernel tree, or using pre-2.6.18 headers, such
79 # as 2.4). In this case, simply copy the headers in place
80 do_kernel_preinstalled() {
81 CT_DoLog EXTRA "Copying preinstalled kernel headers"
83 mkdir -p "${CT_SYSROOT_DIR}/usr"
84 cd "${CT_KERNEL_LINUX_CUSTOM_DIR}"
85 CT_DoExecLog ALL cp -rv include "${CT_SYSROOT_DIR}/usr"