summaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-08 22:18:28 +0300
committerSimon Glass <sjg@chromium.org>2019-07-24 06:27:57 +0300
commitc7d8035ec185c789f8182c7d3374db4dcdbd250b (patch)
tree80e381e107190f74581533a8519c579f67f047b1 /tools/binman/control.py
parentc22b8cfc1dc6a8fd9e45dd56b2945ccf979aa2c8 (diff)
downloadu-boot-c7d8035ec185c789f8182c7d3374db4dcdbd250b.tar.xz
binman: Add a --toolpath option to set the tool search path
Sometimes tools used by binman may not be in the normal PATH search path, such as when the tool is built by the U-Boot build itself (e.g. mkimage). Provide a way to specify an additional search path for tools. The flag can be used multiple times. Update the help to describe this option. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index 20186ee198..df78848e13 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -112,6 +112,7 @@ def Binman(options, args):
try:
tools.SetInputDirs(options.indir)
tools.PrepareOutputDir(options.outdir, options.preserve)
+ tools.SetToolPaths(options.toolpath)
state.SetEntryArgs(options.entry_arg)
# Get the device tree ready by compiling it and copying the compiled