Remove CT_BROKEN.
Only one component is actually BROKEN (libelf), make it depend on EXPERIMENTAL, but state BROKEN in the prompt.
ltrace (which depends on libelf) is now marked as EXPERIMENTAL, with the reference to the BROKEN libelf in the help entry.
/trunk/docs/overview.txt | 6 0 6 0 ------
/trunk/config/debug/ltrace.in | 7 4 3 0 ++++---
/trunk/config/global/ct-behave.in | 8 0 8 0 --------
/trunk/config/tools/libelf.in | 5 3 2 0 +++--
4 files changed, 7 insertions(+), 19 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
6 echo "linux-${CT_KERNEL_VERSION}"
11 if [ "${CT_KERNEL_LINUX_USE_CUSTOM_DIR}" != "y" ]; then
12 CT_GetFile "${CT_KERNEL_FILE}" {ftp,http}://ftp.kernel.org/pub/linux/kernel/v2.{6{,/testing},4,2}
19 if [ "${CT_KERNEL_LINUX_USE_CUSTOM_DIR}" != "y" ]; then
20 CT_ExtractAndPatch "${CT_KERNEL_FILE}"
25 # Wrapper to the actual headers install method
27 CT_DoStep INFO "Installing kernel headers"
29 if [ "${CT_KERNEL_LINUX_USE_CUSTOM_DIR}" = "y" ]; then
30 do_kernel_preinstalled
38 # Install kernel headers using headers_install from kernel sources.
40 CT_DoLog DEBUG "Using kernel's headers_install"
42 mkdir -p "${CT_BUILD_DIR}/build-kernel-headers"
43 cd "${CT_BUILD_DIR}/build-kernel-headers"
45 # Only starting with 2.6.18 does headers_install is usable. We only
46 # have 2.6 version available, so only test for sublevel.
47 k_sublevel=$(awk '/^SUBLEVEL =/ { print $3 }' "${CT_SRC_DIR}/${CT_KERNEL_FILE}/Makefile")
48 [ ${k_sublevel} -ge 18 ] || CT_Abort "Kernel version >= 2.6.18 is needed to install kernel headers."
50 V_OPT="V=${CT_KERNEL_LINUX_VERBOSE_LEVEL}"
52 CT_DoLog EXTRA "Installing kernel headers"
54 make -C "${CT_SRC_DIR}/${CT_KERNEL_FILE}" \
56 ARCH=${CT_KERNEL_ARCH} \
57 INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
61 if [ "${CT_KERNEL_LINUX_INSTALL_CHECK}" = "y" ]; then
62 CT_DoLog EXTRA "Checking installed headers"
64 make -C "${CT_SRC_DIR}/${CT_KERNEL_FILE}" \
66 ARCH=${CT_KERNEL_ARCH} \
67 INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
70 find "${CT_SYSROOT_DIR}" -type f -name '.check*' -exec rm {} \;
74 # Use preinstalled headers (most probably by using make headers_install in a
75 # modified (read: customised) kernel tree, or using pre-2.6.18 headers, such
76 # as 2.4). In this case, simply copy the headers in place
77 do_kernel_preinstalled() {
78 CT_DoLog EXTRA "Copying preinstalled kernel headers"
80 mkdir -p "${CT_SYSROOT_DIR}/usr"
81 cd "${CT_KERNEL_LINUX_CUSTOM_DIR}"
82 CT_DoExecLog ALL cp -rv include "${CT_SYSROOT_DIR}/usr"