aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/etype
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-09-14 04:57:33 -0600
committerSimon Glass <sjg@chromium.org>2018-09-29 11:49:35 -0600
commit08723a7abbc7e28b22d18684faf5142fc6f155e8 (patch)
tree92d53765f4f7704cae0e030122deee1f2cf92ea0 /tools/binman/etype
parentf025363543636191cfc6d277733317cb0198189f (diff)
downloadu-boot-08723a7abbc7e28b22d18684faf5142fc6f155e8.zip
u-boot-08723a7abbc7e28b22d18684faf5142fc6f155e8.tar.gz
u-boot-08723a7abbc7e28b22d18684faf5142fc6f155e8.tar.bz2
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>
Diffstat (limited to 'tools/binman/etype')
-rw-r--r--tools/binman/etype/section.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py
index 005a9f9..7f1b413 100644
--- a/tools/binman/etype/section.py
+++ b/tools/binman/etype/section.py
@@ -32,7 +32,8 @@ class Entry_section(Entry):
"""
def __init__(self, section, etype, node):
Entry.__init__(self, section, etype, node)
- self._section = bsection.Section(node.name, node)
+ self._section = bsection.Section(node.name, section, node,
+ section._image)
def GetFdtSet(self):
return self._section.GetFdtSet()