aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-27 07:38:29 -0600
committerSimon Glass <sjg@chromium.org>2017-06-02 10:18:20 -0600
commitec3f378a31602a2193ba8735323b71a4e63401da (patch)
tree1ae5dcebcde834980ddfb6eb203ad29dec7cb918 /tools/binman/control.py
parent7b75b4482ddee4ea8248f1f64f2b0d1c752dd273 (diff)
downloadu-boot-ec3f378a31602a2193ba8735323b71a4e63401da.zip
u-boot-ec3f378a31602a2193ba8735323b71a4e63401da.tar.gz
u-boot-ec3f378a31602a2193ba8735323b71a4e63401da.tar.bz2
binman: Rename fdt variable to dtb
Since fdt is the name of a module, use a different name for variables to avoid a conflict. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index e909678..42d75ef 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -40,15 +40,15 @@ def _ReadImageDesc(binman_node):
images['image'] = Image('image', binman_node)
return images
-def _FindBinmanNode(fdt):
+def _FindBinmanNode(dtb):
"""Find the 'binman' node in the device tree
Args:
- fdt: Fdt object to scan
+ dtb: Fdt object to scan
Returns:
Node object of /binman node, or None if not found
"""
- for node in fdt.GetRoot().subnodes:
+ for node in dtb.GetRoot().subnodes:
if node.name == 'binman':
return node
return None
@@ -92,8 +92,8 @@ def Binman(options, args):
try:
tools.SetInputDirs(options.indir)
tools.PrepareOutputDir(options.outdir, options.preserve)
- fdt = fdt_select.FdtScan(dtb_fname)
- node = _FindBinmanNode(fdt)
+ dtb = fdt.FdtScan(dtb_fname)
+ node = _FindBinmanNode(dtb)
if not node:
raise ValueError("Device tree '%s' does not have a 'binman' "
"node" % dtb_fname)