diff options
| author | Alper Nebi Yasak <alpernebiyasak@gmail.com> | 2020-08-31 12:58:19 +0300 |
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2020-09-22 12:50:43 -0600 |
| commit | 3fdeb14d951b28fa18494b4c3f819ad33b5fcc09 (patch) | |
| tree | 52363fd0590e1115ffbd41eee6d530f2e75c952b /tools/binman/test | |
| parent | 8001d0b162183493ee31b9e578756e450f673745 (diff) | |
binman: Respect pad-before property of section subentries
Other relevant properties (pad-after, offset, size, align, align-size,
align-end) already work since Pack() sets correct ranges for subentries'
data (.offset, .size variables), but some padding here is necessary to
align the data within this range to match the pad-before property.
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test')
| -rw-r--r-- | tools/binman/test/166_pad_in_sections.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/binman/test/166_pad_in_sections.dts b/tools/binman/test/166_pad_in_sections.dts new file mode 100644 index 00000000000..f2b327ff9f3 --- /dev/null +++ b/tools/binman/test/166_pad_in_sections.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0x26>; + section { + pad-byte = <0x21>; + + before { + type = "u-boot"; + }; + u-boot { + pad-before = <12>; + pad-after = <6>; + }; + after { + type = "u-boot"; + }; + }; + }; +}; |
