coreboot-kgpe-d16/src/commonlib
Patrick Rudolph 7ee05eddf1 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>
2018-06-15 09:13:24 +00:00
..
include/commonlib util/cbfstool: Support FIT payloads 2018-06-15 09:13:24 +00:00
storage src/commonlib/storage: Move include <console.h> to sd_mmc.h 2018-06-04 02:40:08 +00:00
cbfs.c commonlib/cbfs: Make cbfsf_file_type public 2018-05-16 21:29:56 +00:00
fsp_relocate.c Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
iobuf.c commonlib: add input and output buffer helpers 2017-04-24 19:06:50 +02:00
lz4.c.inc cbfs: Add LZ4 in-place decompression support for pre-RAM stages 2016-02-22 21:38:37 +01:00
lz4_wrapper.c Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
Makefile.inc Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
mem_pool.c commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00
region.c commonlib/region: expose subregion helper function 2017-12-15 23:35:05 +00:00