]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Deal with mkeficapsule being missing
authorSimon Glass <sjg@chromium.org>
Wed, 31 Jul 2024 14:49:02 +0000 (08:49 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Aug 2024 18:15:29 +0000 (12:15 -0600)
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...")
tools/binman/etype/efi_capsule.py

index 751f654bf3108478ca1ec2c1774e60172dc1474f..1c4d1bb0e2aa3284b01e9f05b77ffabdbfea04fb 100644 (file)
@@ -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')