summaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-07 14:07:12 -0700
committerSimon Glass <sjg@chromium.org>2023-01-18 11:50:01 -0700
commitc8c9f3108a7b8c3ff391f60b184fa372ae4f32f2 (patch)
tree326f5e1078f7b02783d0f0832a60ebad62a96654 /tools/binman/test
parent23ab4e0054783e619fcf39a50faf9c08c2e18fa5 (diff)
binman: Support optional entries
Support entries which can be optional depending on their contents. This allows special entry types which appear in the image only when needed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/262_absent.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/binman/test/262_absent.dts b/tools/binman/test/262_absent.dts
new file mode 100644
index 0000000000..2ab8766c87
--- /dev/null
+++ b/tools/binman/test/262_absent.dts
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ u-boot {
+ };
+
+ _testing {
+ set-to-absent;
+ };
+
+ u-boot-img {
+ };
+ };
+};