mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
binman: Allow vblock to include devicetree blobs
At present if a devicetree blob is included in a vblock it does not deal with updates. This is because the vblock is created once at the start and does not have a method to update itself later, after all the entry contents are finalised. Fix this by adjusting how the vblock is created. Also simplify Image.ProcessEntryContents() since it effectively duplicates the code in Section.ProcessContents(). Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -136,12 +136,7 @@ class Image(section.Entry_section):
|
||||
Returns:
|
||||
True if the new data size is OK, False if expansion is needed
|
||||
"""
|
||||
sizes_ok = True
|
||||
for entry in self._entries.values():
|
||||
if not entry.ProcessContents():
|
||||
sizes_ok = False
|
||||
tout.Debug("Entry '%s' size change" % self._node.path)
|
||||
return sizes_ok
|
||||
return super().ProcessContents()
|
||||
|
||||
def WriteSymbols(self):
|
||||
"""Write symbol values into binary files for access at run time"""
|
||||
|
Reference in New Issue
Block a user