diff options
author | Simon Glass <sjg@chromium.org> | 2024-07-31 08:49:02 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-05 12:15:29 -0600 |
commit | 2e658c18096bc62840e081055a4e35f28c50ec2f (patch) | |
tree | 07322dafcf4de144f34e823a2f10767e7a7c5804 /tools | |
parent | d0dbfd5299910a85c821b06ae8bd9a38818331c1 (diff) | |
download | u-boot-2e658c18096bc62840e081055a4e35f28c50ec2f.tar.gz u-boot-2e658c18096bc62840e081055a4e35f28c50ec2f.tar.bz2 u-boot-2e658c18096bc62840e081055a4e35f28c50ec2f.zip |
binman: Deal with mkeficapsule being missing
Tools cannot be assumed to be present. Add a check for this with the
mkeficpasule tool.
Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: b617611b27a ("binman: capsule: Add support for generating...")
Diffstat (limited to 'tools')
-rw-r--r-- | tools/binman/etype/efi_capsule.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/binman/etype/efi_capsule.py b/tools/binman/etype/efi_capsule.py index 751f654bf3..1c4d1bb0e2 100644 --- a/tools/binman/etype/efi_capsule.py +++ b/tools/binman/etype/efi_capsule.py @@ -150,6 +150,10 @@ class Entry_efi_capsule(Entry_section): if ret is not None: os.remove(payload) return tools.read_file(capsule_fname) + else: + # Bintool is missing; just use the input data as the output + self.record_missing_bintool(self.mkeficapsule) + return data def AddBintools(self, btools): self.mkeficapsule = self.AddBintool(btools, 'mkeficapsule') |