]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Allow zero-length entries to overlap
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:39:42 +0000 (18:39 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 25 Jul 2020 20:46:57 +0000 (14:46 -0600)
commitb3295fd4e3d61a7ceabbad10a293db2dcd38b38b
treef8a1abd9b1c8b619cd7fae59b7ad5def222ffa62
parent0ba4b3dfee57a4e5803abd881e9654fb0414a3c1
binman: Allow zero-length entries to overlap

Some binary blobs unfortunately obtain their position in the image from
other binary blobs, such as Intel's 'descriptor'. In this case we cannot
rely on packing to work. It is not possible to produce a valid image in
any case, due to the missing blobs.

Allow zero-length overlaps so that this does not cause any problems.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
tools/binman/etype/section.py
tools/binman/ftest.py
tools/binman/test/160_pack_overlap_zero.dts [new file with mode: 0644]