summaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-03-02 10:38:00 -0500
committerTom Rini <trini@konsulko.com>2022-03-02 10:38:00 -0500
commitf861ffa660dc47c4017c220b94d10a64439d46a7 (patch)
tree7ba56091d7713bf04e940afa9a2f8adcaeeb2a16 /tools/binman/control.py
parentf9a719e2954473f9be1f8c14a28288f943a00dd2 (diff)
parent642e51addf918e0dd1b901efaa9f5706c12365b7 (diff)
Merge branch '2022-03-02-enable-pylint-in-CI' into next
To quote the author: This series adds a new errors-only pylint check and adds it to the CI systems. It also fixes the current errors in the U-Boot Python code, disabling errors where it seems necessary. A small patch to buildman allows it to build sandbox without any changes to the default config file
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index a179f781298..c9d7a08bbc2 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -20,6 +20,10 @@ from binman import elf
from patman import command
from patman import tout
+# These are imported if needed since they import libfdt
+state = None
+Image = None
+
# List of images we plan to create
# Make this global so that it can be referenced from tests
images = OrderedDict()
@@ -41,6 +45,8 @@ def _ReadImageDesc(binman_node, use_expanded):
Returns:
OrderedDict of Image objects, each of which describes an image
"""
+ # For Image()
+ # pylint: disable=E1102
images = OrderedDict()
if 'multiple-images' in binman_node.props:
for node in binman_node.subnodes: