diff options
author | Tom Rini <trini@konsulko.com> | 2024-12-19 09:10:48 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-12-19 09:14:34 -0600 |
commit | 078542c346347406cfacdec8adeac66ae6758880 (patch) | |
tree | 9f9595f90f31df739d496f2f460b7142d7f9d939 /tools/u_boot_pylib/tools.py | |
parent | 337bfdce5aa52637b482b182db959b9bb058f4b7 (diff) | |
parent | e7d7d3307c6109f2bec5dd5ba779996dd891348d (diff) |
Merge branch '2024-12-19-assorted-tooling-updates' into next
This brings in assortment of updates to our python tooling, from Paul
HENRYS <paul.henrys_ext@softathome.com>
Diffstat (limited to 'tools/u_boot_pylib/tools.py')
-rw-r--r-- | tools/u_boot_pylib/tools.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/u_boot_pylib/tools.py b/tools/u_boot_pylib/tools.py index 187725b5015..0499a75526f 100644 --- a/tools/u_boot_pylib/tools.py +++ b/tools/u_boot_pylib/tools.py @@ -123,6 +123,22 @@ def set_input_dirs(dirname): indir = dirname tout.debug("Using input directories %s" % indir) +def append_input_dirs(dirname): + """Append a list of input directories to the current list of input + directories + + Args: + dirname: a list of paths to input directories to use for obtaining + files needed by binman to place in the image. + """ + global indir + + for dir in dirname: + if dirname not in indir: + indir.append(dirname) + + tout.debug("Updated input directories %s" % indir) + def get_input_filename(fname, allow_missing=False): """Return a filename for use as input. |