coreboot-kgpe-d16/payloads
Julius Werner f975e55dcd cbfs: Add "struct" file type and associated helpers
This patch adds functionality to compile a C data structure into a raw
binary file, add it to CBFS and allow coreboot to load it at runtime.
This is useful in all cases where we need to be able to have several
larger data sets available in an image, but will only require a small
subset of them at boot (a classic example would be DRAM parameters) or
only require it in certain boot modes. This allows us to load less data
from flash and increase boot speed compared to solutions that compile
all data sets into a stage.

Each structure has to be defined in a separate .c file which contains no
functions and only a single global variable. The data type must be
serialization safe (composed of only fixed-width types, paying attention
to padding). It must be added to CBFS in a Makefile with the 'struct'
file processor.

Change-Id: Iab65c0b6ebea235089f741eaa8098743e54d6ccc
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/16272
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-08-27 01:16:22 +02:00
..
bayou bayou: delete pbuilder utility 2016-07-30 19:34:36 +02:00
coreinfo payloads/coreinfo: Set KCONFIG_CONFIG value 2016-08-03 18:12:06 +02:00
external Use VBOOT_SOURCE instead of hardcoding vboot path 2016-08-08 12:17:00 +02:00
libpayload cbfs: Add "struct" file type and associated helpers 2016-08-27 01:16:22 +02:00
nvramcui nvramcui: refactor code 2016-08-23 15:39:15 +02:00
Kconfig payloads: add Kconfig option for bayou 2016-08-09 10:44:44 +02:00
Makefile.inc tint: Fix tint and add Kconfig option 2016-06-28 18:29:48 +02:00