diff options
Diffstat (limited to 'meta-networking/recipes-support/mctp')
-rw-r--r-- | meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch | 38 | ||||
-rw-r--r-- | meta-networking/recipes-support/mctp/mctp_2.1.bb (renamed from meta-networking/recipes-support/mctp/mctp_1.1.bb) | 10 |
2 files changed, 45 insertions, 3 deletions
diff --git a/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch b/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch new file mode 100644 index 0000000000..4ff9b09299 --- /dev/null +++ b/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 166b2251a156a03a80318533440178ac0b913945 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 17 Feb 2025 21:29:41 -0800 | ||
4 | Subject: [PATCH] mctp-bench: Adjust headers | ||
5 | |||
6 | bits/time.h is not be included directly, instead use time.h | ||
7 | since poll.h is included there is no need to include sys/poll.h | ||
8 | |||
9 | Fixes | ||
10 | ../git/src/mctp-bench.c:2:10: fatal error: 'bits/time.h' file not found | ||
11 | 2 | #include <bits/time.h> | ||
12 | | ^~~~~~~~~~~~~ | ||
13 | |||
14 | Upstream-Status: Submitted [https://github.com/CodeConstruct/mctp/pull/65] | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | --- | ||
17 | src/mctp-bench.c | 3 +-- | ||
18 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/src/mctp-bench.c b/src/mctp-bench.c | ||
21 | index eeb6fcf..60b3bb0 100644 | ||
22 | --- a/src/mctp-bench.c | ||
23 | +++ b/src/mctp-bench.c | ||
24 | @@ -1,5 +1,5 @@ | ||
25 | #define _XOPEN_SOURCE 700 | ||
26 | -#include <bits/time.h> | ||
27 | +#include <time.h> | ||
28 | #include <err.h> | ||
29 | #include <errno.h> | ||
30 | #include <poll.h> | ||
31 | @@ -9,7 +9,6 @@ | ||
32 | #include <stdlib.h> | ||
33 | #include <string.h> | ||
34 | #include <sys/ioctl.h> | ||
35 | -#include <sys/poll.h> | ||
36 | #include <sys/socket.h> | ||
37 | #include <time.h> | ||
38 | #include <unistd.h> | ||
diff --git a/meta-networking/recipes-support/mctp/mctp_1.1.bb b/meta-networking/recipes-support/mctp/mctp_2.1.bb index bf3961be42..04fecf7aca 100644 --- a/meta-networking/recipes-support/mctp/mctp_1.1.bb +++ b/meta-networking/recipes-support/mctp/mctp_2.1.bb | |||
@@ -5,14 +5,18 @@ LICENSE = "GPL-2.0-only" | |||
5 | 5 | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" |
7 | 7 | ||
8 | SRCREV = "a591ad885aa28f113cb45870b2fd5bce48378d6f" | 8 | SRCREV = "dd944cf5b5a8b834f3685bcb2017190258dbcd0b" |
9 | 9 | ||
10 | SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https" | 10 | SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https \ |
11 | file://0001-mctp-bench-Adjust-headers.patch" | ||
11 | 12 | ||
12 | S = "${WORKDIR}/git" | ||
13 | 13 | ||
14 | inherit meson pkgconfig systemd | 14 | inherit meson pkgconfig systemd |
15 | 15 | ||
16 | EXTRA_OEMESON = " \ | ||
17 | -Dtests=false \ | ||
18 | " | ||
19 | |||
16 | PACKAGECONFIG ??= " \ | 20 | PACKAGECONFIG ??= " \ |
17 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | 21 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
18 | " | 22 | " |