diff mbox series

[v2,05/28] binman: Fix return from u-boot-ucode if there is no DT

Message ID 20201026234026.1903778-6-sjg@chromium.org
State Accepted
Commit a81294671ca190102a06db8ac3004dae7e49aa46
Delegated to: Simon Glass
Headers show
Series binman: Support compression of sections | expand

Commit Message

Simon Glass Oct. 26, 2020, 11:40 p.m. UTC
This should return empty contents, not leave it unset. Fix it.

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

(no changes since v1)

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

Comments

Simon Glass Oct. 30, 2020, 3:34 a.m. UTC | #1
This should return empty contents, not leave it unset. Fix it.

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

(no changes since v1)

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

Applied to u-boot-dm, thanks!
diff mbox series

Patch

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