Patchwork [meta-oe,5/6] kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKE

login
register
mail settings
Submitter Martin Jansa
Date March 29, 2012, 6:29 a.m.
Message ID <a778a584bcb8f57690598ebcc401a5181eb56e19.1333002292.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/24797/
State Accepted
Commit 4e9eb3306881b218aae2cb00139a4eef3e5053b5
Headers show

Comments

Martin Jansa - March 29, 2012, 6:29 a.m.
From: Richard Purdie <richard.purdie@linuxfoundation.org>

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>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/classes/kernel.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index 578a02f..1ef8e2a 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -96,7 +96,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