diff options
author | Simon Glass <sjg@chromium.org> | 2018-09-14 04:57:21 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-09-28 11:09:01 -0600 |
commit | f46621d255181bd8d1e8092945ffc66147b88531 (patch) | |
tree | 1abc966d98fefc9eb298b5336ad380f54612b42a /tools/binman/entry.py | |
parent | 2a72cc72ca29fb14a61dd50a60ffcd096a0be317 (diff) | |
download | u-boot-f46621d255181bd8d1e8092945ffc66147b88531.zip u-boot-f46621d255181bd8d1e8092945ffc66147b88531.tar.gz u-boot-f46621d255181bd8d1e8092945ffc66147b88531.tar.bz2 |
binman: Centralise device-tree updates within binman
At present we have a few calls to device-tree functions in binman and plan
to add more as we add new entry types which need to report their results.
It makes sense to put this code in a central place so that we can make
sure all device trees are updated. At present we only have U-Boot proper,
but plan to add SPL and TPL too.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 1d6299a..4b87156 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -168,13 +168,13 @@ class Entry(object): """Add new properties to the device tree as needed for this entry""" for prop in ['offset', 'size', 'image-pos']: if not prop in self._node.props: - self._node.AddZeroProp(prop) + state.AddZeroProp(self._node, prop) def SetCalculatedProperties(self): """Set the value of device-tree properties calculated by binman""" - self._node.SetInt('offset', self.offset) - self._node.SetInt('size', self.size) - self._node.SetInt('image-pos', self.image_pos) + state.SetInt(self._node, 'offset', self.offset) + state.SetInt(self._node, 'size', self.size) + state.SetInt(self._node, 'image-pos', self.image_pos) def ProcessFdt(self, fdt): return True |