diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-06-08 19:36:58 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-06-14 09:01:12 -0700 |
commit | 3823bca52e36c64cfd974335d06e6f963d85b5de (patch) | |
tree | 07727d676380bfb5679765f77a599d4945f47812 /meta-networking/recipes-support/rdma-core | |
parent | 7ad706c61acae1ddd77c53f1708b0ea9b41fb4dd (diff) | |
download | meta-openembedded-3823bca52e36c64cfd974335d06e6f963d85b5de.tar.gz |
rdma-core: Update to version 18
Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/rdma-core')
-rw-r--r-- | meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch | 103 | ||||
-rw-r--r-- | meta-networking/recipes-support/rdma-core/rdma-core/0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch | 29 | ||||
-rw-r--r-- | meta-networking/recipes-support/rdma-core/rdma-core/0001-include-endian.h-for-htole32-and-friends.patch | 25 | ||||
-rw-r--r-- | meta-networking/recipes-support/rdma-core/rdma-core/0002-Remove-unused-include-for-execinfo.h.patch | 27 | ||||
-rw-r--r-- | meta-networking/recipes-support/rdma-core/rdma-core/0002-neigh.c-Do-not-include-net-if_packet.h.patch | 26 | ||||
-rw-r--r-- | meta-networking/recipes-support/rdma-core/rdma-core_18.1.bb (renamed from meta-networking/recipes-support/rdma-core/rdma-core_17.bb) | 10 |
6 files changed, 218 insertions, 2 deletions
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch new file mode 100644 index 000000000..4b595613f --- /dev/null +++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch | |||
@@ -0,0 +1,103 @@ | |||
1 | From 5a8a2f81ef8650f06d1d9d268add612ab46025f1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 12 Jun 2018 22:57:04 -0700 | ||
4 | Subject: [PATCH] Remove man files which cant be built | ||
5 | |||
6 | Remove need for pandoc-prebuilt during cross build | ||
7 | |||
8 | Fixes errors | ||
9 | |||
10 | | CMake Error at libibumad/man/cmake_install.cmake:105 (file): | ||
11 | | file INSTALL cannot find | ||
12 | | "/mnt/a/oe/build/tmp/work/core2-64-bec-linux-musl/rdma-core/18.1-r0/git/buildlib/pandoc-prebuilt/41bbb0bed7a781be59e8c0dcd8b7278af2ce6882". | ||
13 | | Call Stack (most recent call first): | ||
14 | | cmake_install.cmake:48 (include) | ||
15 | |||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | libibumad/man/CMakeLists.txt | 1 - | ||
19 | libibverbs/man/CMakeLists.txt | 15 --------------- | ||
20 | providers/mlx5/man/CMakeLists.txt | 1 - | ||
21 | 3 files changed, 17 deletions(-) | ||
22 | |||
23 | diff --git a/libibumad/man/CMakeLists.txt b/libibumad/man/CMakeLists.txt | ||
24 | index 185584a0..ac45a4e9 100644 | ||
25 | --- a/libibumad/man/CMakeLists.txt | ||
26 | +++ b/libibumad/man/CMakeLists.txt | ||
27 | @@ -15,7 +15,6 @@ rdma_man_pages( | ||
28 | umad_get_mad_addr.3 | ||
29 | umad_get_pkey.3 | ||
30 | umad_get_port.3 | ||
31 | - umad_init.3.md | ||
32 | umad_open_port.3 | ||
33 | umad_poll.3 | ||
34 | umad_recv.3 | ||
35 | diff --git a/libibverbs/man/CMakeLists.txt b/libibverbs/man/CMakeLists.txt | ||
36 | index 86dd49de..b54675be 100644 | ||
37 | --- a/libibverbs/man/CMakeLists.txt | ||
38 | +++ b/libibverbs/man/CMakeLists.txt | ||
39 | @@ -5,7 +5,6 @@ rdma_man_pages( | ||
40 | ibv_alloc_pd.3 | ||
41 | ibv_alloc_td.3 | ||
42 | ibv_asyncwatch.1 | ||
43 | - ibv_attach_mcast.3.md | ||
44 | ibv_bind_mw.3 | ||
45 | ibv_create_ah.3 | ||
46 | ibv_create_ah_from_wc.3 | ||
47 | @@ -14,7 +13,6 @@ rdma_man_pages( | ||
48 | ibv_create_cq_ex.3 | ||
49 | ibv_modify_cq.3 | ||
50 | ibv_create_flow.3 | ||
51 | - ibv_create_flow_action.3.md | ||
52 | ibv_create_qp.3 | ||
53 | ibv_create_qp_ex.3 | ||
54 | ibv_create_rwq_ind_table.3 | ||
55 | @@ -23,15 +21,9 @@ rdma_man_pages( | ||
56 | ibv_create_wq.3 | ||
57 | ibv_devices.1 | ||
58 | ibv_devinfo.1 | ||
59 | - ibv_event_type_str.3.md | ||
60 | - ibv_fork_init.3.md | ||
61 | ibv_get_async_event.3 | ||
62 | ibv_get_cq_event.3 | ||
63 | - ibv_get_device_guid.3.md | ||
64 | ibv_get_device_list.3 | ||
65 | - ibv_get_device_name.3.md | ||
66 | - ibv_get_srq_num.3.md | ||
67 | - ibv_inc_rkey.3.md | ||
68 | ibv_modify_qp.3 | ||
69 | ibv_modify_qp_rate_limit.3 | ||
70 | ibv_modify_srq.3 | ||
71 | @@ -46,19 +38,12 @@ rdma_man_pages( | ||
72 | ibv_post_srq_recv.3 | ||
73 | ibv_query_device.3 | ||
74 | ibv_query_device_ex.3 | ||
75 | - ibv_query_gid.3.md | ||
76 | - ibv_query_pkey.3.md | ||
77 | ibv_query_port.3 | ||
78 | ibv_query_qp.3 | ||
79 | ibv_query_rt_values_ex.3 | ||
80 | ibv_query_srq.3 | ||
81 | - ibv_rate_to_mbps.3.md | ||
82 | - ibv_rate_to_mult.3.md | ||
83 | ibv_rc_pingpong.1 | ||
84 | ibv_reg_mr.3 | ||
85 | - ibv_req_notify_cq.3.md | ||
86 | - ibv_rereg_mr.3.md | ||
87 | - ibv_resize_cq.3.md | ||
88 | ibv_srq_pingpong.1 | ||
89 | ibv_uc_pingpong.1 | ||
90 | ibv_ud_pingpong.1 | ||
91 | diff --git a/providers/mlx5/man/CMakeLists.txt b/providers/mlx5/man/CMakeLists.txt | ||
92 | index cdc7115e..876b6fcf 100644 | ||
93 | --- a/providers/mlx5/man/CMakeLists.txt | ||
94 | +++ b/providers/mlx5/man/CMakeLists.txt | ||
95 | @@ -1,5 +1,4 @@ | ||
96 | rdma_man_pages( | ||
97 | - mlx5dv_flow_action_esp.3.md | ||
98 | mlx5dv_get_clock_info.3 | ||
99 | mlx5dv_init_obj.3 | ||
100 | mlx5dv_query_device.3 | ||
101 | -- | ||
102 | 2.17.1 | ||
103 | |||
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch new file mode 100644 index 000000000..b04c9b723 --- /dev/null +++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From f2df1db11f3a9580774300e703b6f53dbcdb28ef Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 8 Jun 2018 20:17:57 -0700 | ||
4 | Subject: [PATCH] S_IFSOCK is defined in both glibc/musl | ||
5 | |||
6 | Fixes | ||
7 | |||
8 | preload.c:1183:46: error: '__S_IFSOCK' undeclared (first use in this function); did you mean 'S_IFSOCK'? | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | librdmacm/preload.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/librdmacm/preload.c b/librdmacm/preload.c | ||
18 | index 0f2aa250..d46beb1b 100644 | ||
19 | --- a/librdmacm/preload.c | ||
20 | +++ b/librdmacm/preload.c | ||
21 | @@ -1180,7 +1180,7 @@ int __fxstat(int ver, int socket, struct stat *buf) | ||
22 | if (fd_get(socket, &fd) == fd_rsocket) { | ||
23 | ret = real.fxstat(ver, socket, buf); | ||
24 | if (!ret) | ||
25 | - buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK; | ||
26 | + buf->st_mode = (buf->st_mode & ~S_IFMT) | S_IFSOCK; | ||
27 | } else { | ||
28 | ret = real.fxstat(ver, fd, buf); | ||
29 | } | ||
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-endian.h-for-htole32-and-friends.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-endian.h-for-htole32-and-friends.patch new file mode 100644 index 000000000..aa335244b --- /dev/null +++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-endian.h-for-htole32-and-friends.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 65b9a47c07be4611b4fbbcafff1993186bcb0537 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 12 Jun 2018 19:15:52 -0700 | ||
4 | Subject: [PATCH 1/2] include endian.h for htole32 and friends | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | providers/hns/hns_roce_u.h | 1 + | ||
9 | 1 file changed, 1 insertion(+) | ||
10 | |||
11 | diff --git a/providers/hns/hns_roce_u.h b/providers/hns/hns_roce_u.h | ||
12 | index bd66c6e7..b07424db 100644 | ||
13 | --- a/providers/hns/hns_roce_u.h | ||
14 | +++ b/providers/hns/hns_roce_u.h | ||
15 | @@ -34,6 +34,7 @@ | ||
16 | #define _HNS_ROCE_U_H | ||
17 | |||
18 | #include <stddef.h> | ||
19 | +#include <endian.h> | ||
20 | #include <util/compiler.h> | ||
21 | |||
22 | #include <infiniband/driver.h> | ||
23 | -- | ||
24 | 2.17.1 | ||
25 | |||
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0002-Remove-unused-include-for-execinfo.h.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0002-Remove-unused-include-for-execinfo.h.patch new file mode 100644 index 000000000..347f964e9 --- /dev/null +++ b/meta-networking/recipes-support/rdma-core/rdma-core/0002-Remove-unused-include-for-execinfo.h.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 3d9cae15c69c0b3260a024ad5d6802a8d85515a2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 12 Jun 2018 19:18:24 -0700 | ||
4 | Subject: [PATCH 2/2] Remove unused include for execinfo.h | ||
5 | |||
6 | Fixes build on musl | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | providers/qedr/qelr_verbs.c | 1 - | ||
11 | 1 file changed, 1 deletion(-) | ||
12 | |||
13 | diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c | ||
14 | index e3b01f28..2ee1c832 100644 | ||
15 | --- a/providers/qedr/qelr_verbs.c | ||
16 | +++ b/providers/qedr/qelr_verbs.c | ||
17 | @@ -54,7 +54,6 @@ | ||
18 | |||
19 | #include <stdio.h> | ||
20 | #include <stdlib.h> | ||
21 | -#include <execinfo.h> | ||
22 | |||
23 | #define QELR_SQE_ELEMENT_SIZE (sizeof(struct rdma_sq_sge)) | ||
24 | #define QELR_RQE_ELEMENT_SIZE (sizeof(struct rdma_rq_sge)) | ||
25 | -- | ||
26 | 2.17.1 | ||
27 | |||
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0002-neigh.c-Do-not-include-net-if_packet.h.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0002-neigh.c-Do-not-include-net-if_packet.h.patch new file mode 100644 index 000000000..e887f222b --- /dev/null +++ b/meta-networking/recipes-support/rdma-core/rdma-core/0002-neigh.c-Do-not-include-net-if_packet.h.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 82486f7e1ee2aa07a5c12cb357834993aa8c1d20 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 8 Jun 2018 20:19:13 -0700 | ||
4 | Subject: [PATCH] neigh.c: Do not include net/if_packet.h | ||
5 | |||
6 | This header is glibc specific | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | libibverbs/neigh.c | 1 - | ||
13 | 1 file changed, 1 deletion(-) | ||
14 | |||
15 | diff --git a/libibverbs/neigh.c b/libibverbs/neigh.c | ||
16 | index 21177db0..cfc593a0 100644 | ||
17 | --- a/libibverbs/neigh.c | ||
18 | +++ b/libibverbs/neigh.c | ||
19 | @@ -2,7 +2,6 @@ | ||
20 | */ | ||
21 | |||
22 | #include "config.h" | ||
23 | -#include <net/if_packet.h> | ||
24 | #include <linux/netlink.h> | ||
25 | #include <linux/rtnetlink.h> | ||
26 | #include <endian.h> | ||
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core_17.bb b/meta-networking/recipes-support/rdma-core/rdma-core_18.1.bb index 5d0329919..6ad864d1e 100644 --- a/meta-networking/recipes-support/rdma-core/rdma-core_17.bb +++ b/meta-networking/recipes-support/rdma-core/rdma-core_18.1.bb | |||
@@ -5,8 +5,14 @@ SECTION = "libs" | |||
5 | DEPENDS = "libnl" | 5 | DEPENDS = "libnl" |
6 | RDEPENDS_${PN} = "bash perl" | 6 | RDEPENDS_${PN} = "bash perl" |
7 | 7 | ||
8 | SRC_URI = "git://github.com/linux-rdma/rdma-core.git;protocol=http" | 8 | SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=stable-v18 \ |
9 | SRCREV ="5ce12bd51ebb0a4db35dea382b1ebdc701bab224" | 9 | file://0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch \ |
10 | file://0002-neigh.c-Do-not-include-net-if_packet.h.patch \ | ||
11 | file://0001-include-endian.h-for-htole32-and-friends.patch \ | ||
12 | file://0002-Remove-unused-include-for-execinfo.h.patch \ | ||
13 | file://0001-Remove-man-files-which-cant-be-built.patch \ | ||
14 | " | ||
15 | SRCREV = "7844b3fbe5120623d63b29ecb43eb83a61129658" | ||
10 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
11 | 17 | ||
12 | #Default Dual License https://github.com/linux-rdma/rdma-core/blob/master/COPYING.md | 18 | #Default Dual License https://github.com/linux-rdma/rdma-core/blob/master/COPYING.md |