950f20a404
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 <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/537 Reviewed-by: Peter Stuge <peter@stuge.se> Tested-by: build bot (Jenkins)
18 lines
564 B
PHP
18 lines
564 B
PHP
.section ".id", "a", @progbits
|
|
|
|
.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 */
|
|
.globl __id_end
|
|
|
|
__id_end:
|
|
.previous
|