mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
binman: Record the parent section of each section
At present sections have no record of their parent so it is not possible to traverse up the tree to the root and figure out the position of a section within the image. Change the constructor to record this information. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f025363543
commit
08723a7abb
3 changed files with 9 additions and 4 deletions
|
@ -42,7 +42,8 @@ class Image:
|
|||
self._size = None
|
||||
self._filename = '%s.bin' % self._name
|
||||
if test:
|
||||
self._section = bsection.Section('main-section', self._node, True)
|
||||
self._section = bsection.Section('main-section', None, self._node,
|
||||
self, True)
|
||||
else:
|
||||
self._ReadNode()
|
||||
|
||||
|
@ -52,7 +53,7 @@ class Image:
|
|||
filename = fdt_util.GetString(self._node, 'filename')
|
||||
if filename:
|
||||
self._filename = filename
|
||||
self._section = bsection.Section('main-section', self._node)
|
||||
self._section = bsection.Section('main-section', None, self._node, self)
|
||||
|
||||
def GetFdtSet(self):
|
||||
"""Get the set of device tree files used by this image"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue