]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKE
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 10 Dec 2011 00:34:27 +0000 (00:34 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Dec 2011 12:21:05 +0000 (12:21 +0000)
Without this we don't take advantage of any configured multiple CPU
cores which seems a shame.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index d0cc279a669822f5eb1ee3ac97d9e2c189fbc34c..120a524bc3b2b3b8f99710eec8276e06f19e15f4 100644 (file)
@@ -89,7 +89,7 @@ kernel_do_compile() {
 do_compile_kernelmodules() {
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
        if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
-               oe_runmake modules  CC="${KERNEL_CC}" LD="${KERNEL_LD}"
+               oe_runmake ${PARALLEL_MAKE} modules  CC="${KERNEL_CC}" LD="${KERNEL_LD}"
        else
                bbnote "no modules to compile"
        fi