util/cbfstool: Support FIT payloads
In order to support booting a GNU/Linux payload on non x86, the FIT format
should be used, as it is the defacto standard on ARM.
Due to greater complexity of FIT it is not converted to simple ELF format.
Add support for autodecting FIT payloads and add them as new CBFS_TYPE 'fit'.
The payload is included as is, with no special header.
The code can determine the type at runtime using the CBFS_TYPE field.
Support for parsing FIT payloads in coreboot is added in a follow on
Compression of FIT payloads is not supported, as the FIT sections might be
Starting at this point a CBFS payload/ can be either of type FIT or SELF.
Tested on Cavium SoC.
Signed-off-by: Patrick Rudolph <email@example.com>
Tested-by: build bot (Jenkins) <firstname.lastname@example.org>
Reviewed-by: Julius Werner <email@example.com>
9 files changed