util/cbfstool: Support FIT payloads
commit7ee05eddf184764de8aa1e015936a42d069893f2
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Thu, 26 Apr 2018 07:35:13 +0000 (26 09:35 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 15 Jun 2018 09:13:24 +0000 (15 09:13 +0000)
treebab7d92178e35e35b4f60f496243b0f58099beab
parent31ff06a2da7380ecfe56365992d013b8ad0f7760
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
commit.
Compression of FIT payloads is not supported, as the FIT sections might be
compressed itself.

Starting at this point a CBFS payload/ can be either of type FIT or SELF.

Tested on Cavium SoC.

Change-Id: Ic5fc30cd5419eb76c4eb50cca3449caea60270de
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/25860
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
payloads/coreinfo/cbfs_module.c
payloads/libpayload/include/cbfs_core.h
src/commonlib/include/commonlib/cbfs_serialized.h
util/cbfstool/cbfs-mkpayload.c
util/cbfstool/cbfs.h
util/cbfstool/cbfstool.c
util/cbfstool/common.h
util/cbfstool/fdt.h [new file with mode: 0644]
util/nvramtool/cbfs.h