binman: Fix return from u-boot-ucode if there is no DT
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:03 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
This should return empty contents, not leave it unset. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/u_boot_ucode.py

index 4462293..b4cb8cd 100644 (file)
@@ -81,6 +81,7 @@ class Entry_u_boot_ucode(Entry_blob):
             if fdt_entry:
                 break
         if not fdt_entry:
+            self.data = b''
             return True
         if not fdt_entry.ready:
             return False