summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modules/busybox/module.build1
-rw-r--r--core/modules/kernel-vanilla/module.build3
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..."