summaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-07 07:35:19 +0300
committerSimon Glass <sjg@chromium.org>2021-01-31 00:25:41 +0300
commit5c6ba71bbe1285cfd323574dca88b8484a38aecd (patch)
tree89ce129ceb7af90ef1e7a721c3333f5eb482f24e /tools/binman/test
parent6eb9932668fa6bd8c659484b2d18d8a73713208c (diff)
downloadu-boot-5c6ba71bbe1285cfd323574dca88b8484a38aecd.tar.xz
binman: Allow for skip_at_start when reading entries
The offset of an entry needs to be adjusted by its skip-at-start value. This is currently missing when reading entry data. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/191_read_image_skip.dts23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/binman/test/191_read_image_skip.dts b/tools/binman/test/191_read_image_skip.dts
new file mode 100644
index 0000000000..31df518fae
--- /dev/null
+++ b/tools/binman/test/191_read_image_skip.dts
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ end-at-4gb;
+ size = <0x400>;
+ section {
+ size = <0x10>;
+ u-boot {
+ };
+ };
+ fdtmap {
+ };
+ image-header {
+ location = "end";
+ };
+ };
+};