]> git.sur5r.net Git - u-boot/blobdiff - tools/binman/etype/u_boot_spl_bss_pad.py
binman: Tidy up setting of entry contents
[u-boot] / tools / binman / etype / u_boot_spl_bss_pad.py
index 6c397957e305b1b750bf599c387b4a83e899ded1..65f631d3c5e4d6080ade38ec877252b161a12002 100644 (file)
@@ -22,6 +22,5 @@ class Entry_u_boot_spl_bss_pad(Entry_blob):
         bss_size = elf.GetSymbolAddress(fname, '__bss_size')
         if not bss_size:
             self.Raise('Expected __bss_size symbol in spl/u-boot-spl')
-        self.data = chr(0) * bss_size
-        self.contents_size = bss_size
+        self.SetContents(chr(0) * bss_size)
         return True