From b8899ef7e733bb6232a04990c1f55e098a2e37ae Mon Sep 17 00:00:00 2001 From: Johnny Lin Date: Thu, 28 May 2020 14:04:58 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41809 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Christian Walter Reviewed-by: Philipp Deppenwiese --- src/lib/coreboot_table.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib') 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 #include #endif +#if CONFIG(PLATFORM_USES_FSP2_0) +#include +#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); -- cgit v1.2.3