summaryrefslogtreecommitdiffstats
path: root/core/modules/kernel-vanilla
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-25 14:40:20 +0200
committerYour Name2018-10-25 14:40:20 +0200
commit7a4abb3b49d9e7df914649fcbc9d51435d0ab77d (patch)
tree3263ba70ab94d5e60f51cc39fbd948a88d1ffddc /core/modules/kernel-vanilla
parent[kernel-vanilla] Dirty hack to fix hangs on HP Compaq 8200 (diff)
downloadmltk-7a4abb3b49d9e7df914649fcbc9d51435d0ab77d.tar.gz
mltk-7a4abb3b49d9e7df914649fcbc9d51435d0ab77d.tar.xz
mltk-7a4abb3b49d9e7df914649fcbc9d51435d0ab77d.zip
[kernel+busybox] Patch for distcc
Diffstat (limited to 'core/modules/kernel-vanilla')
-rw-r--r--core/modules/kernel-vanilla/module.build3
1 files changed, 2 insertions, 1 deletions
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..."