]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Rename tools parameter to btools
authorSimon Glass <sjg@chromium.org>
Sun, 6 Mar 2022 03:19:02 +0000 (20:19 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 19 Mar 2022 01:24:25 +0000 (19:24 -0600)
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>
tools/binman/entry.py
tools/binman/etype/fit.py
tools/binman/etype/gbb.py
tools/binman/etype/intel_ifwi.py
tools/binman/etype/mkimage.py
tools/binman/etype/section.py
tools/binman/etype/vblock.py

index da77236a8a794a1f7a442f399a8f17ece3134cc9..786c959911fb5c46cd961283eaf3c59c0316b2df 100644 (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
 
index c003b11314136b006e7235d48810044a4c6f9e70..1b93044d09def3e6e8df56ca094baca976e593b3 100644 (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')
index e32fae27ce64da1ea858db4edfe194782e911811..7394e4e5d3a186fff1af2ee0608f8f6f91431a99 100644 (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')
index 46bdf116e6a99d7209df40af90a8022f172be9b7..4fa7d636fe090441280de5833a90b1818eade98f 100644 (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')
index c28141ff69b9c4000f46da73558268d7a9fa03b7..9f4717e4eab9ed953e3834abc451e399e4fb1a87 100644 (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')
index 286842323d110aad92a76b1532cbd760c5427fd7..ac61d3de28a6aae17601fcd11b230b43e5af3499 100644 (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)
index a1de98290b4a96626d24cc786e5a71414db0d239..065b6ed2f648b08906efc304c32dd9570a34a32f 100644 (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')