u-boot/tools/u_boot_pylib
Simon Glass 5d679f801d buildman: Add a way to limit the number of buildmans
Buildman uses all available CPUs by default, so running more than one or
two concurrent processes is not normally useful.

However in some CI cases we want to be able to run several jobs at once
to save time. For example, in a lab situation we may want to run a test
on 20 boards at a time, since only the build step actually takes much
CPU.

Add an option which allows such a limit. When buildman starts up, it
waits until the number of running processes goes below the limit, then
claims a spot in the list. The list is maintained with a temporary file.

Note that the temp file is user-specific, since it is hard to create a
locked temporary file which can be accessed by any user. In most cases,
only one user is running jobs on a machine, so this should not matter.

Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-03 07:36:33 +01:00
..
__init__.py
__main__.py
command.py u_boot_pylib: Ensure subprocess is closed down 2023-11-02 22:38:01 -04:00
cros_subprocess.py
LICENSE patman: Add support for building a u_boot_tools PyPi package 2023-03-08 11:40:49 -08:00
pyproject.toml tools: Move python tools to version 0.0.6 2023-12-13 18:39:06 -05:00
README.rst u_boot_pylib: Correct readme formatting 2023-12-13 18:39:05 -05:00
terminal.py buildman: Add a way to limit the number of buildmans 2024-07-03 07:36:33 +01:00
test_util.py buildman: Enable test coverage 2023-07-24 09:34:11 -06:00
tools.py
tout.py
u_boot_pylib

.. SPDX-License-Identifier: GPL-2.0+

# U-Boot Python Library
=======================

This is a Python library used by various U-Boot tools, including patman,
buildman and binman.

The module can be installed with pip::

   pip install u_boot_pylib

or via setup.py::

   ./setup.py install [--user]