1 |
commit: 031ac6163a9ab7284db2ee94a7115bb77757cf7d |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Tue Apr 26 17:39:35 2022 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Tue Apr 26 17:39:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=031ac616 |
7 |
|
8 |
sys-kernel/rte_kni-kmod: add 21.11.1, 22.03 |
9 |
|
10 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
11 |
|
12 |
sys-kernel/rte_kni-kmod/Manifest | 2 + |
13 |
.../rte_kni-kmod/rte_kni-kmod-21.11.1.ebuild | 78 ++++++++++++++++++++++ |
14 |
sys-kernel/rte_kni-kmod/rte_kni-kmod-22.03.ebuild | 78 ++++++++++++++++++++++ |
15 |
3 files changed, 158 insertions(+) |
16 |
|
17 |
diff --git a/sys-kernel/rte_kni-kmod/Manifest b/sys-kernel/rte_kni-kmod/Manifest |
18 |
index cf0fb5cc1..bcd3dead8 100644 |
19 |
--- a/sys-kernel/rte_kni-kmod/Manifest |
20 |
+++ b/sys-kernel/rte_kni-kmod/Manifest |
21 |
@@ -1 +1,3 @@ |
22 |
+DIST dpdk-21.11.1.tar.xz 15115156 BLAKE2B 089e98279922b5494b205d957f9ac05001a668f4536d45e5fd89b9f7d04779e0671ec428b2408963641da3ae999d5943a1ff5dc59c23020ccefce824609c8f11 SHA512 d7afc0c918626b1706a18a129086fcd3741b251c28fa00c5711eb85a03137e5ee6e08de7bd5ebe957e442dc9b901314042b382b223e74f0fdd5d560ac657f1b3 |
23 |
DIST dpdk-21.11.tar.xz 15102516 BLAKE2B e82fb03242b74e458810ee5e0d21feaf5d6d781b81b8dc5c2a2ab977bac202290dadc8734ea13993bb1cb1df4b5c4d770df574052a384b590ac798d19c370c59 SHA512 843282023c2f77a9b8af393d50c6dde54f09d490cd6f4a99f03d4df5df13a7d963aa86885fdf64e13f9da71e01c881d1f301dd093574a32cddd84f4b1fb58fd5 |
24 |
+DIST dpdk-22.03.tar.xz 15055548 BLAKE2B 16fb52618e72deba7097e4d920e160e14f1332eed2b8f2f2957f3dd1b847859e6b8b8cd6adef0513cd7bc528a37d4c481f803e8c5badaa299d2bb2af3615e696 SHA512 b3940642f99767323f39470c1e3e0eab7a07bcaca225e2a714b62ba6c59d2c66e4ea17d38e8266f37ed8b5c5c2ad272930fd28f545324ec0a1cb185685e06a5f |
25 |
|
26 |
diff --git a/sys-kernel/rte_kni-kmod/rte_kni-kmod-21.11.1.ebuild b/sys-kernel/rte_kni-kmod/rte_kni-kmod-21.11.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..488bf4d94 |
29 |
--- /dev/null |
30 |
+++ b/sys-kernel/rte_kni-kmod/rte_kni-kmod-21.11.1.ebuild |
31 |
@@ -0,0 +1,78 @@ |
32 |
+# Copyright 2021-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit linux-mod python-single-r1 meson |
39 |
+ |
40 |
+DESCRIPTION="DPDK Kernel Nic Interface module" |
41 |
+HOMEPAGE="https://dpdk.org/" |
42 |
+SRC_URI="https://fast.dpdk.org/rel/dpdk-${PV}.tar.xz" |
43 |
+S="${WORKDIR}/dpdk-stable-${PV}" |
44 |
+ |
45 |
+LICENSE="BSD GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64" |
48 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
49 |
+# tests need root |
50 |
+RESTRICT="test" |
51 |
+ |
52 |
+RDEPEND="${PYTHON_DEPS}" |
53 |
+ |
54 |
+DEPEND="${RDEPEND} |
55 |
+ $(python_gen_cond_dep ' |
56 |
+ dev-python/pyelftools[${PYTHON_USEDEP}] |
57 |
+ ') |
58 |
+ app-crypt/intel-ipsec-mb |
59 |
+ dev-libs/elfutils |
60 |
+ dev-libs/isa-l |
61 |
+ dev-libs/jansson |
62 |
+ dev-libs/libbpf |
63 |
+ dev-libs/libbsd |
64 |
+ dev-libs/openssl |
65 |
+ net-libs/libmnl |
66 |
+ net-libs/libpcap |
67 |
+ sys-apps/dtc |
68 |
+ sys-cluster/rdma-core |
69 |
+ sys-process/numactl |
70 |
+" |
71 |
+BDEPEND=" |
72 |
+ ${PYTHON_DEPS} |
73 |
+" |
74 |
+ |
75 |
+CONFIG_CHECK="~IOMMU_SUPPORT ~AMD_IOMMU ~VFIO ~VFIO_PCI ~UIO ~UIO_PDRV_GENIRQ ~UIO_DMEM_GENIRQ ~HPET_MMAP" |
76 |
+ |
77 |
+pkg_setup() { |
78 |
+ linux-mod_pkg_setup |
79 |
+ python-single-r1_pkg_setup |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ linux-mod_pkg_setup |
84 |
+ python-single-r1_pkg_setup |
85 |
+ # we still have to do meson configuration as it creates |
86 |
+ # header files needed for compiling the rte_kni module |
87 |
+ local emesonargs=( |
88 |
+ -Denable_kmods=false |
89 |
+ -Dmachine=default |
90 |
+ -Dplatform=generic |
91 |
+ ) |
92 |
+ meson_src_configure |
93 |
+ |
94 |
+ # export after meson_src_configure as BUILD_DIR is needed for module compilation |
95 |
+ export MODULE_NAMES="rte_kni(extra/dpdk:${S}/kernel/linux/kni)" |
96 |
+ export BUILD_PARAMS="-C \"${KERNEL_DIR}\" M=\"${S}\"/kernel/linux/kni \ |
97 |
+ src=\"${S}\"/kernel/linux/kni \ |
98 |
+ MODULE_CFLAGS=\"${HAVE_ARG_TX_QUEUE} -include ${S}/config/rte_config.h -I${S}/lib/eal/include \ |
99 |
+ -I${S}/lib/kni -I${S}/kernel/linux/kni -I${BUILD_DIR} -I${S}\"" |
100 |
+ export BUILD_TARGETS="modules" |
101 |
+} |
102 |
+ |
103 |
+src_compile() { |
104 |
+ linux-mod_src_compile |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ linux-mod_src_install |
109 |
+} |
110 |
|
111 |
diff --git a/sys-kernel/rte_kni-kmod/rte_kni-kmod-22.03.ebuild b/sys-kernel/rte_kni-kmod/rte_kni-kmod-22.03.ebuild |
112 |
new file mode 100644 |
113 |
index 000000000..44e368c06 |
114 |
--- /dev/null |
115 |
+++ b/sys-kernel/rte_kni-kmod/rte_kni-kmod-22.03.ebuild |
116 |
@@ -0,0 +1,78 @@ |
117 |
+# Copyright 2021-2022 Gentoo Authors |
118 |
+# Distributed under the terms of the GNU General Public License v2 |
119 |
+ |
120 |
+EAPI=7 |
121 |
+ |
122 |
+PYTHON_COMPAT=( python3_{8..10} ) |
123 |
+inherit linux-mod python-single-r1 meson |
124 |
+ |
125 |
+DESCRIPTION="DPDK Kernel Nic Interface module" |
126 |
+HOMEPAGE="https://dpdk.org/" |
127 |
+SRC_URI="https://fast.dpdk.org/rel/dpdk-${PV}.tar.xz" |
128 |
+S="${WORKDIR}/dpdk-${PV}" |
129 |
+ |
130 |
+LICENSE="BSD GPL-2" |
131 |
+SLOT="0" |
132 |
+KEYWORDS="~amd64" |
133 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
134 |
+# tests need root |
135 |
+RESTRICT="test" |
136 |
+ |
137 |
+RDEPEND="${PYTHON_DEPS}" |
138 |
+ |
139 |
+DEPEND="${RDEPEND} |
140 |
+ $(python_gen_cond_dep ' |
141 |
+ dev-python/pyelftools[${PYTHON_USEDEP}] |
142 |
+ ') |
143 |
+ app-crypt/intel-ipsec-mb |
144 |
+ dev-libs/elfutils |
145 |
+ dev-libs/isa-l |
146 |
+ dev-libs/jansson |
147 |
+ dev-libs/libbpf |
148 |
+ dev-libs/libbsd |
149 |
+ dev-libs/openssl |
150 |
+ net-libs/libmnl |
151 |
+ net-libs/libpcap |
152 |
+ sys-apps/dtc |
153 |
+ sys-cluster/rdma-core |
154 |
+ sys-process/numactl |
155 |
+" |
156 |
+BDEPEND=" |
157 |
+ ${PYTHON_DEPS} |
158 |
+" |
159 |
+ |
160 |
+CONFIG_CHECK="~IOMMU_SUPPORT ~AMD_IOMMU ~VFIO ~VFIO_PCI ~UIO ~UIO_PDRV_GENIRQ ~UIO_DMEM_GENIRQ ~HPET_MMAP" |
161 |
+ |
162 |
+pkg_setup() { |
163 |
+ linux-mod_pkg_setup |
164 |
+ python-single-r1_pkg_setup |
165 |
+} |
166 |
+ |
167 |
+src_configure() { |
168 |
+ linux-mod_pkg_setup |
169 |
+ python-single-r1_pkg_setup |
170 |
+ # we still have to do meson configuration as it creates |
171 |
+ # header files needed for compiling the rte_kni module |
172 |
+ local emesonargs=( |
173 |
+ -Denable_kmods=false |
174 |
+ -Dmachine=default |
175 |
+ -Dplatform=generic |
176 |
+ ) |
177 |
+ meson_src_configure |
178 |
+ |
179 |
+ # export after meson_src_configure as BUILD_DIR is needed for module compilation |
180 |
+ export MODULE_NAMES="rte_kni(extra/dpdk:${S}/kernel/linux/kni)" |
181 |
+ export BUILD_PARAMS="-C \"${KERNEL_DIR}\" M=\"${S}\"/kernel/linux/kni \ |
182 |
+ src=\"${S}\"/kernel/linux/kni \ |
183 |
+ MODULE_CFLAGS=\"${HAVE_ARG_TX_QUEUE} -include ${S}/config/rte_config.h -I${S}/lib/eal/include \ |
184 |
+ -I${S}/lib/kni -I${S}/kernel/linux/kni -I${BUILD_DIR} -I${S}\"" |
185 |
+ export BUILD_TARGETS="modules" |
186 |
+} |
187 |
+ |
188 |
+src_compile() { |
189 |
+ linux-mod_src_compile |
190 |
+} |
191 |
+ |
192 |
+src_install() { |
193 |
+ linux-mod_src_install |
194 |
+} |