mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-21 02:33:07 +00:00
7d398bb1c7
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>
27 lines
406 B
Text
27 lines
406 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
binman {
|
|
pad-byte = <0x26>;
|
|
section@0 {
|
|
read-only;
|
|
|
|
/* Padding for the section uses the 0x26 pad byte */
|
|
pad-before = <3>;
|
|
pad-after = <2>;
|
|
|
|
/* Set the padding byte for entries, i.e. u-boot */
|
|
pad-byte = <0x21>;
|
|
|
|
u-boot {
|
|
pad-before = <5>;
|
|
pad-after = <1>;
|
|
};
|
|
};
|
|
};
|
|
};
|