Skip to contentSkip to conversation

openvswitch: fix configure error with dpdk enabled

PATCH In review Chen Qi 2 participants 2 messages Nov 16, 2021 – Nov 19, 2021

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 openvswitch: fix configure error with dpdk enabled

When enabling 'dpdk' PACKAGECONFIG, the following error appears.

| configure: error: Could not find DPDK library in default search path

Fix the error by tweaking the configure option regarding dpdk. Add pkgconfig to 'inherit' because pkgconfig is required at do_configure when dpdk is enabled.

---
 recipes-networking/openvswitch/openvswitch.inc    | 2 +-
 recipes-networking/openvswitch/openvswitch_git.bb | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
recipes-networking/openvswitch/openvswitch.inc +1 -1
index b354a84..831e0b3 100644
@@ -72,7 +72,7 @@ FILES:${PN} += "${datadir}/ovsdbmonitor"
 FILES:${PN} += "/run"
 
 FILES:${PN} += "${libdir}/python${PYTHON_BASEVERSION}/"
-inherit autotools update-rc.d systemd python3native
+inherit pkgconfig autotools update-rc.d systemd python3native
 
 SYSTEMD_PACKAGES = "${PN}-switch"
 SYSTEMD_SERVICE:${PN}-switch = " \
recipes-networking/openvswitch/openvswitch_git.bb +1 -3
index f1a5c4c..0fb7c13 100644
@@ -32,10 +32,8 @@ SRC_URI += "git://github.com/openvswitch/ovs.git;protocol=https;branch=branch-2.
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab"
 
-DPDK_INSTALL_DIR ?= "/opt/dpdk"
-
 PACKAGECONFIG ?= "libcap-ng"
-PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}${DPDK_INSTALL_DIR}/share/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,dpdk"
+PACKAGECONFIG[dpdk] = "--with-dpdk=shared,,dpdk,dpdk"
 PACKAGECONFIG[libcap-ng] = "--enable-libcapng,--disable-libcapng,libcap-ng,"
 PACKAGECONFIG[ssl] = ",--disable-ssl,openssl,"
 
Signature · 1 line
2.33.0
#1 lore raw

merged.

Bruce

Quoted 50 lines · Chen Qi

When enabling 'dpdk' PACKAGECONFIG, the following error appears.

| configure: error: Could not find DPDK library in default search path

Fix the error by tweaking the configure option regarding dpdk. Add pkgconfig to 'inherit' because pkgconfig is required at do_configure when dpdk is enabled.

---
 recipes-networking/openvswitch/openvswitch.inc    | 2 +-
 recipes-networking/openvswitch/openvswitch_git.bb | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
recipes-networking/openvswitch/openvswitch.inc +1 -1
index b354a84..831e0b3 100644
@@ -72,7 +72,7 @@ FILES:${PN} += "${datadir}/ovsdbmonitor"
 FILES:${PN} += "/run"
 
 FILES:${PN} += "${libdir}/python${PYTHON_BASEVERSION}/"
-inherit autotools update-rc.d systemd python3native
+inherit pkgconfig autotools update-rc.d systemd python3native
 
 SYSTEMD_PACKAGES = "${PN}-switch"
 SYSTEMD_SERVICE:${PN}-switch = " \
recipes-networking/openvswitch/openvswitch_git.bb +1 -4
index f1a5c4c..0fb7c13 100644
@@ -32,10 +32,8 @@ SRC_URI += "git://github.com/openvswitch/ovs.git;protocol=https;branch=branch-2.
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab"
 
-DPDK_INSTALL_DIR ?= "/opt/dpdk"
-
 PACKAGECONFIG ?= "libcap-ng"
-PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}${DPDK_INSTALL_DIR}/share/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,dpdk"
+PACKAGECONFIG[dpdk] = "--with-dpdk=shared,,dpdk,dpdk"
 PACKAGECONFIG[libcap-ng] = "--enable-libcapng,--disable-libcapng,libcap-ng,"
 PACKAGECONFIG[ssl] = ",--disable-ssl,openssl,"
 
--

2.33.0

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II