[PATCH 18/20] binman: fit: Allow running fdtgrep on devicetree blobs

Simon Glass sjg at chromium.org
Mon Jul 29 18:19:19 CEST 2024


When using FIT to load firmware builds for multiple models, the FIT must
include a common binary along with a number of devicetree blobs, one for
each model. This is the same mechanism as is used for loading an OS.

However, SPL builds do not normally use the full devicetree, but instead
a cut-down version which various nodes and properties removed.

Add a new fit,fdt-phase property to allow binman to produce these
devicetree blobs.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 doc/develop/spl.rst                     |  2 +
 tools/binman/entries.rst                | 29 +++++++++++
 tools/binman/etype/fit.py               | 69 +++++++++++++++++++++++--
 tools/binman/ftest.py                   | 35 +++++++++++++
 tools/binman/main.py                    |  2 +
 tools/binman/test/335_fit_fdt_phase.dts | 61 ++++++++++++++++++++++
 6 files changed, 193 insertions(+), 5 deletions(-)
 create mode 100644 tools/binman/test/335_fit_fdt_phase.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list