diff mbox series

[04/12] binman: blob_dtb: Add fake_size argument to ObtainContents()

Message ID 20230629145925.302080-5-lukas.funke-oss@weidmueller.com
State Superseded
Delegated to: Simon Glass
Headers show
Series Sign Xilinx ZynqMP SPL/FSBL boot images using binman | expand

Commit Message

Lukas Funke June 29, 2023, 2:59 p.m. UTC
From: Lukas Funke <lukas.funke@weidmueller.com>

The method 'connect_contents_to_file()' calls ObtainsContents() with
'fake_size' argument. Without providing the argument in the blob_dtb
we are not able to call this method without error.

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
---

 tools/binman/etype/blob_dtb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass June 29, 2023, 7:10 p.m. UTC | #1
On Thu, 29 Jun 2023 at 15:59, <lukas.funke-oss@weidmueller.com> wrote:
>
> From: Lukas Funke <lukas.funke@weidmueller.com>
>
> The method 'connect_contents_to_file()' calls ObtainsContents() with
> 'fake_size' argument. Without providing the argument in the blob_dtb
> we are not able to call this method without error.
>
> Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
> ---
>
>  tools/binman/etype/blob_dtb.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/tools/binman/etype/blob_dtb.py b/tools/binman/etype/blob_dtb.py
index 6a3fbc4775..d543de9f75 100644
--- a/tools/binman/etype/blob_dtb.py
+++ b/tools/binman/etype/blob_dtb.py
@@ -38,7 +38,7 @@  class Entry_blob_dtb(Entry_blob):
             self.Raise("Invalid prepend in '%s': '%s'" %
                        (self._node.name, self.prepend))
 
-    def ObtainContents(self):
+    def ObtainContents(self, fake_size=0):
         """Get the device-tree from the list held by the 'state' module"""
         self._filename = self.GetDefaultFilename()
         self._pathname, _ = state.GetFdtContents(self.GetFdtEtype())