]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: blob_dtb: Add fake_size argument to ObtainContents()
authorLukas Funke <lukas.funke@weidmueller.com>
Tue, 18 Jul 2023 11:53:11 +0000 (13:53 +0200)
committerSimon Glass <sjg@chromium.org>
Mon, 24 Jul 2023 15:34:10 +0000 (09:34 -0600)
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>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/blob_dtb.py

index 6a3fbc47753c6e3206355f1e8bec3a1a6ea897a7..d543de9f759beab5278836f32485457c00340cdd 100644 (file)
@@ -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())