From patchwork Sat Dec 10 00:34:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKE Date: Sat, 10 Dec 2011 00:34:27 -0000 From: Richard Purdie X-Patchwork-Id: 16631 Message-Id: <1323477267.5309.206.camel@ted> To: "Ashfield, Bruce" , "Hart, Darren" , openembedded-core Without this we don't take advantage of any configured multiple CPU cores which seems a shame. Signed-off-by: Richard Purdie Acked-by: Bruce Ashfield Acked-by: Darren Hart --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index d0cc279..120a524 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -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