mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-23 12:35:17 +00:00
Make checking the linux installed headers optional (instead of systematic).
This commit is contained in:
parent
439940ab2e
commit
5b1af13ea6
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user