summaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2018-09-14 04:57:35 -0600
committerSimon Glass <[email protected]>2018-09-29 11:49:35 -0600
commitfe1ae3ecc3a2203babd7837bd2d5cf514a374c1f (patch)
tree8a6ebd631bb6fe83a419ae23b136680e81f435e8 /tools/binman/test
parentf8f8df6eb870b53e025aa447f8d40cd2ce2a77f6 (diff)
binman: Support ELF files for U-Boot and SPL
For sandbox we want to put ELF files in the image since that is what we need to execute. Add support for this. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/96_elf.dts14
-rw-r--r--tools/binman/test/97_elf_strip.dts15
2 files changed, 29 insertions, 0 deletions
diff --git a/tools/binman/test/96_elf.dts b/tools/binman/test/96_elf.dts
new file mode 100644
index 00000000000..df3440c3194
--- /dev/null
+++ b/tools/binman/test/96_elf.dts
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ u-boot-elf {
+ };
+ u-boot-spl-elf {
+ };
+ };
+};
diff --git a/tools/binman/test/97_elf_strip.dts b/tools/binman/test/97_elf_strip.dts
new file mode 100644
index 00000000000..6f3c66fd705
--- /dev/null
+++ b/tools/binman/test/97_elf_strip.dts
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ u-boot-elf {
+ strip;
+ };
+ u-boot-spl-elf {
+ };
+ };
+};