diff options
-rw-r--r-- | meta-oe/recipes-bsp/ledmon/ledmon/0001-fix-build-with-clang.patch | 90 | ||||
-rw-r--r-- | meta-oe/recipes-bsp/ledmon/ledmon/0001-include-sys-select.h-and-sys-types.h.patch (renamed from meta-oe/recipes-bsp/ledmon/ledmon/0002-include-sys-select.h-and-sys-types.h.patch) | 27 | ||||
-rw-r--r-- | meta-oe/recipes-bsp/ledmon/ledmon_1.1.0.bb (renamed from meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb) | 9 |
3 files changed, 13 insertions, 113 deletions
diff --git a/meta-oe/recipes-bsp/ledmon/ledmon/0001-fix-build-with-clang.patch b/meta-oe/recipes-bsp/ledmon/ledmon/0001-fix-build-with-clang.patch deleted file mode 100644 index f1e1d6f780..0000000000 --- a/meta-oe/recipes-bsp/ledmon/ledmon/0001-fix-build-with-clang.patch +++ /dev/null | |||
@@ -1,90 +0,0 @@ | |||
1 | From 28fd86fb4e18af181174176530a80672de4449d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: alperak <alperyasinak1@gmail.com> | ||
3 | Date: Sat, 18 Nov 2023 12:27:17 +0300 | ||
4 | Subject: [PATCH] fix build with clang | ||
5 | |||
6 | struct ibpi2value is a structure which contains 2 unsigned integers. In | ||
7 | a number of cases the code was not initializing a value for the last value | ||
8 | in the pair in struct ibpi2value ibpi_to_attention. This was raised when | ||
9 | using clang compiler. | ||
10 | |||
11 | vmdssd.c:49:27: error: missing field 'value' initializer | ||
12 | [-Werror,-Wmissing-field-initializers] | ||
13 | {LED_IBPI_PATTERN_UNKNOWN} | ||
14 | |||
15 | dellssd.c:74:27: error: missing field 'value' initializer | ||
16 | [-Werror,-Wmissing-field-initializers] | ||
17 | {LED_IBPI_PATTERN_UNKNOWN} | ||
18 | |||
19 | amd_ipmi.c:57:27: error: missing field 'value' | ||
20 | initializer [-Werror,-Wmissing-field-initializers] | ||
21 | {LED_IBPI_PATTERN_UNKNOWN} | ||
22 | |||
23 | npem.c:76:27: error: missing field 'value' | ||
24 | initializer [-Werror,-Wmissing-field-initializers] | ||
25 | {LED_IBPI_PATTERN_UNKNOWN} | ||
26 | |||
27 | Upstream-Status: Submitted [https://github.com/intel/ledmon/pull/179] | ||
28 | Signed-off-by: alperak <alperyasinak1@gmail.com> | ||
29 | --- | ||
30 | src/amd_ipmi.c | 2 +- | ||
31 | src/dellssd.c | 2 +- | ||
32 | src/npem.c | 2 +- | ||
33 | src/vmdssd.c | 2 +- | ||
34 | 4 files changed, 4 insertions(+), 4 deletions(-) | ||
35 | |||
36 | diff --git a/src/amd_ipmi.c b/src/amd_ipmi.c | ||
37 | index 726f77d..ad36e9e 100644 | ||
38 | --- a/src/amd_ipmi.c | ||
39 | +++ b/src/amd_ipmi.c | ||
40 | @@ -53,7 +53,7 @@ const struct ibpi2value ibpi2amd_ipmi[] = { | ||
41 | {IBPI_PATTERN_FAILED_ARRAY, 0x45}, | ||
42 | {IBPI_PATTERN_REBUILD, 0x46}, | ||
43 | {IBPI_PATTERN_HOTSPARE, 0x47}, | ||
44 | - {IBPI_PATTERN_UNKNOWN} | ||
45 | + {IBPI_PATTERN_UNKNOWN, 0} | ||
46 | }; | ||
47 | |||
48 | #define MG9098_CHIP_ID_REG 0x63 | ||
49 | diff --git a/src/dellssd.c b/src/dellssd.c | ||
50 | index 3c10ec7..7f02ea1 100644 | ||
51 | --- a/src/dellssd.c | ||
52 | +++ b/src/dellssd.c | ||
53 | @@ -71,7 +71,7 @@ static const struct ibpi2value ibpi2ssd[] = { | ||
54 | {IBPI_PATTERN_FAILED_DRIVE, BP_FAULT | BP_ONLINE}, | ||
55 | {IBPI_PATTERN_LOCATE, BP_IDENTIFY | BP_ONLINE}, | ||
56 | {IBPI_PATTERN_LOCATE_OFF, BP_ONLINE}, | ||
57 | - {IBPI_PATTERN_UNKNOWN} | ||
58 | + {IBPI_PATTERN_UNKNOWN, 0} | ||
59 | }; | ||
60 | |||
61 | #define DELL_OEM_NETFN 0x30 | ||
62 | diff --git a/src/npem.c b/src/npem.c | ||
63 | index c21276d..3499169 100644 | ||
64 | --- a/src/npem.c | ||
65 | +++ b/src/npem.c | ||
66 | @@ -72,7 +72,7 @@ const struct ibpi2value ibpi_to_npem_capability[] = { | ||
67 | {IBPI_PATTERN_FAILED_DRIVE, PCI_NPEM_FAIL_CAP}, | ||
68 | {IBPI_PATTERN_LOCATE, PCI_NPEM_LOCATE_CAP}, | ||
69 | {IBPI_PATTERN_LOCATE_OFF, PCI_NPEM_OK_CAP}, | ||
70 | - {IBPI_PATTERN_UNKNOWN} | ||
71 | + {IBPI_PATTERN_UNKNOWN, 0} | ||
72 | }; | ||
73 | |||
74 | static struct pci_access *get_pci_access() | ||
75 | diff --git a/src/vmdssd.c b/src/vmdssd.c | ||
76 | index 51af591..9c63d90 100644 | ||
77 | --- a/src/vmdssd.c | ||
78 | +++ b/src/vmdssd.c | ||
79 | @@ -45,7 +45,7 @@ struct ibpi2value ibpi_to_attention[] = { | ||
80 | {IBPI_PATTERN_REBUILD, ATTENTION_REBUILD}, | ||
81 | {IBPI_PATTERN_LOCATE_OFF, ATTENTION_OFF}, | ||
82 | {IBPI_PATTERN_ONESHOT_NORMAL, ATTENTION_OFF}, | ||
83 | - {IBPI_PATTERN_UNKNOWN} | ||
84 | + {IBPI_PATTERN_UNKNOWN, 0} | ||
85 | }; | ||
86 | |||
87 | #define SYSFS_PCIEHP "/sys/module/pciehp" | ||
88 | -- | ||
89 | 2.25.1 | ||
90 | |||
diff --git a/meta-oe/recipes-bsp/ledmon/ledmon/0002-include-sys-select.h-and-sys-types.h.patch b/meta-oe/recipes-bsp/ledmon/ledmon/0001-include-sys-select.h-and-sys-types.h.patch index 75bf2b4f5e..833f38a042 100644 --- a/meta-oe/recipes-bsp/ledmon/ledmon/0002-include-sys-select.h-and-sys-types.h.patch +++ b/meta-oe/recipes-bsp/ledmon/ledmon/0001-include-sys-select.h-and-sys-types.h.patch | |||
@@ -9,16 +9,19 @@ sys/types.h is needed for ssize_t | |||
9 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
10 | 10 | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | |||
13 | Adapted to latest release - sys/types.h is already included in the project. | ||
14 | |||
15 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
12 | --- | 16 | --- |
13 | src/dellssd.c | 1 + | 17 | src/dellssd.c | 1 + |
14 | src/utils.h | 1 + | 18 | 1 file changed, 1 insertion(+) |
15 | 2 files changed, 2 insertions(+) | ||
16 | 19 | ||
17 | diff --git a/src/dellssd.c b/src/dellssd.c | 20 | diff --git a/src/lib/dellssd.c b/src/lib/dellssd.c |
18 | index 7b8d431..e97fe45 100644 | 21 | index 7b8d431..e97fe45 100644 |
19 | --- a/src/dellssd.c | 22 | --- a/src/lib/dellssd.c |
20 | +++ b/src/dellssd.c | 23 | +++ b/src/lib/dellssd.c |
21 | @@ -27,6 +27,7 @@ | 24 | @@ -13,6 +13,7 @@ |
22 | #include <unistd.h> | 25 | #include <unistd.h> |
23 | 26 | ||
24 | #include <sys/ioctl.h> | 27 | #include <sys/ioctl.h> |
@@ -26,18 +29,6 @@ index 7b8d431..e97fe45 100644 | |||
26 | #include <linux/ipmi.h> | 29 | #include <linux/ipmi.h> |
27 | 30 | ||
28 | #if _HAVE_DMALLOC_H | 31 | #if _HAVE_DMALLOC_H |
29 | diff --git a/src/utils.h b/src/utils.h | ||
30 | index 720447a..c106529 100644 | ||
31 | --- a/src/utils.h | ||
32 | +++ b/src/utils.h | ||
33 | @@ -21,6 +21,7 @@ | ||
34 | #define _UTILS_H_INCLUDED_ | ||
35 | |||
36 | #include <getopt.h> | ||
37 | +#include <sys/types.h> | ||
38 | #include "config_file.h" | ||
39 | #include "stdlib.h" | ||
40 | #include "stdint.h" | ||
41 | -- | 32 | -- |
42 | 2.21.0 | 33 | 2.21.0 |
43 | 34 | ||
diff --git a/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb b/meta-oe/recipes-bsp/ledmon/ledmon_1.1.0.bb index ff3b29406b..25f638be5d 100644 --- a/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb +++ b/meta-oe/recipes-bsp/ledmon/ledmon_1.1.0.bb | |||
@@ -8,17 +8,16 @@ HOMEPAGE = "https://github.com/intel/ledmon" | |||
8 | LICENSE = "LGPL-2.0-only" | 8 | LICENSE = "LGPL-2.0-only" |
9 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | 9 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" |
10 | 10 | ||
11 | DEPENDS = "sg3-utils udev pciutils" | 11 | DEPENDS = "autoconf-archive-native sg3-utils udev pciutils" |
12 | 12 | ||
13 | inherit autotools systemd pkgconfig | 13 | inherit autotools systemd pkgconfig |
14 | 14 | ||
15 | SYSTEMD_SERVICE:${PN} = "ledmon.service" | 15 | SYSTEMD_SERVICE:${PN} = "ledmon.service" |
16 | 16 | ||
17 | SRC_URI = "git://github.com/intel/ledmon;branch=master;protocol=https \ | 17 | SRC_URI = "git://github.com/intel/ledmon;branch=master;protocol=https;tag=v${PV} \ |
18 | file://0002-include-sys-select.h-and-sys-types.h.patch \ | 18 | file://0001-include-sys-select.h-and-sys-types.h.patch" |
19 | file://0001-fix-build-with-clang.patch" | ||
20 | 19 | ||
21 | SRCREV = "b0edae14e8660b80ffe0384354038a9f62e2978d" | 20 | SRCREV = "f70201d255b667de00f15880e99732699df6dce0" |
22 | 21 | ||
23 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | 22 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" |
24 | COMPATIBLE_HOST:libc-musl = "null" | 23 | COMPATIBLE_HOST:libc-musl = "null" |