binman: Rename tools parameter to btools
This shadows the patman.tools library so rename it to avoid a pylint warning. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
This commit is contained in:
		
							parent
							
								
									38397d0833
								
							
						
					
					
						commit
						ae9a457029
					
				| 
						 | 
					@ -1101,11 +1101,11 @@ features to produce new behaviours.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        pass
 | 
					        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def AddBintools(self, tools):
 | 
					    def AddBintools(self, btools):
 | 
				
			||||||
        """Add the bintools used by this entry type
 | 
					        """Add the bintools used by this entry type
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Args:
 | 
					        Args:
 | 
				
			||||||
            tools (dict of Bintool):
 | 
					            btools (dict of Bintool):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        pass
 | 
					        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -488,6 +488,6 @@ class Entry_fit(Entry_section):
 | 
				
			||||||
            section.SetOffsetSize(offset, size)
 | 
					            section.SetOffsetSize(offset, size)
 | 
				
			||||||
            section.SetImagePos(self.image_pos)
 | 
					            section.SetImagePos(self.image_pos)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def AddBintools(self, tools):
 | 
					    def AddBintools(self, btools):
 | 
				
			||||||
        super().AddBintools(tools)
 | 
					        super().AddBintools(btools)
 | 
				
			||||||
        self.mkimage = self.AddBintool(tools, 'mkimage')
 | 
					        self.mkimage = self.AddBintool(btools, 'mkimage')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -99,5 +99,5 @@ class Entry_gbb(Entry):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return True
 | 
					        return True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def AddBintools(self, tools):
 | 
					    def AddBintools(self, btools):
 | 
				
			||||||
        self.futility = self.AddBintool(tools, 'futility')
 | 
					        self.futility = self.AddBintool(btools, 'futility')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -143,5 +143,5 @@ class Entry_intel_ifwi(Entry_blob_ext):
 | 
				
			||||||
            for entry in self._ifwi_entries.values():
 | 
					            for entry in self._ifwi_entries.values():
 | 
				
			||||||
                entry.WriteSymbols(self)
 | 
					                entry.WriteSymbols(self)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def AddBintools(self, tools):
 | 
					    def AddBintools(self, btools):
 | 
				
			||||||
        self.ifwitool = self.AddBintool(tools, 'ifwitool')
 | 
					        self.ifwitool = self.AddBintool(btools, 'ifwitool')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -93,5 +93,5 @@ class Entry_mkimage(Entry):
 | 
				
			||||||
        for entry in self._mkimage_entries.values():
 | 
					        for entry in self._mkimage_entries.values():
 | 
				
			||||||
            entry.CheckFakedBlobs(faked_blobs_list)
 | 
					            entry.CheckFakedBlobs(faked_blobs_list)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def AddBintools(self, tools):
 | 
					    def AddBintools(self, btools):
 | 
				
			||||||
        self.mkimage = self.AddBintool(tools, 'mkimage')
 | 
					        self.mkimage = self.AddBintool(btools, 'mkimage')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -895,6 +895,6 @@ class Entry_section(Entry):
 | 
				
			||||||
        for entry in self._entries.values():
 | 
					        for entry in self._entries.values():
 | 
				
			||||||
            entry.CheckAltFormats(alt_formats)
 | 
					            entry.CheckAltFormats(alt_formats)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def AddBintools(self, tools):
 | 
					    def AddBintools(self, btools):
 | 
				
			||||||
        for entry in self._entries.values():
 | 
					        for entry in self._entries.values():
 | 
				
			||||||
            entry.AddBintools(tools)
 | 
					            entry.AddBintools(btools)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -97,5 +97,5 @@ class Entry_vblock(Entry_collection):
 | 
				
			||||||
        data = self.GetVblock(True)
 | 
					        data = self.GetVblock(True)
 | 
				
			||||||
        return self.ProcessContentsUpdate(data)
 | 
					        return self.ProcessContentsUpdate(data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def AddBintools(self, tools):
 | 
					    def AddBintools(self, btools):
 | 
				
			||||||
        self.futility = self.AddBintool(tools, 'futility')
 | 
					        self.futility = self.AddBintool(btools, 'futility')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue