summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-02-12 19:19:18 (GMT)
committerGitHub <noreply@github.com>2017-02-12 19:19:18 (GMT)
commit5676c72d521cea0c67ec3624028b89fdfac1d291 (patch)
tree0b107911447878113dd9329f3a5fa00e20945827 /scripts/build
parent57e1e7e7429aa44ae5406409fad0d9341b86243c (diff)
parent7b86176b771e988b6c282275927188a2e6fdf710 (diff)
Merge pull request #590 from stilor/cygwin-old-gcc-glibc
Fix Cygwin build of old gcc and glibc
Diffstat (limited to 'scripts/build')
-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.