mb/ocp/monolake: Override SMBIOS UUID with the value sent by BMC

Tested on OCP Mono Lake with dmidecode -t 1 and the expected
UUID is visible.

Change-Id: I0aab4df67b7aaba8be6ddbb13984fffb2b14fe6b
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37086
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
This commit is contained in:
Johnny Lin 2019-11-14 15:08:09 +08:00 committed by Patrick Georgi
parent 5566303362
commit c3a8d63788
1 changed files with 6 additions and 0 deletions

View File

@ -95,3 +95,9 @@ void smbios_fill_dimm_locator(const struct dimm_info *dimm, struct smbios_type17
dimm->dimm_num); dimm->dimm_num);
t->bank_locator = smbios_add_string(t->eos, locator); t->bank_locator = smbios_add_string(t->eos, locator);
} }
/* Override SMBIOS uuid from the value from BMC. */
void smbios_system_set_uuid(u8 *uuid)
{
ipmi_get_system_guid(BMC_KCS_BASE, uuid);
}