]> code.ossystems Code Review - openembedded-core.git/commitdiff
scons bbclass: enable parallel make
authorKoen Kooi <koen.kooi@linaro.org>
Thu, 23 Jan 2014 12:31:26 +0000 (13:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jan 2014 00:48:28 +0000 (00:48 +0000)
Scons supports -jX parallel make, so let's use that. A small scale test of a few recipes shows no failures!

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/scons.bbclass

index a07a366df818152d1bdcaf6adbabe86966a6d428..fc0f26b17b80b442845375d6129537c3b6e51664 100644 (file)
@@ -3,7 +3,7 @@ DEPENDS += "python-scons-native"
 EXTRA_OESCONS ?= ""
 
 scons_do_compile() {
-        ${STAGING_BINDIR_NATIVE}/scons PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
+        ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
         bbfatal "scons build execution failed."
 }