binman: Add support for generating a FIT
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:39:45 +0000 (18:39 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 20 Jul 2020 17:37:47 +0000 (11:37 -0600)
commit3b9a87321cf5f40ad4c8dac535f94b0cbde19ce2
tree7a7a659dfd0329bf9b55bf95e0d5877bf319a1a2
parent1f238bd5bdc35d996751ed4b8faf8b4c4e69f68d
binman: Add support for generating a FIT

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@chromium.org>
tools/binman/README.entries
tools/binman/etype/fit.py [new file with mode: 0644]
tools/binman/ftest.py
tools/binman/test/161_fit.dts [new file with mode: 0644]
tools/binman/test/162_fit_external.dts [new file with mode: 0644]