]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Keep the efi_capsule input file
authorSimon Glass <sjg@chromium.org>
Wed, 31 Jul 2024 14:49:04 +0000 (08:49 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Aug 2024 18:15:29 +0000 (12:15 -0600)
There is no need to remove input files. It makes it harder to diagnose
failures. Keep the payload file.

There is no test for this condition, but one could be added.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Sughosh Ganu <sughosh.ganu@linaro.org>
tools/binman/etype/efi_capsule.py

index 1c4d1bb0e2aa3284b01e9f05b77ffabdbfea04fb..5941545d0b29385d7ef4a880216361a64f314d75 100644 (file)
@@ -148,7 +148,6 @@ class Entry_efi_capsule(Entry_section):
                                                  self.fw_version,
                                                  self.oem_flags)
         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