test/py: use actual core count for parallel builds
PATCH 1/1 test/py: use actual core count for parallel builds
When building U-Boot we should not blindly use make -j8 but consider the actual core count given by os.cpu_count().
--- test/py/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
test/py/conftest.py +1 -1
@@ -156,7 +156,7 @@ def pytest_configure(config): o_opt = '' cmds = ( ['make', o_opt, '-s', board_type + '_defconfig'], - ['make', o_opt, '-s', '-j8'], + ['make', o_opt, '-s', '-j{}'.format(os.cpu_count())], ) name = 'make'
--
2.26.2
PATCH 1/1 test/py: use actual core count for parallel builds
Quoted 9 lines · Heinrich Schuchardt
When building U-Boot we should not blindly use make -j8 but consider the actual core count given by
os.cpu_count().Signed-off-by Heinrich Schuchardt <[email protected]>--- test/py/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
I did send a patch to make this use buildman, but people were not keen on the extra dependency.
Quoted 16 lines
test/py/conftest.py +1
-2@@ -156,7 +156,7 @@ def pytest_configure(config): o_opt = '' cmds = ( ['make', o_opt, '-s', board_type + '_defconfig'], - ['make', o_opt, '-s', '-j8'], + ['make', o_opt, '-s', '-j{}'.format(os.cpu_count())], ) name = 'make' --2.26.2
PATCH 1/1 test/py: use actual core count for parallel builds
In reply to Heinrich SchuchardtQuoted 2 lines · Heinrich Schuchardt
When building U-Boot we should not blindly use make -j8 but consider the actual core count given by
os.cpu_count().
PATCH 1/1 test/py: use actual core count for parallel builds
In reply to Heinrich SchuchardtQuoted 6 lines · Heinrich Schuchardt
When building U-Boot we should not blindly use make -j8 but consider the actual core count given by
os.cpu_count().Signed-off-by Heinrich Schuchardt <[email protected]>Reviewed-by Simon Glass <[email protected]>Acked-by Stephen Warren <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200603/eec2c2df/attachment.sig>