summaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorQuentin Schulz <[email protected]>2022-09-02 15:10:49 +0200
committerKever Yang <[email protected]>2022-09-04 20:00:39 +0800
commit6cc29dc854916be4c8b10b956c65b4b1ff217eee (patch)
tree4423b349afbc16bd4f200d17dbe11f2f77b60595 /tools/binman/test
parent4d91df0548a8d71e3a2fd769b6ee65e76a764f25 (diff)
binman: allow user-defined filenames for mkimage entry
mkimage entry currently creates a file whose name is derived from the section name containing said entry. Let's allow the user to define a filename for the mkimage-generated binary by using the 'filename' DT property. Cc: Quentin Schulz <[email protected]> Signed-off-by: Quentin Schulz <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/254_mkimage_filename.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/binman/test/254_mkimage_filename.dts b/tools/binman/test/254_mkimage_filename.dts
new file mode 100644
index 00000000000..4483790ae86
--- /dev/null
+++ b/tools/binman/test/254_mkimage_filename.dts
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ mkimage {
+ filename = "mkimage-test.bin";
+ args = "-T script";
+
+ u-boot-spl {
+ };
+ };
+ };
+};