[meta-virtualization] [PATCH] openvswitch: fix dpdk PACKAGECONFIG

Bruce Ashfield bruce.ashfield at gmail.com
Thu Aug 3 20:52:33 PDT 2017


merged.

Bruce

On Thu, Aug 3, 2017 at 11:01 PM, Chen Qi <Qi.Chen at windriver.com> wrote:

> Add dpdk as a runtime dependency when 'dpdk' PACKAGECONFIG is enabled.
>
> Also, introduce a variable DPDK_INSTALL_DIR, and default it to /opt/dpdk.
> This is because users might install DPDK into different locations,
> e.g. /usr. And it would easy for users to override this variable
> to make openvswitch build with dpdk correctly.
>
> Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
> ---
>  recipes-networking/openvswitch/openvswitch_git.bb | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-networking/openvswitch/openvswitch_git.bb
> b/recipes-networking/openvswitch/openvswitch_git.bb
> index a3c586b..35f4ba8 100644
> --- a/recipes-networking/openvswitch/openvswitch_git.bb
> +++ b/recipes-networking/openvswitch/openvswitch_git.bb
> @@ -48,8 +48,10 @@ SRC_URI += " \
>
>  LIC_FILES_CHKSUM = "file://COPYING;md5=17b2c9d4c70853a09c0e143137754b35"
>
> +DPDK_INSTALL_DIR ?= "/opt/dpdk"
> +
>  PACKAGECONFIG ?= ""
> -PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_
> TARGET}/opt/dpdk/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,"
> +PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_
> TARGET}${DPDK_INSTALL_DIR}/share/${TARGET_ARCH}-native-
> linuxapp-gcc,,dpdk,dpdk"
>
>  # Don't compile kernel modules by default since it heavily depends on
>  # kernel version. Use the in-kernel module for now.
> --
> 2.11.0
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20170803/5d0a7fff/attachment.html>


More information about the meta-virtualization mailing list