]> git.sur5r.net Git - u-boot/blobdiff - tools/binman/etype/blob.py
binman: Tidy up setting of entry contents
[u-boot] / tools / binman / etype / blob.py
index 16b1e5f64d97933a95fbdd6acfcf70a64094e318..28e6651a935e4c171b2e26c7ada812128919b031 100644 (file)
@@ -28,8 +28,7 @@ class Entry_blob(Entry):
             # new Entry method which can read in chunks. Then we could copy
             # the data in chunks and avoid reading it all at once. For now
             # this seems like an unnecessary complication.
-            self.data = fd.read()
-            self.contents_size = len(self.data)
+            self.SetContents(fd.read())
         return True
 
     def GetDefaultFilename(self):