diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-11 16:10:14 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-01-18 14:55:40 -0700 |
commit | 62ef2f7bf3c442b6f717d2fbe823d579cf090dd8 (patch) | |
tree | 1a6739488ca8170a0bcd56d0f5ecbc05c66c0773 /tools/binman/ftest.py | |
parent | 4331d66661566cd823086204636754f785bd5d45 (diff) |
binman: Add a null entry
It is sometimes useful to define an entry which does not have its own
contents but does appear in the image. The contents are set by the section
which contains it, even though it appears as an entry in the fdtmap.
Add support for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r-- | tools/binman/ftest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index a4f78ae041a..ac9b050fb6c 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -6194,6 +6194,11 @@ fdt fdtmap Extract the devicetree blob from the fdtmap expected = U_BOOT_DATA + tools.get_bytes(0, 12) self.assertEqual(expected, data) + def testNull(self): + """Test an image with a null entry""" + data = self._DoReadFile('268_null.dts') + self.assertEqual(U_BOOT_DATA + b'\xff\xff\xff\xff' + U_BOOT_IMG_DATA, data) + if __name__ == "__main__": unittest.main() |