]> code.ossystems Code Review - openembedded-core.git/commit
utils.py: add parallel make helpers
authorJoshua Watt <jpewhacker@gmail.com>
Mon, 12 Feb 2018 19:39:58 +0000 (13:39 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Feb 2018 18:05:26 +0000 (18:05 +0000)
commitccd1142d22b31ed85d8823b1bc9e11ccfd72b61f
tree4a7e8895fa257559090d3bb7bd9f5c6f35cb4989
parent7c15c595f4f51fa33e9d5ed1ef03bad9cd167eb4
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.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/go.bbclass
meta/classes/waf.bbclass
meta/lib/oe/utils.py
meta/recipes-core/ovmf/ovmf_git.bb
meta/recipes-support/boost/boost.inc