mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-18 06:38:15 +01:00
binman: Add a test for an inner section with a size
This is a slightly different scenario from the existing testSections tests. Add a new test for it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
12c3e948ee
commit
0b079fcb09
@ -6188,6 +6188,12 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
|
|||||||
err,
|
err,
|
||||||
"Image '.*' is missing external blobs but is still functional: missing")
|
"Image '.*' is missing external blobs but is still functional: missing")
|
||||||
|
|
||||||
|
def testSectionInner(self):
|
||||||
|
"""Test an inner section with a size"""
|
||||||
|
data = self._DoReadFile('267_section_inner.dts')
|
||||||
|
expected = U_BOOT_DATA + tools.get_bytes(0, 12)
|
||||||
|
self.assertEqual(expected, data)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
16
tools/binman/test/267_section_inner.dts
Normal file
16
tools/binman/test/267_section_inner.dts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0+
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
/ {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
binman {
|
||||||
|
section {
|
||||||
|
size = <0x10>;
|
||||||
|
u-boot {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user