summaryrefslogtreecommitdiff
path: root/scripts/build/kernel/linux.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-02-11 04:49:05 (GMT)
committerAlexey Neyman <stilor@att.net>2017-02-12 00:20:53 (GMT)
commit7e6392a87270d8bb014421497f2e97394a3b44ff (patch)
tree88e11680d86966d2ac53b65656ba360e5d75b03b /scripts/build/kernel/linux.sh
parent57e1e7e7429aa44ae5406409fad0d9341b86243c (diff)
Remove 'relocs' from archscripts being built
... it is not needed to install headers and causes build failures in more than one setup (cygwin, macos). Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/kernel/linux.sh')
-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.