]> git.baikalelectronics.ru Git - uboot.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)
commit119b09533f17e2dce95f28d63dc706d85721566b
tree7313888ca95174059048b4dd9c76865c33a7f70d
parentcb033592f50b14e21fd2dd4778bffa3c0dfa6a65
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]