From 7a4abb3b49d9e7df914649fcbc9d51435d0ab77d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 25 Oct 2018 14:40:20 +0200 Subject: [kernel+busybox] Patch for distcc --- core/modules/kernel-vanilla/module.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/modules/kernel-vanilla') 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..." -- cgit v1.2.3-55-g7522