summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ovmf
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2018-02-12 13:39:58 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-16 18:05:40 +0000
commitfeded5fe2755fc6523c235fd6e82a0972e197c08 (patch)
tree91d80f0b7121167e9e7822ee6a450d56d6a06e60 /meta/recipes-core/ovmf
parentc723f7c92a15daba5c8ec1d801ce8debb47d59bf (diff)
downloadpoky-feded5fe2755fc6523c235fd6e82a0972e197c08.tar.gz
utils.py: add parallel make helpers
The code to extract the integer number of parallel build threads and construct a new argument from them has started to be copied in multiple locations, so create two new helper utilities to aid recipes. The first helper (parallel_make()) extracts the integer number of parallel build threads from PARALLEL_MAKE. The second (parallel_make_argument()) does the same and then puts the result back into a format string, optionally clamping it to some maximum value. Additionally, rework the oe-core recipes that were manually doing this to use the new helper utilities. (From OE-Core rev: ccd1142d22b31ed85d8823b1bc9e11ccfd72b61f) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/ovmf')
-rw-r--r--meta/recipes-core/ovmf/ovmf_git.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb
index fa0d66291d..8750b3c528 100644
--- a/meta/recipes-core/ovmf/ovmf_git.bb
+++ b/meta/recipes-core/ovmf/ovmf_git.bb
@@ -151,7 +151,7 @@ do_compile_class-native() {
151 151
152do_compile_class-target() { 152do_compile_class-target() {
153 export LFLAGS="${LDFLAGS}" 153 export LFLAGS="${LDFLAGS}"
154 PARALLEL_JOBS="${@ '${PARALLEL_MAKE}'.replace('-j', '-n ')}" 154 PARALLEL_JOBS="${@oe.utils.parallel_make_argument(d, '-n %d')}"
155 OVMF_ARCH="X64" 155 OVMF_ARCH="X64"
156 if [ "${TARGET_ARCH}" != "x86_64" ] ; then 156 if [ "${TARGET_ARCH}" != "x86_64" ] ; then
157 OVMF_ARCH="IA32" 157 OVMF_ARCH="IA32"