should be better to warn then fail. v2 will be sent.

Zhe

On 2/17/20 5:30 PM, He Zhe wrote:
> From: He Zhe <[email protected]>
>
> dpdk requires kernel option features/intel-dpdk/intel-dpdk.scc to build.
> We'd better inform users in advance before they meet some confusing errors
> at compile-time.
>
> Signed-off-by: He Zhe <[email protected]>
> ---
>  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 293a404..f916223 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"
>
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#6384): 
https://lists.yoctoproject.org/g/meta-intel/message/6384
Mute This Topic: https://lists.yoctoproject.org/mt/71346386/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to