From 950f20a404df4c270a3f587224f7bc2554c95d6b Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 17 Jan 2012 13:13:59 +0100 Subject: Add coreboot version to id area There was no good way to extract the build version from an image. This change will be mostly backward compatible: The only assumption that could break is that the board name string ends directly before the 3 dwords that represent .id's "header". Change-Id: I325491a0c42911d9d6ecd59e21ee1b756c987693 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/537 Reviewed-by: Peter Stuge Tested-by: build bot (Jenkins) --- src/arch/x86/lib/id.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/arch/x86/lib') diff --git a/src/arch/x86/lib/id.inc b/src/arch/x86/lib/id.inc index 443dbad38a..f8aba0b946 100644 --- a/src/arch/x86/lib/id.inc +++ b/src/arch/x86/lib/id.inc @@ -2,10 +2,13 @@ .globl __id_start __id_start: +ver: + .asciz COREBOOT_VERSION vendor: .asciz CONFIG_MAINBOARD_VENDOR part: .asciz CONFIG_MAINBOARD_PART_NUMBER +.long __id_end + CONFIG_ID_SECTION_OFFSET - ver /* Reverse offset to the vendor id */ .long __id_end + CONFIG_ID_SECTION_OFFSET - vendor /* Reverse offset to the vendor id */ .long __id_end + CONFIG_ID_SECTION_OFFSET - part /* Reverse offset to the part number */ .long CONFIG_ROM_SIZE /* Size of this romimage */ -- cgit v1.2.3