diff mbox

scons bbclass: enable parallel make

Message ID 1390480286-17368-1-git-send-email-koen.kooi@linaro.org
State Accepted
Commit a3ad3602b0e8d4a6387cac3f118722af1a0781eb
Headers show

Commit Message

Koen Kooi Jan. 23, 2014, 12:31 p.m. UTC
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>
---
 meta/classes/scons.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/meta/classes/scons.bbclass b/meta/classes/scons.bbclass
index a07a366..fc0f26b 100644
--- a/meta/classes/scons.bbclass
+++ b/meta/classes/scons.bbclass
@@ -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."
 }