gen_compile: always use -j1 with kernel *_install targets, fixes compilation with...
authorFabio Erculiani <lxnay@sabayon.org>
Tue, 16 Aug 2011 20:00:00 +0000 (22:00 +0200)
committerFabio Erculiani <lxnay@sabayon.org>
Tue, 16 Aug 2011 20:00:00 +0000 (22:00 +0200)
ChangeLog
gen_compile.sh

index 0738649297c907e2bff15997a68d40c3f730bc2f..f0547b42c0706038382e3451d26ccadc853468e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
 # Distributed under the GPL v2
 # $Id$
 
+  16 Aug 2011; Fabio Erculiani <lxnay@gentoo.org> gen_compile.sh:
+  gen_compile: always use -j1 with kernel *_install targets, fixes compilation
+  with make 3.82
+
   06 Aug 2011; Sebastian Pipping <sping@gentoo.org> gen_initramfs.sh:
   No longer copy /lib/libsysfs*so* for multipath-tools (bug #300841, bug
   #377709)
index 0758c3a6512426fd68b53fbad4359ad756d963a0..01b20f8579d5e3c4387aea61ee9f8ae0d939e938 100755 (executable)
@@ -288,7 +288,7 @@ compile_modules() {
        compile_generic modules kernel
        export UNAME_MACHINE="${ARCH}"
        [ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH
-       compile_generic "modules_install" kernel
+       MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel
        unset UNAME_MACHINE
 }
 
@@ -312,7 +312,7 @@ compile_kernel() {
        if [ -n "${firmware_in_kernel_line}" -a "${firmware_in_kernel_line}" != CONFIG_FIRMWARE_IN_KERNEL=y ]
        then
                print_info 1 "        >> Installing firmware ('make firmware_install') due to CONFIG_FIRMWARE_IN_KERNEL != y..."
-               compile_generic "firmware_install" kernel
+               MAKEOPTS="${MAKEOPTS} -j1" compile_generic "firmware_install" kernel
        else
                print_info 1 "        >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)..."
        fi