diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-04-15 16:43:04 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-04-21 15:12:08 +0000 |
commit | b3eb2e4f6e807ac22d98ba0f6b33452b72cbe109 (patch) | |
tree | 6ae8508e44e57f02dd050646dfbd04783e49d43b /src/drivers | |
parent | e345378354225981311304df2357fe7008fcd826 (diff) |
drivers/ipmi: Replace <build.h> with <version.h>
To use generated build.h one should have had a pre-requisite
in the Makefile. Reference coreboot_version from lib/version.c
instead.
Change-Id: I7f10acabf1838deb90fde8215a32718028096852
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74446
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/ipmi/supermicro_oem.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/drivers/ipmi/supermicro_oem.c b/src/drivers/ipmi/supermicro_oem.c index c63da5f020..fcf97f4254 100644 --- a/src/drivers/ipmi/supermicro_oem.c +++ b/src/drivers/ipmi/supermicro_oem.c @@ -5,7 +5,7 @@ #include <console/console.h> #include <drivers/ipmi/ipmi_if.h> #include <string.h> -#include <build.h> +#include <version.h> #include "ipmi_supermicro_oem.h" #define IPMI_NETFN_OEM 0x30 @@ -20,7 +20,6 @@ struct ipmi_oem_set_bios_str { static void set_coreboot_ver(const uint16_t kcs_port) { - const char *coreboot_ver = COREBOOT_VERSION; struct ipmi_oem_set_bios_str bios_ver; struct ipmi_rsp rsp; int ret; @@ -28,9 +27,9 @@ static void set_coreboot_ver(const uint16_t kcs_port) /* Only 8 characters are visible in UI. Cut of on first dash */ for (i = 0; i < 15; i++) { - if (coreboot_ver[i] == '-') + if (coreboot_version[i] == '-') break; - bios_ver.str[i] = coreboot_ver[i]; + bios_ver.str[i] = coreboot_version[i]; } bios_ver.str[i] = 0; bios_ver.ver = IPMI_LUN0_AC_SET_BIOS_VER; @@ -50,7 +49,7 @@ static void set_coreboot_date(const uint16_t kcs_port) struct ipmi_rsp rsp; int ret; - strncpy(bios_ver.str, COREBOOT_DMI_DATE, 15); + strncpy(bios_ver.str, coreboot_dmi_date, 15); bios_ver.str[15] = 0; bios_ver.ver = IPMI_LUN0_AC_SET_BIOS_DATE; |