diff options
author | Simon Glass <sjg@chromium.org> | 2018-07-06 10:27:41 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-07-09 09:11:00 -0600 |
commit | 078ab1a2f5a9901f5f9983163d4f98b8d94bfda0 (patch) | |
tree | 469e20126f5566717b8a0cd35395b1c029e42139 /tools/binman/bsection.py | |
parent | ecab89737a4eb58c043388b1ca1c0f1dfdaa3346 (diff) |
binman: Add a SetCalculatedProperties() method
Once binman has packed the image, the position and size of each entry is
known. It is then possible for binman to update the device tree with these
positions. Since placeholder values have been added, this does not affect
the size of the device tree and therefore the packing does not need to be
performed again.
Add a new SetCalculatedProperties method to handle this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/bsection.py')
-rw-r--r-- | tools/binman/bsection.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/binman/bsection.py b/tools/binman/bsection.py index 3ed361d69a..de439ef625 100644 --- a/tools/binman/bsection.py +++ b/tools/binman/bsection.py @@ -90,6 +90,14 @@ class Section(object): entry.SetPrefix(self._name_prefix) self._entries[node.name] = entry + def AddMissingProperties(self): + for entry in self._entries.values(): + entry.AddMissingProperties() + + def SetCalculatedProperties(self): + for entry in self._entries.values(): + entry.SetCalculatedProperties() + def ProcessFdt(self, fdt): todo = self._entries.values() for passnum in range(3): |