コード例 #1
0
ファイル: entry.py プロジェクト: JTaoZh/u-boot
 def AddMissingProperties(self):
     """Add new properties to the device tree as needed for this entry"""
     for prop in ['offset', 'size', 'image-pos']:
         if not prop in self._node.props:
             state.AddZeroProp(self._node, prop)
     if self.compress != 'none':
         state.AddZeroProp(self._node, 'uncomp-size')
     err = state.CheckAddHashProp(self._node)
     if err:
         self.Raise(err)
コード例 #2
0
    def AddMissingProperties(self):
        """Add new properties to the device tree as needed for this entry"""
        for prop in ['offset', 'size', 'image-pos']:
            if not prop in self._node.props:
                state.AddZeroProp(self._node, prop)
        if self.GetImage().allow_repack:
            if self.orig_offset is not None:
                state.AddZeroProp(self._node, 'orig-offset', True)
            if self.orig_size is not None:
                state.AddZeroProp(self._node, 'orig-size', True)

        if self.compress != 'none':
            state.AddZeroProp(self._node, 'uncomp-size')
        err = state.CheckAddHashProp(self._node)
        if err:
            self.Raise(err)
コード例 #3
0
 def AddMissingProperties(self):
     """Add new properties to the device tree as needed for this entry"""
     for prop in ['offset', 'size', 'image-pos']:
         if not prop in self._node.props:
             state.AddZeroProp(self._node, prop)
     state.CheckAddHashProp(self._node)
     for entry in self._entries.values():
         entry.AddMissingProperties()
コード例 #4
0
ファイル: cbfs.py プロジェクト: Mshrimp/u-boot-2020.01
 def AddMissingProperties(self):
     Entry.AddMissingProperties(self)
     for entry in self._cbfs_entries.values():
         entry.AddMissingProperties()
         if entry._cbfs_compress:
             state.AddZeroProp(entry._node, 'uncomp-size')
             # Store the 'compress' property, since we don't look at
             # 'cbfs-compress' in Entry.ReadData()
             state.AddString(entry._node, 'compress',
                             cbfs_util.compress_name(entry._cbfs_compress))
コード例 #5
0
 def AddMissingProperties(self):
     Entry.AddMissingProperties(self)
     if self._compress != 'none':
         state.AddZeroProp(self._node, 'uncomp-size')