summaryrefslogtreecommitdiff
path: root/tools/binman/bsection.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/binman/bsection.py')
-rw-r--r--tools/binman/bsection.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/binman/bsection.py b/tools/binman/bsection.py
index a0bd1b6d34..4f5c33f048 100644
--- a/tools/binman/bsection.py
+++ b/tools/binman/bsection.py
@@ -12,6 +12,7 @@ import sys
import fdt_util
import re
+import state
import tools
class Section(object):
@@ -98,14 +99,14 @@ class Section(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)
for entry in self._entries.values():
entry.AddMissingProperties()
def SetCalculatedProperties(self):
- 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)
for entry in self._entries.values():
entry.SetCalculatedProperties()