From bca5037e5d3d532df7b6eb54b939d6e81d58d6a1 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Fri, 4 Aug 2017 11:01:00 +0800 Subject: openvswitch: fix dpdk PACKAGECONFIG 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 Signed-off-by: Bruce Ashfield --- recipes-networking/openvswitch/openvswitch_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'recipes-networking/openvswitch') diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb index a3c586b7..35f4ba8b 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. -- cgit v1.2.3-54-g00ecf