mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
binman: Add support for align argument to mkimage tool
Add support to indicate what alignment to use for the FIT and its external data. Pass the alignment to mkimage via the -B flag. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
27e0fb3b08
commit
9b2fd2d228
@@ -6309,6 +6309,22 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
|
||||
self.assertEqual(base + 8, inset.image_pos);
|
||||
self.assertEqual(4, inset.size);
|
||||
|
||||
def testFitAlign(self):
|
||||
"""Test an image with an FIT with aligned external data"""
|
||||
data = self._DoReadFile('275_fit_align.dts')
|
||||
self.assertEqual(4096, len(data))
|
||||
|
||||
dtb = fdt.Fdt.FromData(data)
|
||||
dtb.Scan()
|
||||
|
||||
props = self._GetPropTree(dtb, ['data-position'])
|
||||
expected = {
|
||||
'u-boot:data-position': 1024,
|
||||
'fdt-1:data-position': 2048,
|
||||
'fdt-2:data-position': 3072,
|
||||
}
|
||||
self.assertEqual(expected, props)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user