make modules_install should use -j1 only
authorBrad House <brad_mssw@gentoo.org>
Sat, 7 Feb 2004 14:55:20 +0000 (14:55 +0000)
committerBrad House <brad_mssw@gentoo.org>
Sat, 7 Feb 2004 14:55:20 +0000 (14:55 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@69 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_compile.sh

index 1749cd6aff60de11cf0f23b3b2e3cec3782b126e..8fdd3cf57a347406ce0a4ffd2a3d07cdf712a8b4 100644 (file)
@@ -186,7 +186,12 @@ compile_modules() {
        cd ${KERNEL_DIR}
        compile_generic "modules" kernel
        export UNAME_MACHINE="${ARCH}"
+       # On 2.4 kernels, if MAKEOPTS > -j1 it can cause failures
+       MAKEOPTS_SAVE="${MAKEOPTS}"
+       MAKEOPTS="-j1"
        compile_generic "modules_install" kernel
+       MAKEOPTS="${MAKEOPTS_SAVE}"
+       export MAKEOPTS
        unset UNAME_MACHINE
 }