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>
Sat, 25 Jul 2020 20:46:57 +0000 (14:46 -0600)
commitfdc34368ddcd1d2eb46f9a1829f080f8c1760dee
treef3232e890b4e564e90d8d1140747bb906f8cff35
parentc06391790633e116c9dc6a63c1649b13d7adb34e
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]