]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Make section padding consistent with other entries
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:14 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commit7d398bb1c71580da2182f0b820d91950bf4b3d24
tree7313888ca95174059048b4dd9c76865c33a7f70d
parentd1d3ad7d1fea137a6fe0709458947ca84ffb124c
binman: Make section padding consistent with other entries

At present padding of sections is inconsistent with other entry types, in
that different pad bytes are used.

When a normal entry is padded by its parent, the parent's pad byte is
used. But for sections, the section's pad byte is used.

Adjust logic to always do this the same way.

Note there is still a special case in entry_Section.GetPaddedData() where
an image is padded with the pad byte of the top-level section. This is
necessary since otherwise there would be no way to set the pad byte of
the image, without adding a top-level section to every image.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/section.py
tools/binman/ftest.py
tools/binman/test/180_section_pad.dts [new file with mode: 0644]
tools/binman/test/181_section_align.dts [new file with mode: 0644]