blob: 7b147cdfe4ea8f35dd343eead6e1bc96a0d4090d [file] [log] [blame]
Aaron Durbin15d2a792016-11-08 10:04:04 -06001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2016 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <boardid.h>
17#include <smbios.h>
18#include <string.h>
19
20const char *smbios_mainboard_version(void)
21{
22 static char str[8];
23
24 snprintf(str, sizeof(str), "rev%d", board_id());
25
26 return str;
27}