aboutsummaryrefslogtreecommitdiff
path: root/tools/u_boot_pylib/command.py
Commit message (Collapse)AuthorAgeFilesLines
* u_boot_pylib: Ensure subprocess is closed downSimon Glass2023-11-021-3/+1
| | | | | | | | | | | | | | | | | It isn't clear why we need to have two different paths for closing down the pipe. Unify them and use the Python to avoid this warning: subprocess.py:1127: ResourceWarning: subprocess 83531 is still running Note that this code appears to originally have come from [1] and was committed into the ChromeOS chromiumos/platform/crosutils repo in the bin/cros_image_to_target.py file. The addition of the extra code path came later, so that is chosen for the fixes tag. [1] https://codereview.chromium.org/3391008 Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: a10fd93cbc patman: Make command methods return a CommandResult
* patman: Move library functions into a library directorySimon Glass2023-03-081-0/+139
The patman directory has a number of modules which are used by other tools in U-Boot. This makes it hard to package the tools using pypi since the common files must be copied along with the tool that uses them. To address this, move these files into a new u_boot_pylib library. This can be packaged separately and listed as a dependency of each tool. Signed-off-by: Simon Glass <sjg@chromium.org>