]> git.sur5r.net Git - u-boot/blob - tools/dtoc/fdt_select.py
binman: Rename fdt variable to dtb
[u-boot] / tools / dtoc / fdt_select.py
1 #!/usr/bin/python
2 #
3 # Copyright (C) 2016 Google, Inc
4 # Written by Simon Glass <sjg@chromium.org>
5 #
6 # SPDX-License-Identifier:      GPL-2.0+
7 #
8
9 # Bring in the normal fdt library (which relies on libfdt)
10 import fdt
11
12 def FdtScan(fname):
13     """Returns a new Fdt object from the implementation we are using"""
14     dtb = fdt.Fdt(fname)
15     dtb.Scan()
16     return dtb