Exemplo n.º 1
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
Exemplo n.º 2
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)