binman: Add an image header
authorSimon Glass <sjg@chromium.org>
Mon, 8 Jul 2019 20:25:28 +0000 (14:25 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 24 Jul 2019 19:53:46 +0000 (12:53 -0700)
commitcf2289435c7e1134c75d9217ef32238aec0ecdbf
tree9c58722f695d50ffae4968f0b89a30b1af201908
parent086cec9f980efd6f25e184b84f626d4a667e6645
binman: Add an image header

It is useful to be able to quickly locate the FDT map in the image. An
easy way to do this is with a pointer at the start or end of the image.

Add an 'image header' entry, which places a magic number followed by a
pointer to the FDT map. This can be located at the start or end of the
image, or at a chosen location.

As part of this, update GetSiblingImagePos() to detect missing siblings.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/README
tools/binman/README.entries
tools/binman/entry.py
tools/binman/etype/image_header.py [new file with mode: 0644]
tools/binman/ftest.py
tools/binman/test/116_fdtmap_hdr.dts [new file with mode: 0644]
tools/binman/test/117_fdtmap_hdr_start.dts [new file with mode: 0644]
tools/binman/test/118_fdtmap_hdr_pos.dts [new file with mode: 0644]
tools/binman/test/119_fdtmap_hdr_missing.dts [new file with mode: 0644]
tools/binman/test/120_hdr_no_location.dts [new file with mode: 0644]