diff options
| author | Simon Glass <[email protected]> | 2017-11-13 18:55:00 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2017-12-12 19:53:45 -0700 |
| commit | 7fe9173be78f32047bc38f2d68ac86e871dbfcae (patch) | |
| tree | 052690b3852f6cac6759de653cecb6659d268127 /tools/binman/control.py | |
| parent | f689890d8ec52c8b9d005fbf7f6df00dcf9895db (diff) | |
binman: Support enabling debug in tests
The elf module can provide some debugging information to assist with
figuring out what is going wrong. This is also useful in tests. Update the
-D option so that it is passed through to tests as well.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/control.py')
| -rw-r--r-- | tools/binman/control.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py index e9d48df0301..e175e8d41bd 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -12,6 +12,7 @@ import sys import tools import command +import elf import fdt import fdt_util from image import Image @@ -89,6 +90,8 @@ def Binman(options, args): try: tout.Init(options.verbosity) + if options.debug: + elf.debug = True try: tools.SetInputDirs(options.indir) tools.PrepareOutputDir(options.outdir, options.preserve) |
