dpdk: Skip build if necessary kernel options is not included
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.
Signed-off-by He Zhe <[email protected]>
--- recipes-extended/dpdk/dpdk.inc | 5 +++++ 1 file changed, 5 insertions(+)
recipes-extended/dpdk/dpdk.inc +5 -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") +} + STABLE = "" BRANCH = "master" S = "${WORKDIR}/git"
Signature · 1 line
2.7.4
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.Signed-off-by He Zhe <[email protected]>--- recipes-extended/dpdk/dpdk.inc | 5 +++++ 1 file changed, 5 insertions(+)recipes- renamed from recipes-extended/dpdk/dpdk.inc +0
-0extended/dpdk/dpdk.inc
index 3b997eb..9c9b397 100644recipes-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 inKERNEL_FEATURESto 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