[yocto] [meta-dpdk][PATCH] dpdk: Skip build if necessary kernel options is not included
zhe.he at windriver.com
zhe.he at windriver.com
Mon Sep 16 00:56:28 PDT 2019
From: He Zhe <zhe.he at windriver.com>
dpdk depends on some kernel configuration options without which it is not able
to successfully build.
Signed-off-by: He Zhe <zhe.he at windriver.com>
---
recipes-extended/dpdk/dpdk.inc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 3b997eb..9c9b397 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -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"
--
2.7.4
More information about the yocto
mailing list