summaryrefslogtreecommitdiff
path: root/tools/binman/elf.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-11-13 18:55:00 -0700
committerSimon Glass <sjg@chromium.org>2017-12-12 19:53:45 -0700
commit7fe9173be78f32047bc38f2d68ac86e871dbfcae (patch)
tree052690b3852f6cac6759de653cecb6659d268127 /tools/binman/elf.py
parentf689890d8ec52c8b9d005fbf7f6df00dcf9895db (diff)
downloadu-boot-7fe9173be78f32047bc38f2d68ac86e871dbfcae.tar.gz
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 <sjg@chromium.org>
Diffstat (limited to 'tools/binman/elf.py')
-rw-r--r--tools/binman/elf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/binman/elf.py b/tools/binman/elf.py
index 97208b1795..0fb5a4a8ed 100644
--- a/tools/binman/elf.py
+++ b/tools/binman/elf.py
@@ -14,6 +14,9 @@ import struct
import tools
+# This is enabled from control.py
+debug = False
+
Symbol = namedtuple('Symbol', ['section', 'address', 'size', 'weak'])
# Used for tests which don't have an ELF file to read