diff options
| -rw-r--r-- | meta-oe/recipes-kernel/ipmitool/ipmitool/0001-hpmfwupg-move-variable-definition-to-.c-file.patch | 41 | ||||
| -rw-r--r-- | meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.18.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/ipmitool/ipmitool/0001-hpmfwupg-move-variable-definition-to-.c-file.patch b/meta-oe/recipes-kernel/ipmitool/ipmitool/0001-hpmfwupg-move-variable-definition-to-.c-file.patch new file mode 100644 index 0000000000..a765c3ab2f --- /dev/null +++ b/meta-oe/recipes-kernel/ipmitool/ipmitool/0001-hpmfwupg-move-variable-definition-to-.c-file.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 3f7bb7218181745ca7762c1b4832cbb1c9e692f5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Vaclav Dolezal <vdolezal@redhat.com> | ||
| 3 | Date: Thu, 23 Jan 2020 11:26:32 +0100 | ||
| 4 | Subject: [PATCH] hpmfwupg: move variable definition to .c file | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> | ||
| 8 | --- | ||
| 9 | include/ipmitool/ipmi_hpmfwupg.h | 2 +- | ||
| 10 | lib/ipmi_hpmfwupg.c | 2 ++ | ||
| 11 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/include/ipmitool/ipmi_hpmfwupg.h b/include/ipmitool/ipmi_hpmfwupg.h | ||
| 14 | index de65292..07f597b 100644 | ||
| 15 | --- a/include/ipmitool/ipmi_hpmfwupg.h | ||
| 16 | +++ b/include/ipmitool/ipmi_hpmfwupg.h | ||
| 17 | @@ -800,7 +800,7 @@ typedef struct _VERSIONINFO { | ||
| 18 | char descString[HPMFWUPG_DESC_STRING_LENGTH + 1]; | ||
| 19 | }VERSIONINFO, *PVERSIONINFO; | ||
| 20 | |||
| 21 | -VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; | ||
| 22 | +extern VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; | ||
| 23 | |||
| 24 | #define TARGET_VER (0x01) | ||
| 25 | #define ROLLBACK_VER (0x02) | ||
| 26 | diff --git a/lib/ipmi_hpmfwupg.c b/lib/ipmi_hpmfwupg.c | ||
| 27 | index bbcffc0..d7cdcd6 100644 | ||
| 28 | --- a/lib/ipmi_hpmfwupg.c | ||
| 29 | +++ b/lib/ipmi_hpmfwupg.c | ||
| 30 | @@ -58,6 +58,8 @@ ipmi_intf_get_max_request_data_size(struct ipmi_intf * intf); | ||
| 31 | |||
| 32 | extern int verbose; | ||
| 33 | |||
| 34 | +VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; | ||
| 35 | + | ||
| 36 | int HpmfwupgUpgrade(struct ipmi_intf *intf, char *imageFilename, | ||
| 37 | int activate, int, int); | ||
| 38 | int HpmfwupgValidateImageIntegrity(struct HpmfwupgUpgradeCtx *pFwupgCtx); | ||
| 39 | -- | ||
| 40 | 2.28.0 | ||
| 41 | |||
diff --git a/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.18.bb b/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.18.bb index 3de9a92a71..e3c74a5162 100644 --- a/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.18.bb +++ b/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.18.bb | |||
| @@ -30,6 +30,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/ipmitool/ipmitool-${PV}.tar.bz2 \ | |||
| 30 | file://0003-channel-Fix-buffer-overflow.patch \ | 30 | file://0003-channel-Fix-buffer-overflow.patch \ |
| 31 | file://0004-lanp-Fix-buffer-overflows-in-get_lan_param_select.patch \ | 31 | file://0004-lanp-Fix-buffer-overflows-in-get_lan_param_select.patch \ |
| 32 | file://0005-fru-sdr-Fix-id_string-buffer-overflows.patch \ | 32 | file://0005-fru-sdr-Fix-id_string-buffer-overflows.patch \ |
| 33 | file://0001-hpmfwupg-move-variable-definition-to-.c-file.patch \ | ||
| 33 | " | 34 | " |
| 34 | SRC_URI[md5sum] = "bab7ea104c7b85529c3ef65c54427aa3" | 35 | SRC_URI[md5sum] = "bab7ea104c7b85529c3ef65c54427aa3" |
| 35 | SRC_URI[sha256sum] = "0c1ba3b1555edefb7c32ae8cd6a3e04322056bc087918f07189eeedfc8b81e01" | 36 | SRC_URI[sha256sum] = "0c1ba3b1555edefb7c32ae8cd6a3e04322056bc087918f07189eeedfc8b81e01" |
