summaryrefslogtreecommitdiff
path: root/tools/binman/test/138_fdtmap_hdr_nosize.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 12:23:55 -0600
committerSimon Glass <sjg@chromium.org>2019-07-29 09:38:06 -0600
commiteba1f0cc942947722f70029c033b915113cec1ba (patch)
tree389003da6941977c16b6edd1e7afdecec5ea3d93 /tools/binman/test/138_fdtmap_hdr_nosize.dts
parent7400107e467da52c7e6772b677f69f4464f6d2ce (diff)
binman: Add more tests for image header position
The positioning does not currently work correctly if at the end of an image with no fixed size. Also if the header is in the middle of an image it can cause a gap in the image since the header position is normally at the image end, so entries after it are placed after the end of the image. Fix these problems and add more tests to cover these cases. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/138_fdtmap_hdr_nosize.dts')
-rw-r--r--tools/binman/test/138_fdtmap_hdr_nosize.dts16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/binman/test/138_fdtmap_hdr_nosize.dts b/tools/binman/test/138_fdtmap_hdr_nosize.dts
new file mode 100644
index 00000000000..c362f8fdffb
--- /dev/null
+++ b/tools/binman/test/138_fdtmap_hdr_nosize.dts
@@ -0,0 +1,16 @@
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ u-boot {
+ };
+ fdtmap {
+ };
+ image-header {
+ location = "end";
+ };
+ };
+};