diff options
author | Alexey Neyman <stilor@att.net> | 2017-06-25 22:54:29 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-07-08 10:57:56 -0700 |
commit | 993b4acec54f02f3391fce6b56e0366304b79f01 (patch) | |
tree | 46dcfb030a2c2d886cdbbb8ab1ac310d72ae877f /scripts/build/kernel | |
parent | ee983f5f92aedbadaac9c756568c8fd6c04d58bc (diff) | |
download | crosstool-ng-993b4acec54f02f3391fce6b56e0366304b79f01.tar.gz crosstool-ng-993b4acec54f02f3391fce6b56e0366304b79f01.tar.bz2 crosstool-ng-993b4acec54f02f3391fce6b56e0366304b79f01.zip |
Building packages using the new framework
(fails at building GMP off the VCS because it needs to run bootstrap scripts)
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/kernel')
-rw-r--r-- | scripts/build/kernel/linux.sh | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh index 0f04d64e..5ab49182 100644 --- a/scripts/build/kernel/linux.sh +++ b/scripts/build/kernel/linux.sh @@ -22,21 +22,23 @@ do_kernel_get() { CT_Fetch LINUX } -# Extract kernel -do_kernel_extract() { - CT_ExtractPatch LINUX - - # 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. - # TBD should happen before marking the sources as "patched"? - CT_Pushd "${CT_SRC_DIR}/linux" +# 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. +linux_disable_build_relocs() +{ sed -i -r 's/(\$\(MAKE\) .* relocs)$/:/' arch/*/Makefile - CT_Popd +} + +# Extract kernel +do_kernel_extract() +{ + # TBD verify linux_disable_build_relocs is run + CT_ExtractPatch LINUX linux_disable_build_relocs } # Install kernel headers using headers_install from kernel sources. |