Export board-status info.
Rather than hunting version across compile tree in board_status,
export it by coreboot itself.
Change-Id: I7f055e6fc077134001ebdb11df7381bbdc71a1fc
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6747
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index 8d8d970..12090dc 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -298,6 +298,15 @@
}
+static void lb_record_version_timestamp(struct lb_header *header)
+{
+ struct lb_timestamp *rec;
+ rec = (struct lb_timestamp *)lb_new_record(header);
+ rec->tag = LB_TAG_VERSION_TIMESTAMP;
+ rec->size = sizeof(*rec);
+ rec->timestamp = coreboot_version_timestamp;
+}
+
void __attribute__((weak)) lb_board(struct lb_header *header) { /* NOOP */ }
static struct lb_forward *lb_forward(struct lb_header *header, struct lb_header *next_header)
@@ -409,6 +418,7 @@
/* Record our various random string information */
lb_strings(head);
+ lb_record_version_timestamp(head);
/* Record our framebuffer */
lb_framebuffer(head);
diff --git a/src/lib/version.c b/src/lib/version.c
index eb5bbb8..19c14c6 100644
--- a/src/lib/version.c
+++ b/src/lib/version.c
@@ -35,6 +35,7 @@
const char coreboot_version[] = COREBOOT_VERSION;
const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION;
const char coreboot_build[] = COREBOOT_BUILD;
+const unsigned int coreboot_version_timestamp = COREBOOT_VERSION_TIMESTAMP;
const char coreboot_compile_time[] = COREBOOT_COMPILE_TIME;
const char coreboot_compile_by[] = COREBOOT_COMPILE_BY;