All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-dpdk][PATCH] dpdk: Skip build if necessary kernel options is not included
@ 2019-09-16  7:56 zhe.he
  2019-09-17  3:54 ` Mittal, Anuj
  0 siblings, 1 reply; 2+ messages in thread
From: zhe.he @ 2019-09-16  7:56 UTC (permalink / raw)
  To: yocto

From: He Zhe <zhe.he@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@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-dpdk][PATCH] dpdk: Skip build if necessary kernel options is not included
  2019-09-16  7:56 [meta-dpdk][PATCH] dpdk: Skip build if necessary kernel options is not included zhe.he
@ 2019-09-17  3:54 ` Mittal, Anuj
  0 siblings, 0 replies; 2+ messages in thread
From: Mittal, Anuj @ 2019-09-17  3:54 UTC (permalink / raw)
  To: yocto, zhe.he

On Mon, 2019-09-16 at 15:56 +0800, zhe.he@windriver.com wrote:
> From: He Zhe <zhe.he@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@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")
> +}
> +

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

Thanks,

Anuj

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-17  3:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-16  7:56 [meta-dpdk][PATCH] dpdk: Skip build if necessary kernel options is not included zhe.he
2019-09-17  3:54 ` Mittal, Anuj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.