Пример #1
0
 def _ReadNode(self):
     """Read properties from the image node"""
     self._size = fdt_util.GetInt(self._node, 'size')
     filename = fdt_util.GetString(self._node, 'filename')
     if filename:
         self._filename = filename
     self._section = bsection.Section('main-section', self._node)
Пример #2
0
 def __init__(self, name, node, test=False):
     self._node = node
     self._name = name
     self._size = None
     self._filename = '%s.bin' % self._name
     if test:
         self._section = bsection.Section('main-section', self._node, True)
     else:
         self._ReadNode()
Пример #3
0
 def __init__(self, image, etype, node):
     Entry.__init__(self, image, etype, node)
     self._section = bsection.Section(node.name, node)