blob: 64f7a799b0af337b1c8fcc0ed722fcd1d010d8ec [file] [log] [blame]
Patrick Georgi11f00792020-03-04 15:10:45 +01001/* SPDX-License-Identifier: GPL-2.0-only */
Martin Roth9df9e9392016-01-12 15:55:28 -07002
Aaron Durbin3953e392015-09-03 00:41:29 -05003#include <build.h>
4
Kyösti Mälkkib19d9512020-04-23 18:45:28 +03005.section ".id", "a", @progbits
Eric Biederman8ca8d762003-04-22 19:02:15 +00006
Patrick Georgi950f20a2012-01-17 13:13:59 +01007ver:
8 .asciz COREBOOT_VERSION
Stefan Reinauer14e22772010-04-27 06:56:47 +00009vendor:
Stefan Reinauer08670622009-06-30 15:17:49 +000010 .asciz CONFIG_MAINBOARD_VENDOR
Stefan Reinauer14e22772010-04-27 06:56:47 +000011part:
Stefan Reinauer08670622009-06-30 15:17:49 +000012 .asciz CONFIG_MAINBOARD_PART_NUMBER
Eric Biederman8ca8d762003-04-22 19:02:15 +000013
Angel Ponsc063b5d2022-02-14 11:51:04 +010014#if ENV_X86_64 || defined(__clang__)
Elyes HAOUASf26b2e52021-02-09 14:27:09 +010015.long 0xffffffff - ver + 1 /* Reverse offset to the version */
Kyösti Mälkkib19d9512020-04-23 18:45:28 +030016.long 0xffffffff - vendor + 1 /* Reverse offset to the vendor id */
17.long 0xffffffff - part + 1 /* Reverse offset to the part number */
Angel Pons17fbf582022-02-14 11:50:01 +010018#else
19.long - ver /* Reverse offset to the version */
20.long - vendor /* Reverse offset to the vendor id */
21.long - part /* Reverse offset to the part number */
22#endif
Kyösti Mälkkib19d9512020-04-23 18:45:28 +030023
24.long CONFIG_ROM_SIZE /* Size of this romimage */