summaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2022-03-05 20:19:05 -0700
committerSimon Glass <[email protected]>2022-03-18 19:24:25 -0600
commit72e423c6b6664ff77b46c732f8d7e2e173b3b5fe (patch)
treed07400ebe3dee62f4ea7107f8178a6069d0a951d /tools/binman/test
parent3817ad4c1c2d62be15f657e6647afcc93faf1d55 (diff)
binman: Allow mkimage to use a non-zero fake-blob size
Unfortunately mkimage gets upset with zero-sized files. Update the ObtainContents() method to support specifying the size, if a fake blob is created. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Alper Nebi Yasak <[email protected]>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/229_mkimage_missing.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/binman/test/229_mkimage_missing.dts b/tools/binman/test/229_mkimage_missing.dts
new file mode 100644
index 00000000000..54a5a6c571a
--- /dev/null
+++ b/tools/binman/test/229_mkimage_missing.dts
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ mkimage {
+ args = "-n test -T script";
+
+ blob-ext {
+ filename = "missing.bin";
+ };
+ };
+ };
+};