diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-03 06:01:02 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-22 19:23:27 +1300 |
commit | b00f0066e52413e0f8fd4a84681e6e27c4270c26 (patch) | |
tree | de41f3fc135501b607ad5790b03dc27c63e32e5d /include/bootretry.h | |
parent | b9319c4f9b103b6c5b10e8592471a29bd9645caf (diff) | |
download | u-boot-b00f0066e52413e0f8fd4a84681e6e27c4270c26.tar.gz u-boot-b00f0066e52413e0f8fd4a84681e6e27c4270c26.tar.bz2 u-boot-b00f0066e52413e0f8fd4a84681e6e27c4270c26.zip |
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>
Diffstat (limited to 'include/bootretry.h')
0 files changed, 0 insertions, 0 deletions