Patchwork scons bbclass: enable parallel make

login
register
mail settings
Submitter Koen Kooi
Date Jan. 23, 2014, 12:31 p.m.
Message ID <1390480286-17368-1-git-send-email-koen.kooi@linaro.org>
Download mbox | patch
Permalink /patch/65619/
State New
Headers show

Comments

Koen Kooi - Jan. 23, 2014, 12:31 p.m.
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(-)

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."
 }