summaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-06-04 13:13:29 -0400
committerTom Rini <trini@konsulko.com>2017-06-04 13:13:29 -0400
commitdd31be21bf8117df054f9ad072784bfc4df9e76f (patch)
tree39e0aa6d3f51070940ca599d67cec3a65fa3eceb /tools/binman/control.py
parent5cafcbab580bac6c7f44ca4a164c422b7e1ecf20 (diff)
parent99ed4a2e979150879fb70aea71898709536375d3 (diff)
downloadu-boot-dd31be21bf8117df054f9ad072784bfc4df9e76f.tar.gz
Merge git://git.denx.de/u-boot-fdt
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index e90967807c..e9d48df030 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -12,7 +12,7 @@ import sys
import tools
import command
-import fdt_select
+import fdt
import fdt_util
from image import Image
import tout
@@ -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)