summaryrefslogtreecommitdiff
path: root/tools/patman
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-29 06:34:52 +0300
committerSimon Glass <sjg@chromium.org>2021-01-05 22:26:35 +0300
commit10cbd3b7da12e993c67d56182d30294661a93619 (patch)
treea9df90772211c49e5471b921baaed03f86b6167c /tools/patman
parentbe44f27156bf46807049a0e1c303626d05f781f8 (diff)
downloadu-boot-10cbd3b7da12e993c67d56182d30294661a93619.tar.xz
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.py8
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