diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-28 20:34:52 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:26:35 -0700 |
commit | 10cbd3b7da12e993c67d56182d30294661a93619 (patch) | |
tree | a9df90772211c49e5471b921baaed03f86b6167c /tools/patman | |
parent | be44f27156bf46807049a0e1c303626d05f781f8 (diff) | |
download | u-boot-10cbd3b7da12e993c67d56182d30294661a93619.tar.gz |
dtoc: Add an 'all' command
With upcoming changes, dtoc will output several files for different
of-platdata components.
Add a way to output all ava!ilable files at once ('all'), to the
appropriate directories, without needing to specify each one invidually.
This puts the commands in alphabetical order, so update the tests
accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman')
-rw-r--r-- | tools/patman/tools.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/patman/tools.py b/tools/patman/tools.py index 00c7013924..ba8b67f3ee 100644 --- a/tools/patman/tools.py +++ b/tools/patman/tools.py @@ -94,6 +94,14 @@ def GetOutputFilename(fname): """ return os.path.join(outdir, fname) +def GetOutputDir(): + """Return the current output directory + + Returns: + str: The output directory + """ + return outdir + def _FinaliseForTest(): """Remove the output directory (for use by tests)""" global outdir |