diff options
author | Johnny Lin <johnny_lin@wiwynn.com> | 2020-05-28 14:04:58 +0800 |
---|---|---|
committer | Philipp Deppenwiese <zaolin.daisuki@gmail.com> | 2020-07-04 11:20:08 +0000 |
commit | b8899ef7e733bb6232a04990c1f55e098a2e37ae (patch) | |
tree | 4a366dd610e95a4c06a1e8b603b9e435a2bfa7ca /src/lib | |
parent | 542cffacbb69e83397579a59e88f93d422cb26a0 (diff) | |
download | coreboot-b8899ef7e733bb6232a04990c1f55e098a2e37ae.tar.xz |
lib/coreboot_table: Add Intel FSP version to coreboot table
Add a new LB_TAG_PLATFORM_BLOB_VERSION for FSP version, it would
add Intel FSP version to coreboot table LB_TAG_PLATFORM_BLOB_VERSION
when PLATFORM_USES_FSP2_0 is selected.
Tested=On OCP Delta Lake, with an updated LinuxBoot payload cbmem utility
can see "LB_TAG_PLATFORM_BLOB_VERSION": "2.1-0.0.1.120"
Change-Id: I92a13ca91b9f66a7517cfd6784f3f692ff34e765
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41809
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/coreboot_table.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index 12282fc84f..9148405879 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c @@ -30,6 +30,11 @@ #include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/gnvs.h> #endif +#if CONFIG(PLATFORM_USES_FSP2_0) +#include <fsp/util.h> +#else +void lb_string_platform_blob_version(struct lb_header *header); +#endif static struct lb_header *lb_table_init(unsigned long addr) { @@ -515,6 +520,8 @@ static uintptr_t write_coreboot_table(uintptr_t rom_table_end) /* Record our various random string information */ lb_strings(head); + if (CONFIG(PLATFORM_USES_FSP2_0)) + lb_string_platform_blob_version(head); lb_record_version_timestamp(head); /* Record our framebuffer */ lb_framebuffer(head); |