[PATCH v3 22/49] binman: Add support for generating a FIT
Simon Glass
sjg at chromium.org
Sun Jul 19 22:49:08 CEST 2020
FIT (Flat Image Tree) is the main image format used by U-Boot. In some
cases scripts are used to create FITs within the U-Boot build system. This
is not ideal for various reasons:
- Each architecture has its own slightly different script
- There are no tests
- Some are written in shell, some in Python
To help address this, add support for FIT generation to binman. This works
by putting the FIT source directly in the binman definition, with the
ability to adjust parameters, etc. The contents of each FIT image come
from sub-entries of the image, as is normal with binman.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
tools/binman/README.entries | 40 ++++++
tools/binman/etype/fit.py | 164 +++++++++++++++++++++++++
tools/binman/ftest.py | 54 ++++++++
tools/binman/test/161_fit.dts | 62 ++++++++++
tools/binman/test/162_fit_external.dts | 64 ++++++++++
5 files changed, 384 insertions(+)
create mode 100644 tools/binman/etype/fit.py
create mode 100644 tools/binman/test/161_fit.dts
create mode 100644 tools/binman/test/162_fit_external.dts
Applied to u-boot-dm
More information about the U-Boot
mailing list