aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/binman.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-11-13 18:54:54 -0700
committerSimon Glass <sjg@chromium.org>2017-12-12 19:53:45 -0700
commitb50e5611a6b5dff4bc2ae47d332ba0d046e2a782 (patch)
treeec72ed0ab95983e04c4d4697d3af70aac64ff33b /tools/binman/binman.py
parentcf71338ee7a1dc16f13a4f1b89f32c624210df45 (diff)
downloadu-boot-b50e5611a6b5dff4bc2ae47d332ba0d046e2a782.zip
u-boot-b50e5611a6b5dff4bc2ae47d332ba0d046e2a782.tar.gz
u-boot-b50e5611a6b5dff4bc2ae47d332ba0d046e2a782.tar.bz2
binman: Add a function to read ELF symbols
In some cases we need to read symbols from U-Boot. At present we have a a few cases which does this via 'nm' and 'grep'. It is better to use objdump since that tells us the size of the symbols and also whether it is weak or not. Add a new module which reads ELF information from files. Update existing uses of 'nm' to use this module. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/binman.py')
-rwxr-xr-xtools/binman/binman.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/binman/binman.py b/tools/binman/binman.py
index 3ccf25f..81a613d 100755
--- a/tools/binman/binman.py
+++ b/tools/binman/binman.py
@@ -33,6 +33,7 @@ import control
def RunTests():
"""Run the functional tests and any embedded doctests"""
+ import elf_test
import entry_test
import fdt_test
import ftest
@@ -50,7 +51,7 @@ def RunTests():
# 'entry' module.
suite = unittest.TestLoader().loadTestsFromTestCase(entry_test.TestEntry)
suite.run(result)
- for module in (ftest.TestFunctional, fdt_test.TestFdt):
+ for module in (ftest.TestFunctional, fdt_test.TestFdt, elf_test.TestElf):
suite = unittest.TestLoader().loadTestsFromTestCase(module)
suite.run(result)