[oe-commits] Richard Purdie : kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKE

git at git.openembedded.org git at git.openembedded.org
Thu Mar 29 14:19:22 UTC 2012


Module: meta-openembedded.git
Branch: master
Commit: 4e9eb3306881b218aae2cb00139a4eef3e5053b5
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4e9eb3306881b218aae2cb00139a4eef3e5053b5

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Sat Dec 10 00:34:27 2011 +0000

kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKE

Without this we don't take advantage of any configured multiple CPU
cores which seems a shame.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/classes/kernel.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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





More information about the Openembedded-commits mailing list