diff options
author | Simon Glass <sjg@chromium.org> | 2018-09-14 04:57:08 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-09-28 11:09:01 -0600 |
commit | d178eab8f92cb2d67288e01d1ae5b0eb8d0f8db1 (patch) | |
tree | 9a6e63e0c1c70795e2c0ea505d0bd343a50d5044 /tools/binman/test/80_fill_empty.dts | |
parent | f069303852bdfa1303cd5787667bd7924f0482d9 (diff) | |
download | u-boot-d178eab8f92cb2d67288e01d1ae5b0eb8d0f8db1.tar.gz |
binman: Allow 'fill' entry to have a size of 0
The check for this should be for None, not 0. Fix it and add a test.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/80_fill_empty.dts')
-rw-r--r-- | tools/binman/test/80_fill_empty.dts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/binman/test/80_fill_empty.dts b/tools/binman/test/80_fill_empty.dts new file mode 100644 index 0000000000..2b78d3ae88 --- /dev/null +++ b/tools/binman/test/80_fill_empty.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <16>; + fill { + size = <0>; + fill-byte = [ff]; + }; + }; +}; |