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
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
def Pack(self, offset): """Special pack method to set the offset to the right place""" return Entry_blob.Pack(self, 0xffffffc0)
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")
def __init__(self, section, etype, node): Entry_blob.__init__(self, section, etype, node) self.external = True
def __init__(self, section, etype, node): Entry_blob.__init__(self, section, etype, node)
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)])
def ReadNode(self): """Force 16-byte alignment as required by FIT pointer""" Entry_blob.ReadNode(self) self.align = 16
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)
def __init__(self, section, etype, node): Entry_blob.__init__(self, section, etype, node) self.elf_fname = 'spl/u-boot-spl'
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)
def __init__(self, section, etype, node): Entry_blob.__init__(self, section, etype, node) self._regions = []
def __init__(self, section, etype, node): Entry_blob.__init__(self, section, etype, node) self._strip = fdt_util.GetBool(self._node, 'strip')
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
def ReadNode(self): self._ReadSubnodes() Entry_blob.ReadNode(self)
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)