diff options
| author | Simon Glass <[email protected]> | 2021-03-21 18:24:33 +1300 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2021-03-27 16:26:48 +1300 |
| commit | 5ff9fedc9bc02e01d73d57e9c7d7eac9fd6320d4 (patch) | |
| tree | 0fc99fe53f99d7f97011a990ddf452454ad7b15b /tools/binman/test | |
| parent | 631f752de5b8dccbf9a0d4824213e9e6e0d96167 (diff) | |
binman: Support default alignment for sections
Sometimes it is useful to specify the default alignment for all entries
in a section, such as when word-alignment is necessary, for example. It
is tedious and error-prone to specify this individually for each section.
Add a property to control this for a section.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/test')
| -rw-r--r-- | tools/binman/test/200_align_default.dts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/binman/test/200_align_default.dts b/tools/binman/test/200_align_default.dts new file mode 100644 index 00000000000..1b155770d4c --- /dev/null +++ b/tools/binman/test/200_align_default.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + align-default = <8>; + u-boot { + }; + + u-boot-align { + type = "u-boot"; + }; + + section { + align = <32>; + u-boot { + }; + + u-boot-nodtb { + }; + }; + + u-boot-nodtb { + }; + }; +}; |
