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:
Simon Glass 2022-03-05 20:19:02 -07:00
parent 38397d0833
commit ae9a457029
7 changed files with 15 additions and 15 deletions

View File

@ -1101,11 +1101,11 @@ features to produce new behaviours.
"""
pass
def AddBintools(self, tools):
def AddBintools(self, btools):
"""Add the bintools used by this entry type
Args:
tools (dict of Bintool):
btools (dict of Bintool):
"""
pass

View File

@ -488,6 +488,6 @@ class Entry_fit(Entry_section):
section.SetOffsetSize(offset, size)
section.SetImagePos(self.image_pos)
def AddBintools(self, tools):
super().AddBintools(tools)
self.mkimage = self.AddBintool(tools, 'mkimage')
def AddBintools(self, btools):
super().AddBintools(btools)
self.mkimage = self.AddBintool(btools, 'mkimage')

View File

@ -99,5 +99,5 @@ class Entry_gbb(Entry):
return True
def AddBintools(self, tools):
self.futility = self.AddBintool(tools, 'futility')
def AddBintools(self, btools):
self.futility = self.AddBintool(btools, 'futility')

View File

@ -143,5 +143,5 @@ class Entry_intel_ifwi(Entry_blob_ext):
for entry in self._ifwi_entries.values():
entry.WriteSymbols(self)
def AddBintools(self, tools):
self.ifwitool = self.AddBintool(tools, 'ifwitool')
def AddBintools(self, btools):
self.ifwitool = self.AddBintool(btools, 'ifwitool')

View File

@ -93,5 +93,5 @@ class Entry_mkimage(Entry):
for entry in self._mkimage_entries.values():
entry.CheckFakedBlobs(faked_blobs_list)
def AddBintools(self, tools):
self.mkimage = self.AddBintool(tools, 'mkimage')
def AddBintools(self, btools):
self.mkimage = self.AddBintool(btools, 'mkimage')

View File

@ -895,6 +895,6 @@ class Entry_section(Entry):
for entry in self._entries.values():
entry.CheckAltFormats(alt_formats)
def AddBintools(self, tools):
def AddBintools(self, btools):
for entry in self._entries.values():
entry.AddBintools(tools)
entry.AddBintools(btools)

View File

@ -97,5 +97,5 @@ class Entry_vblock(Entry_collection):
data = self.GetVblock(True)
return self.ProcessContentsUpdate(data)
def AddBintools(self, tools):
self.futility = self.AddBintool(tools, 'futility')
def AddBintools(self, btools):
self.futility = self.AddBintool(btools, 'futility')