diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2021-11-15 22:13:38 -0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-11-19 08:30:42 -0500 |
commit | fd6e0cda911560ae4a78ee913066ffefd8e29b7e (patch) | |
tree | b4bb1884eecabc64a60ab7f1af03392c4282c6a4 /recipes-networking/openvswitch | |
parent | 538d688aad04178c99f71807aa66fb773f99c7d0 (diff) | |
download | meta-virtualization-fd6e0cda911560ae4a78ee913066ffefd8e29b7e.tar.gz |
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.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-networking/openvswitch')
-rw-r--r-- | recipes-networking/openvswitch/openvswitch.inc | 2 | ||||
-rw-r--r-- | recipes-networking/openvswitch/openvswitch_git.bb | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc index b354a847..831e0b35 100644 --- a/recipes-networking/openvswitch/openvswitch.inc +++ b/recipes-networking/openvswitch/openvswitch.inc | |||
@@ -72,7 +72,7 @@ FILES:${PN} += "${datadir}/ovsdbmonitor" | |||
72 | FILES:${PN} += "/run" | 72 | FILES:${PN} += "/run" |
73 | 73 | ||
74 | FILES:${PN} += "${libdir}/python${PYTHON_BASEVERSION}/" | 74 | FILES:${PN} += "${libdir}/python${PYTHON_BASEVERSION}/" |
75 | inherit autotools update-rc.d systemd python3native | 75 | inherit pkgconfig autotools update-rc.d systemd python3native |
76 | 76 | ||
77 | SYSTEMD_PACKAGES = "${PN}-switch" | 77 | SYSTEMD_PACKAGES = "${PN}-switch" |
78 | SYSTEMD_SERVICE:${PN}-switch = " \ | 78 | SYSTEMD_SERVICE:${PN}-switch = " \ |
diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb index f1a5c4ca..0fb7c132 100644 --- a/recipes-networking/openvswitch/openvswitch_git.bb +++ b/recipes-networking/openvswitch/openvswitch_git.bb | |||
@@ -32,10 +32,8 @@ SRC_URI += "git://github.com/openvswitch/ovs.git;protocol=https;branch=branch-2. | |||
32 | 32 | ||
33 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" | 33 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" |
34 | 34 | ||
35 | DPDK_INSTALL_DIR ?= "/opt/dpdk" | ||
36 | |||
37 | PACKAGECONFIG ?= "libcap-ng" | 35 | PACKAGECONFIG ?= "libcap-ng" |
38 | PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}${DPDK_INSTALL_DIR}/share/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,dpdk" | 36 | PACKAGECONFIG[dpdk] = "--with-dpdk=shared,,dpdk,dpdk" |
39 | PACKAGECONFIG[libcap-ng] = "--enable-libcapng,--disable-libcapng,libcap-ng," | 37 | PACKAGECONFIG[libcap-ng] = "--enable-libcapng,--disable-libcapng,libcap-ng," |
40 | PACKAGECONFIG[ssl] = ",--disable-ssl,openssl," | 38 | PACKAGECONFIG[ssl] = ",--disable-ssl,openssl," |
41 | 39 | ||