mirror of
https://xff.cz/git/u-boot/
synced 2025-09-18 17:12:08 +02:00
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>
This commit is contained in:
committed by
Simon Glass
parent
4897d331f3
commit
f3078d4ea7
@@ -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):
|
||||
|
Reference in New Issue
Block a user