diff options
Diffstat (limited to 'src/mainboard/lenovo/x220/mainboard.c')
-rw-r--r-- | src/mainboard/lenovo/x220/mainboard.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mainboard/lenovo/x220/mainboard.c b/src/mainboard/lenovo/x220/mainboard.c index 2fdc204e4e..87c6c90743 100644 --- a/src/mainboard/lenovo/x220/mainboard.c +++ b/src/mainboard/lenovo/x220/mainboard.c @@ -32,7 +32,7 @@ #include <device/pci.h> #include <pc80/keyboard.h> #include <ec/lenovo/h8/h8.h> -#include <build.h> +#include <version.h> void mainboard_suspend_resume(void) { @@ -42,11 +42,16 @@ void mainboard_suspend_resume(void) const char *smbios_mainboard_bios_version(void) { + static char *s = NULL; + /* Satisfy thinkpad_acpi. */ if (strlen(CONFIG_LOCALVERSION)) return "CBET4000 " CONFIG_LOCALVERSION; - else - return "CBET4000 " COREBOOT_VERSION; + + if (s != NULL) + return s; + s = strconcat("CBET4000 ", coreboot_version); + return s; } static void mainboard_init(device_t dev) |