Skip to contentSkip to conversation

dpdk: Skip build if necessary kernel options is not included

PATCH In review [email protected] 2 participants 2 messages Sep 16, 2019 – Sep 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dpdk: Skip build if necessary kernel options is not included

From: He Zhe <[email protected]>

dpdk depends on some kernel configuration options without which it is not able to successfully build.

---
 recipes-extended/dpdk/dpdk.inc | 5 +++++
 1 file changed, 5 insertions(+)
recipes-extended/dpdk/dpdk.inc +5 -0
index 3b997eb..9c9b397 100644
@@ -1,6 +1,11 @@
 DESCRIPTION = "Intel(r) Data Plane Development Kit"
 HOMEPAGE = "http://dpdk.org"
 
+python () {
+    if not bb.utils.contains('KERNEL_FEATURES', 'features/intel-dpdk/intel-dpdk.scc', True, False, d):
+        raise bb.parse.SkipPackage("dpdk requires features/intel-dpdk/intel-dpdk.scc in KERNEL_FEATURES to build")
+}
+
 STABLE = ""
 BRANCH = "master"
 S = "${WORKDIR}/git"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 25 lines · On Mon, 2019-09-16 at 15:56 +0800, [email protected] wrote:

From: He Zhe <[email protected]>

dpdk depends on some kernel configuration options without which it is not able
to successfully build.

---
 recipes-extended/dpdk/dpdk.inc | 5 +++++
 1 file changed, 5 insertions(+)
recipes- renamed from recipes-extended/dpdk/dpdk.inc +0 -0

extended/dpdk/dpdk.inc
index 3b997eb..9c9b397 100644

recipes-extended/dpdk/dpdk.inc +2 -0
@@ -1,6 +1,11 @@
 DESCRIPTION = "Intel(r) Data Plane Development Kit"
 HOMEPAGE = "http://dpdk.org"
 
+python () {
+    if not bb.utils.contains('KERNEL_FEATURES', 'features/intel-

dpdk/intel-dpdk.scc', True, False, d):
+ raise bb.parse.SkipPackage("dpdk requires features/intel-
dpdk/intel-dpdk.scc in KERNEL_FEATURES to build")

recipes-extended/dpdk/dpdk.inc line 8

Quoted 2 lines
recipes-extended/dpdk/dpdk.inc +2 -0
+}
+

I think this won't work for people who don't use yocto-kernel-cache.

Thanks,

Anuj