[PATCH 02/25] binman: Fix return from u-boot-ucode if there is no DT

Simon Glass sjg at chromium.org
Mon Oct 19 04:41:15 CEST 2020


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

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/binman/etype/u_boot_ucode.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/binman/etype/u_boot_ucode.py b/tools/binman/etype/u_boot_ucode.py
index 44622936182..b4cb8cdb6e1 100644
--- a/tools/binman/etype/u_boot_ucode.py
+++ b/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
-- 
2.29.0.rc1.297.gfa9743e501-goog



More information about the U-Boot mailing list