lenovo: Remerge smbios_mainboard_bios_version.
Change-Id: I8df5b7f6707957b925f7bb4dc06a717252c70868 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/10275 Reviewed-by: Nicolas Reinecke <nr@das-labor.org> Tested-by: build bot (Jenkins)
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
#include <device/smbus.h>
|
||||
#include <smbios.h>
|
||||
#include <console/console.h>
|
||||
#include <version.h>
|
||||
#include "lenovo.h"
|
||||
|
||||
#define ERROR_STRING "*INVALID*"
|
||||
@ -198,3 +199,17 @@ const char *smbios_mainboard_version(void)
|
||||
already_read = 1;
|
||||
return result;
|
||||
}
|
||||
|
||||
const char *smbios_mainboard_bios_version(void)
|
||||
{
|
||||
static char *s = NULL;
|
||||
|
||||
/* Satisfy thinkpad_acpi. */
|
||||
if (strlen(CONFIG_LOCALVERSION))
|
||||
return "CBET4000 " CONFIG_LOCALVERSION;
|
||||
|
||||
if (s != NULL)
|
||||
return s;
|
||||
s = strconcat("CBET4000 ", coreboot_version);
|
||||
return s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user