Make checking the linux installed headers optional (instead of systematic).

This commit is contained in:
Yann E. MORIN" 2007-07-03 22:16:42 +00:00
parent 439940ab2e
commit 5b1af13ea6
2 changed files with 18 additions and 9 deletions

View File

@ -150,3 +150,11 @@ config KERNEL_VERSION
default "2.6.21.5" if KERNEL_INSTALL_V_2_6_21_5
# CT_INSERT_VERSION_STRING_ABOVE
# Don't remove above line!
config KERNEL_LINUX_HEADERS_INSTALL_CHECK
bool
prompt "Check installed headers"
default n
help
If you are in doubt that installed headers are buggy, say 'Y'
here to have an extra check passed onto the headers.

View File

@ -118,15 +118,16 @@ do_kernel_install() {
${V_OPT} \
headers_install 2>&1 |CT_DoLog ALL
CT_DoLog EXTRA "Checking installed headers"
make -C "${CT_SRC_DIR}/${CT_KERNEL_FILE}" \
O="`pwd`" \
ARCH=${CT_KERNEL_ARCH} \
INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
${V_OPT} \
headers_check 2>&1 |CT_DoLog ALL
find "${CT_SYSROOT_DIR}" -type f -name '.check*' -exec rm {} \;
if [ "${CT_KERNEL_LINUX_HEADERS_INSTALL_CHECK}" = "y" ]; then
CT_DoLog EXTRA "Checking installed headers"
make -C "${CT_SRC_DIR}/${CT_KERNEL_FILE}" \
O="`pwd`" \
ARCH=${CT_KERNEL_ARCH} \
INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
${V_OPT} \
headers_check 2>&1 |CT_DoLog ALL
find "${CT_SYSROOT_DIR}" -type f -name '.check*' -exec rm {} \;
fi
}
# Install kernel headers from oldish Mazur's sanitised headers.