diff options
author | Simon Rettberg | 2018-10-25 14:40:20 +0200 |
---|---|---|
committer | Your Name | 2018-10-25 14:40:20 +0200 |
commit | 7a4abb3b49d9e7df914649fcbc9d51435d0ab77d (patch) | |
tree | 3263ba70ab94d5e60f51cc39fbd948a88d1ffddc | |
parent | [kernel-vanilla] Dirty hack to fix hangs on HP Compaq 8200 (diff) | |
download | mltk-7a4abb3b49d9e7df914649fcbc9d51435d0ab77d.tar.gz mltk-7a4abb3b49d9e7df914649fcbc9d51435d0ab77d.tar.xz mltk-7a4abb3b49d9e7df914649fcbc9d51435d0ab77d.zip |
[kernel+busybox] Patch for distcc
-rw-r--r-- | core/modules/busybox/module.build | 1 | ||||
-rw-r--r-- | core/modules/kernel-vanilla/module.build | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/busybox/module.build b/core/modules/busybox/module.build index c6557f91..e960849f 100644 --- a/core/modules/busybox/module.build +++ b/core/modules/busybox/module.build @@ -15,6 +15,7 @@ fetch_source() { if ! grep -q 'suspend.*"no"' "util-linux/rtcwake.c"; then git apply "${MODULE_DIR}/rtcwake-compat.patch" || perror "Could not apply busybox patch for rtcwake compat with util-linux" fi + sed -i -r 's/^CC\s*=\s*(\S)/CC ?= \1/' Makefile || perror "Could not patch Makefile" cd .. || perror "cd .. failed" } diff --git a/core/modules/kernel-vanilla/module.build b/core/modules/kernel-vanilla/module.build index 167de9cb..7881283a 100644 --- a/core/modules/kernel-vanilla/module.build +++ b/core/modules/kernel-vanilla/module.build @@ -52,6 +52,7 @@ fetch_source() { git apply < "$patch" || perror "Could not apply $patch" echo "$patch" >> "patches-done" done + sed -i -r 's/^CC\s*=\s*(\S)/CC ?= \1/' Makefile || perror "Could not patch Makefile" cd - # remember the current kernel version echo "${SYSTEM_KERNEL_LONG}" > ksrc/KVERSION @@ -83,7 +84,7 @@ build() { pinfo "Compiling kernel... (this will take some time)" # explicitly state number of cores here, as MAKEFLAGS seems to be overridden - make "-j$CPU_CORES" || perror "make failed." + make $MAKEFLAGS || perror "make failed." # install modules to build directory pinfo "Installing kernel modules..." |