poky/meta/lib/oe
Joshua Watt feded5fe27 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>
2018-02-16 18:05:40 +00:00
..
__init__.py lib/oe: turn oe into a namespace package 2014-03-17 14:01:41 +00:00
buildhistory_analysis.py buildhistory_analysis: colourise more output 2018-01-23 23:43:45 +00:00
cachedpath.py cachedpath.py: global name 'error' is not defined 2013-05-15 19:27:11 +03:00
classextend.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
classutils.py classutils.py: deterministic sorting 2017-04-11 18:10:17 +01:00
copy_buildsystem.py oe/copy_buildsystem.py: make sure layer exists 2018-01-06 22:32:22 +00:00
data.py meta: add search, replace strings to export2json 2017-04-20 07:55:26 +01:00
distro_check.py lib/oe/distro_check: drop Mandriva from create_distro_packages_list() 2017-06-28 15:52:16 +01:00
gpg_sign.py gnupg: use native version for signing, rather than one provided by host 2018-01-11 10:26:07 +00:00
license.py license.py: Correct selection of licenses in is_included() 2017-10-07 23:20:39 +01:00
lsb.py oe.lsb: add get_os_release() 2017-05-16 14:08:28 +01:00
maketype.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
manifest.py manifest.py: sort package list 2018-01-11 10:26:07 +00:00
package_manager.py meta/lib/oe/package_manager.py: deprecate 'exit 1' as a way to defer to first boot 2018-01-30 11:50:12 +00:00
package.py lib/oe/package: Improve filedeprunner subprocess handling 2017-09-02 00:52:10 +01:00
packagedata.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
packagegroup.py meta: remove True option to getVarFlag calls 2016-12-16 10:23:23 +00:00
patch.py lib/oe/patch: add missing import 2018-01-02 17:24:39 +00:00
path.py oe/path.py: copyhardlinktree: don't overwrite existing symlinks 2017-08-23 12:06:51 +01:00
prservice.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
qa.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
recipeutils.py distrodata.bbclass: make upstream version check more useful for git upstreams 2017-11-30 10:49:22 +00:00
rootfs.py rootfs.py: change the notice about deferring scripts to first boot from warning to a note 2018-01-30 11:50:12 +00:00
sdk.py lib/oe/package_manager/sdk: Ensure do_populate_sdk_ext and do_populate_sdk repos don't conflict 2018-01-22 10:39:10 +00:00
sstatesig.py lib/oe/sstatesig: fix wildcard matching wrong task signature files 2017-11-05 22:33:23 +00:00
terminal.py lib/oe/terminal.py: use an absolute path to execute oe-gnome-terminal-phonehome 2017-11-08 22:24:02 +00:00
types.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
useradd.py useradd: Create lib/oe/useradd function library 2017-05-16 14:08:28 +01:00
utils.py utils.py: add parallel make helpers 2018-02-16 18:05:40 +00:00