lib: Add FIT payload support

Hardware / Coreboot - Patrick Rudolph [9elements.com] - 19 June 2018 18:10 EDT

- Add support for parsing and booting FIT payloads.
- Build fit loader code from depthcharge.
- Fix coding style.
- Add Kconfig option to add compiletime support for FIT.
- Add support for initrd.
- Add default compat strings
- Apply optional devicetree fixups using dt_apply_fixups

Starting at this point the CBFS payload/ can be either SELF or FIT.

Tested on Cavium SoC: Parses and loads a Linux kernel 4.16.3. Tested on Cavium SoC: Parses and loads a Linux kernel 4.15.0. Tested on Cavium SoC: Parses and loads a Linux kernel 4.1.52.

Change-Id: I0f27b92a5e074966f893399eb401eb97d784850d

a892cde653 lib: Add FIT payload support
payloads/Kconfig | 26 ++-
src/arch/arm64/Makefile.inc | 1 +
src/arch/arm64/fit_payload.c | 262 ++++++++++++++++++++++
src/include/fit.h | 95 ++++----
src/include/fit_payload.h | 26 +++
src/lib/Makefile.inc | 2 +
src/lib/fit.c | 503 ++++++++++++++++++++++++-------------------
src/lib/fit_payload.c | 181 ++++++++++++++++
src/lib/prog_loaders.c | 15 +-
9 files changed, 845 insertions(+), 266 deletions(-)

Upstream: review.coreboot.org


  • Share