Пример #1
0
    def WriteData(self, data, decomp=True):
        ok = Entry_blob.WriteData(self, data, decomp)

        # Update the state module, since it has the authoritative record of the
        # device trees used. If we don't do this, then state.GetFdtContents()
        # will still return the old contents
        state.UpdateFdtContents(self.GetFdtEtype(), data)
        return ok
Пример #2
0
 def ReadBlobContents(self):
     if self._strip:
         uniq = self.GetUniqueName()
         out_fname = tools.GetOutputFilename('%s.stripped' % uniq)
         tools.WriteFile(out_fname, tools.ReadFile(self._pathname))
         tools.Run('strip', out_fname)
         self._pathname = out_fname
     Entry_blob.ReadBlobContents(self)
     return True
Пример #3
0
 def Pack(self, offset):
     """Special pack method to set the offset to the right place"""
     return Entry_blob.Pack(self, 0xffffffc0)
Пример #4
0
 def __init__(self, section, etype, node):
     Entry_blob.__init__(self, section, etype, node)
     if self.HasSibling('intel-fit') is False:
         self.Raise(
             "'intel-fit-ptr' section must have an 'intel-fit' sibling")
Пример #5
0
 def __init__(self, section, etype, node):
     Entry_blob.__init__(self, section, etype, node)
     self.external = True
Пример #6
0
 def __init__(self, section, etype, node):
     Entry_blob.__init__(self, section, etype, node)
Пример #7
0
 def __init__(self, section, etype, node, blob_fname):
     Entry_blob.__init__(self, section, etype, node)
     self._filename, = self.GetEntryArgsOrProps(
         [EntryArg('%s-path' % blob_fname, str)])
Пример #8
0
 def ReadNode(self):
     """Force 16-byte alignment as required by FIT pointer"""
     Entry_blob.ReadNode(self)
     self.align = 16
Пример #9
0
 def ObtainContents(self):
     """Get the device-tree from the list held by the 'state' module"""
     self._filename = self.GetDefaultFilename()
     self._pathname, _ = state.GetFdtContents(self.GetFdtEtype())
     return Entry_blob.ReadBlobContents(self)
Пример #10
0
 def __init__(self, section, etype, node):
     Entry_blob.__init__(self, section, etype, node)
     self.elf_fname = 'spl/u-boot-spl'
Пример #11
0
 def Pack(self, offset):
     """Put this entry at the start of the image"""
     if self.offset is None:
         offset = self.section.GetStartOffset()
     return Entry_blob.Pack(self, offset)
Пример #12
0
 def __init__(self, section, etype, node):
     Entry_blob.__init__(self, section, etype, node)
     self._regions = []
Пример #13
0
 def __init__(self, section, etype, node):
     Entry_blob.__init__(self, section, etype, node)
     self._strip = fdt_util.GetBool(self._node, 'strip')
Пример #14
0
 def __init__(self, section, etype, node):
     Entry_blob.__init__(self, section, etype, node)
     self._convert_fit = fdt_util.GetBool(self._node, 'convert-fit')
     self._ifwi_entries = OrderedDict()
 def __init__(self, section, etype, node):
     Entry_blob.__init__(self, section, etype, node)
     self.elf_fname = 'u-boot'
     self.target_offset = None
Пример #16
0
 def ReadNode(self):
     self._ReadSubnodes()
     Entry_blob.ReadNode(self)
Пример #17
0
    def __init__(self, section, etype, node):
        # Put this here to allow entry-docs and help to work without libfdt
        global state
        from binman import state

        Entry_blob.__init__(self, section, etype, node)