diff options
author | Simon Glass <sjg@chromium.org> | 2023-03-03 03:02:43 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-03-09 00:15:14 +0300 |
commit | 033828cf34e11776913298385efac406de89dd08 (patch) | |
tree | d2af7324bdb2209f70fc8530c113b7abdae5f132 /tools/binman/etype/fit.py | |
parent | e00197f92d8485a1285903227f6ee5058ee423df (diff) | |
download | u-boot-033828cf34e11776913298385efac406de89dd08.tar.xz |
binman: Handle missing bintools correctly in fit
At present these are handled as if they are allowed to be missing, but
this is only true if the -M flag is provided. Fix this and add a test.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/fit.py')
-rw-r--r-- | tools/binman/etype/fit.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index 9def443361..39aa792b10 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -453,6 +453,8 @@ class Entry_fit(Entry_section): args.update({'align': fdt_util.fdt32_to_cpu(align.value)}) if self.mkimage.run(reset_timestamp=True, output_fname=output_fname, **args) is None: + if not self.GetAllowMissing(): + self.Raise("Missing tool: 'mkimage'") # Bintool is missing; just use empty data as the output self.record_missing_bintool(self.mkimage) return tools.get_bytes(0, 1024) |