summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/build/kernel/linux.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
index 064631b..9cfc433 100644
--- a/scripts/build/kernel/linux.sh
+++ b/scripts/build/kernel/linux.sh
@@ -71,6 +71,17 @@ do_kernel_extract() {
return 0
fi
CT_Patch "linux" "${CT_KERNEL_VERSION}"
+
+ # Disable building relocs application - it needs <linux/types.h>
+ # on the host, which may not be present on Cygwin or MacOS; it
+ # needs <elf.h>, which again is not present on MacOS; and most
+ # important, we don't need it to install the headers.
+ # This is not done as a patch, since it varies from Linux version
+ # to version - patching each particular Linux version would be
+ # too cumbersome.
+ CT_Pushd "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}"
+ sed -i -r 's/(\$\(MAKE\) .* relocs)$/:/' arch/*/Makefile
+ CT_Popd
}
# Install kernel headers using headers_install from kernel sources.