summaryrefslogtreecommitdiffstats
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-06-01 09:38:11 -0600
committerSimon Glass <sjg@chromium.org>2018-06-07 11:25:07 -0800
commitdd57c13bbc28df6f1bc849ec55d1703f4ca0398e (patch)
tree28401cbca4c07d4cde33fc1944a100c46378fd92 /tools/binman/test
parent48ae412424ddfda64f45a9d679a960357e57433e (diff)
downloadu-boot-dd57c13bbc28df6f1bc849ec55d1703f4ca0398e.tar.gz
u-boot-dd57c13bbc28df6f1bc849ec55d1703f4ca0398e.tar.xz
u-boot-dd57c13bbc28df6f1bc849ec55d1703f4ca0398e.zip
binman: Allow unit addresses for binaries
Allow the same binary to appear multiple times in an image by using the device-tree unit-address feature (u-boot@0, u-boot@1). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/54_unit_address.dts15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/binman/test/54_unit_address.dts b/tools/binman/test/54_unit_address.dts
new file mode 100644
index 0000000000..3216dbbcc1
--- /dev/null
+++ b/tools/binman/test/54_unit_address.dts
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ u-boot@0 {
+ };
+ u-boot@1 {
+ };
+ };
+};