summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-02-08 01:08:07 +0300
committerSimon Glass <sjg@chromium.org>2022-02-09 12:30:13 -0700
commitf3078d4ea707931c2307a623ecf6e4d215b413d5 (patch)
tree6f9a8892adccead88ea4f4d89d1e3638352bb8d4 /tools/binman/ftest.py
parent4897d331f37e1fd1c3a4ca599ea8093c4c977a09 (diff)
binman: Convert FIT entry type to a subclass of Section entry type
The binman FIT entry type shares some code with the Section entry type. This shared code is bound to grow, since FIT entries are conceptually a variation of Section entries. Make FIT entry type a subclass of Section entry type, simplifying it a bit and providing us the features that Section implements. Also fix the subentry alignment test which now attempts to write symbols to a nonexistent SPL ELF test file by creating it first. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Avoid AddMissingProperties() and SetCalculatedProperties() with FIT: Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index dc14a74904a..59b6d52fbe4 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -3850,6 +3850,7 @@ class TestFunctional(unittest.TestCase):
def testFitImageSubentryAlignment(self):
"""Test relative alignability of FIT image subentries"""
+ self._SetupSplElf()
entry_args = {
'test-id': TEXT_DATA,
}
@@ -5143,8 +5144,8 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
data, _, _, _ = self._DoReadFileDtb('220_fit_subentry_bintool.dts',
entry_args=entry_args)
- expected = (GBB_DATA + GBB_DATA + tools.GetBytes(0, 8) +
- tools.GetBytes(0, 0x2180 - 16))
+ expected = (GBB_DATA + GBB_DATA + tools.get_bytes(0, 8) +
+ tools.get_bytes(0, 0x2180 - 16))
self.assertIn(expected, data)
def testFitSubentryMissingBintool(self):