u-boot/tools/dtoc
Simon Glass b00f0066e5 dtoc: Support tracking the phase of U-Boot
U-Boot operates in several phases, typically TPL, SPL and U-Boot proper.
The latter does not use dtoc.

In some rare cases different drivers are used for two phases. For example,
in TPL it may not be necessary to use the full PCI subsystem, so a simple
driver can be used instead.

This works in the build system simply by compiling in one driver or the
other (e.g. PCI driver + uclass for SPL; simple_bus for TPL). But dtoc has
no way of knowing which code is compiled in for which phase, since it does
not inspect Makefiles or dependency graphs.

So to make this work for dtoc, we need to be able to explicitly mark
drivers with their phase. This is done by adding an empty macro to the
driver. Add support for this in dtoc.

Signed-off-by: Simon Glass <sjg@chromium.org>
2021-03-22 19:23:27 +13:00
..
test dtoc: Rename sandbox_i2c_test and sandbox_pmic_test 2021-03-22 19:23:27 +13:00
.gitignore dm: Add a library to provide simple device-tree access 2016-07-14 20:40:24 -06:00
dtb_platdata.py dtoc: Support tracking the phase of U-Boot 2021-03-22 19:23:27 +13:00
dtoc dtoc: Rename the main module 2020-04-26 14:25:21 -06:00
fdt.py binman: Support alignment of files 2021-01-30 14:25:41 -07:00
fdt_util.py binman: Use target-specific tools when cross-compiling 2020-09-22 12:54:13 -06:00
main.py dtoc: Support tracking the phase of U-Boot 2021-03-22 19:23:27 +13:00
setup.py dtoc: Add a setup script for Python 2020-08-22 08:53:38 -06:00
src_scan.py dtoc: Support tracking the phase of U-Boot 2021-03-22 19:23:27 +13:00
test_dtoc.py dtoc: Support tracking the phase of U-Boot 2021-03-22 19:23:27 +13:00
test_fdt dtoc: Add some tests for the fdt module 2018-07-09 09:11:00 -06:00
test_fdt.py dtoc: Move test files into a test/ directory 2021-03-22 19:23:27 +13:00
test_src_scan.py dtoc: Support tracking the phase of U-Boot 2021-03-22 19:23:27 +13:00