Ejemplo n.º 1
0
 def _ReadEntries(self):
     for node in self._node.subnodes:
         if node.name == 'hash':
             continue
         entry = Entry.Create(self, node)
         entry.SetPrefix(self._name_prefix)
         self._entries[node.name] = entry
Ejemplo n.º 2
0
 def _ReadSubnodes(self):
     """Read the subnodes to find out what should go in this IFWI"""
     for node in self._node.subnodes:
         entry = Entry.Create(self.section, node)
         entry._ifwi_replace = fdt_util.GetBool(node, 'replace')
         entry._ifwi_subpart = fdt_util.GetString(node, 'ifwi-subpart')
         entry._ifwi_entry_name = fdt_util.GetString(node, 'ifwi-entry')
         self._ifwi_entries[entry._ifwi_subpart] = entry
Ejemplo n.º 3
0
 def _ReadSubnodes(self):
     """Read the subnodes to find out what should go in this IFWI"""
     for node in self._node.subnodes:
         entry = Entry.Create(self.section, node)
         entry._cbfs_name = fdt_util.GetString(node, 'cbfs-name', entry.name)
         entry._type = fdt_util.GetString(node, 'cbfs-type')
         compress = fdt_util.GetString(node, 'cbfs-compress', 'none')
         entry._cbfs_offset = fdt_util.GetInt(node, 'cbfs-offset')
         entry._cbfs_compress = cbfs_util.find_compress(compress)
         if entry._cbfs_compress is None:
             self.Raise("Invalid compression in '%s': '%s'" %
                        (node.name, compress))
         self._cbfs_entries[entry._cbfs_name] = entry
Ejemplo n.º 4
0
 def _ReadEntries(self):
     for node in self._node.subnodes:
         self._entries[node.name] = Entry.Create(self, node)
Ejemplo n.º 5
0
 def _ReadEntries(self):
     for node in self._node.subnodes:
         entry = Entry.Create(self, node)
         entry.SetPrefix(self._name_prefix)
         self._entries[node.name] = entry