summaryrefslogtreecommitdiff
path: root/tools/binman/test/278_mkimage_missing_multiple.dts
diff options
context:
space:
mode:
authorJonas Karlman <[email protected]>2023-02-25 19:01:35 +0000
committerKever Yang <[email protected]>2023-02-28 18:07:26 +0800
commit40389c2a462256da7f2348bed791c8ba2ae6eec6 (patch)
treea274f32dbab50175590fab43afa39e6087d72045 /tools/binman/test/278_mkimage_missing_multiple.dts
parent5fc5a840d4cf189616aba3a4a7bf10c4ac8edc83 (diff)
binman: Mark mkimage entry missing when its subnodes is missing
Using the mkimage entry with the multiple-data-files prop and having a missing external blob result in an unexpected ValueError exception using the --allow-missing flag. ValueError: Filename 'missing.bin' not found in input path (...) Fix this by using _pathname that is resolved by ObtainContents for blob entries, ObtainContents also handles allow missing for external blobs. Mark mkimage entry as missing and return without running mkimage when missing entries is reported by CheckMissing. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'tools/binman/test/278_mkimage_missing_multiple.dts')
-rw-r--r--tools/binman/test/278_mkimage_missing_multiple.dts19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/binman/test/278_mkimage_missing_multiple.dts b/tools/binman/test/278_mkimage_missing_multiple.dts
new file mode 100644
index 00000000000..f84aea49ead
--- /dev/null
+++ b/tools/binman/test/278_mkimage_missing_multiple.dts
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ mkimage {
+ args = "-n test -T script";
+ multiple-data-files;
+
+ blob-ext {
+ filename = "missing.bin";
+ };
+ };
+ };
+};