Skip to contentSkip to conversation

bitbake.conf: Start using parallel make for do_install

RFC PATCH In review Richard Purdie 2 participants 2 messages Sep 29, 2011

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 bitbake.conf: Start using parallel make for do_install

Most piece of software now support parallel make install. Enable this by default using the value of PARALLEL_MAKE. In a similar way to PARALLEL_MAKE we can disable this for broken recipes with:

PARALLEL_MAKEINST = ""

---

meta/conf/bitbake.conf +4 -1
index f18e35b..a1420cf 100644
@@ -493,8 +493,11 @@ export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}"
 # Which flags to leave by strip-flags() in bin/build/oebuild.sh ?
 ALLOWED_FLAGS = "-O -mcpu -march -pipe"
 
-# Pass parallel make options to the compile task only
+# Pass parallel make options to the compile task
 EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "
+PARALLEL_MAKEINST ??= "${PARALLEL_MAKE}"
+# Pass parallel make options to the install task
+EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} "
 
 ##################################################################
 # Optimization flags.
#1 lore raw
Quoted 7 lines · Richard Purdie

Most piece of software now support parallel make install. Enable this by default using the value of PARALLEL_MAKE. In a similar way to PARALLEL_MAKE we can disable this for broken recipes with:

PARALLEL_MAKEINST = ""

Hurrah!

Quoted 25 lines

---

meta/conf/bitbake.conf +4 -1
index f18e35b..a1420cf 100644
@@ -493,8 +493,11 @@ export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}"
 # Which flags to leave by strip-flags() in bin/build/oebuild.sh ?
 ALLOWED_FLAGS = "-O -mcpu -march -pipe"
 
-# Pass parallel make options to the compile task only
+# Pass parallel make options to the compile task
 EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "
+PARALLEL_MAKEINST ??= "${PARALLEL_MAKE}"
+# Pass parallel make options to the install task
+EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} "
 
 ##################################################################
 # Optimization flags.

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 3 lines
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre