Browse Source

binman: Fix return from u-boot-ucode if there is no DT

This should return empty contents, not leave it unset. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 3 years ago
parent
commit
a81294671c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tools/binman/etype/u_boot_ucode.py

+ 1 - 0
tools/binman/etype/u_boot_ucode.py

@@ -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