diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-20 12:23:53 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-29 09:38:06 -0600 |
commit | 96b6c506ca162b97ece5a59c0d2619173e6bfad8 (patch) | |
tree | 50f7f4a6f57913695da262cbf456c0db549b4500 /tools/binman/control.py | |
parent | 4ab88b6f2f7d857f7a998f5aae8d52af9379fb1c (diff) |
binman: Write the original input fdtmap to a file
When reading an image in, write its fdtmap to a file in the output
directory. This is useful for debugging. Update the 'ls' command to set up
the output directory; otherwise it will fail.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r-- | tools/binman/control.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py index ab94f9d482..f9680e3948 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -342,7 +342,11 @@ def Binman(args): return 0 if args.cmd == 'ls': - ListEntries(args.image, args.paths) + try: + tools.PrepareOutputDir(None) + ListEntries(args.image, args.paths) + finally: + tools.FinaliseOutputDir() return 0 if args.cmd == 'extract': |