From 7e6392a87270d8bb014421497f2e97394a3b44ff Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Fri, 10 Feb 2017 20:49:05 -0800 Subject: 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 --- scripts/build/kernel/linux.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'scripts/build/kernel/linux.sh') diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh index 064631b8..9cfc433f 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 + # on the host, which may not be present on Cygwin or MacOS; it + # needs , 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. -- cgit v1.2.3