[PATCH v2 08/38] patman: Add a function to find a tool on the path

Simon Glass sjg at chromium.org
Wed Jan 26 16:37:09 CET 2022


The Run() function automatically uses the PATH variable to locate a tool
when running it. Add a function that does this manually, so we don't have
to run a tool to find out if it is present.

This is needed by the new Bintool class, which wants to check which tools
are present.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 tools/patman/tools.py | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list