diff options
author | Alexey Neyman <stilor@att.net> | 2017-02-10 20:49:05 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-02-11 16:20:53 -0800 |
commit | 7e6392a87270d8bb014421497f2e97394a3b44ff (patch) | |
tree | 88e11680d86966d2ac53b65656ba360e5d75b03b /scripts/build/kernel | |
parent | 57e1e7e7429aa44ae5406409fad0d9341b86243c (diff) | |
download | crosstool-ng-7e6392a87270d8bb014421497f2e97394a3b44ff.tar.gz crosstool-ng-7e6392a87270d8bb014421497f2e97394a3b44ff.tar.bz2 crosstool-ng-7e6392a87270d8bb014421497f2e97394a3b44ff.zip |
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')
-rw-r--r-- | scripts/build/kernel/linux.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 <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. |