mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 10:54:37 +00:00
tools: u_boot_pylib: Allow to append input directories to indir
append_input_dirs() can be used to append a list of input directories to indir global list. Signed-off-by: Paul HENRYS <paul.henrys_ext@softathome.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a4345b1934
commit
c7896b3e48
1 changed files with 16 additions and 0 deletions
|
@ -123,6 +123,22 @@ def set_input_dirs(dirname):
|
||||||
indir = dirname
|
indir = dirname
|
||||||
tout.debug("Using input directories %s" % indir)
|
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):
|
def get_input_filename(fname, allow_missing=False):
|
||||||
"""Return a filename for use as input.
|
"""Return a filename for use as input.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue