u-boot/tools/dtoc
Heinrich Schuchardt d0d0e776cf tools: fix TestFdtUtil()
Variable old_outdir cannot be used before assignment.
The assignment must occur before the try block.

tools/dtoc/test_fdt.py:796:26:
E0601: Using variable 'old_outdir' before assignment
(used-before-assignment)

Add missing space in assignment.

Fixes: a004f29464 ("binman: Tidy up _SetupDtb() to use its own temporary file")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-05-04 09:57:43 +02:00
..
test dm: doc: Move to new driver model schema 2023-02-14 09:43:27 -07:00
__init__.py tools: Add init files for Python tools 2022-01-24 16:03:27 -05:00
.gitignore dm: Add a library to provide simple device-tree access 2016-07-14 20:40:24 -06:00
dtb_platdata.py dm: doc: Move to new driver model schema 2023-02-14 09:43:27 -07:00
dtoc dtoc: Rename the main module 2020-04-26 14:25:21 -06:00
fdt_util.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00
fdt.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00
main.py dtoc: Move the main code into a function 2023-03-08 11:40:49 -08:00
pyproject.toml dtoc: Add support for building a dtoc PyPi package 2023-03-08 11:40:49 -08:00
README.rst dtoc: Add support for building a dtoc PyPi package 2023-03-08 11:40:49 -08:00
setup.py dtoc: Add a setup script for Python 2020-08-22 08:53:38 -06:00
src_scan.py dtoc: Detect drivers which do not parse correctly 2021-07-21 10:27:34 -06:00
test_dtoc.py dtoc: Use pathlib to find the test directory 2023-03-08 11:40:49 -08:00
test_fdt dtoc: Add some tests for the fdt module 2018-07-09 09:11:00 -06:00
test_fdt.py tools: fix TestFdtUtil() 2023-05-04 09:57:43 +02:00
test_src_scan.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00

.. SPDX-License-Identifier: GPL-2.0+

Devicetree-to-C generator
=========================

This is a Python program and associated utilities, which supports converting
devicetree files into C code. It generates header files containing struct
definitions, as well as C files containing the data. It does not require any
modification of the devicetree files.

Some high-level libraries are provided for working with devicetree. These may
be useful in other projects.

This package also includes some U-Boot-specific features, such as creating
`struct udevice` and `struct uclass` entries for devicetree nodes.