summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch.inc
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2017-01-11 17:12:35 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-01-12 14:01:36 -0500
commit9152441483600a4f102320c805e892a4cd0252dd (patch)
treeaa2a9f660c34d6c9bd30588443179f9c2f59652d /recipes-networking/openvswitch/openvswitch.inc
parentdbe846086b49fc07d278adbefa476d34bbbb0c13 (diff)
downloadmeta-virtualization-9152441483600a4f102320c805e892a4cd0252dd.tar.gz
openvswitch: uprev to 2.6.1
Pick up the latest features, including compatability with the latest DPDK as well as bug fixes. The patches for TARGET_PYTHON and TARGET_PERL can be dropped as configure now lets us pass these in the env (which we set). The systemd service files have been shuffled some upstream and we make adjustments in the recipe to accomodate these. The sysvinit scripts remain functional as they are. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch.inc')
-rw-r--r--recipes-networking/openvswitch/openvswitch.inc23
1 files changed, 13 insertions, 10 deletions
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index 3c70703a..ab1f8feb 100644
--- a/recipes-networking/openvswitch/openvswitch.inc
+++ b/recipes-networking/openvswitch/openvswitch.inc
@@ -31,13 +31,12 @@ SRC_URI = "\
31 file://openvswitch-switch-setup \ 31 file://openvswitch-switch-setup \
32 file://openvswitch-testcontroller \ 32 file://openvswitch-testcontroller \
33 file://openvswitch-testcontroller-setup \ 33 file://openvswitch-testcontroller-setup \
34 file://openvswitch-add-target-python-handling.patch \
35 file://openvswitch-add-target-perl-handling.patch \
36 " 34 "
37 35
38EXTRA_OECONF += "\ 36EXTRA_OECONF += "\
39 TARGET_PYTHON=${bindir}/python \ 37 PYTHON=${bindir}/python \
40 TARGET_PERL=${bindir}/perl \ 38 PYTHON3=${bindir}/python3 \
39 PERL=${bindir}/perl \
41 " 40 "
42CONFIGUREOPT_DEPTRACK = "" 41CONFIGUREOPT_DEPTRACK = ""
43 42
@@ -61,8 +60,9 @@ FILES_${PN}-brcompat = "${sbindir}/ovs-brcompatd"
61FILES_${PN}-switch = "\ 60FILES_${PN}-switch = "\
62 ${sysconfdir}/init.d/openvswitch-switch \ 61 ${sysconfdir}/init.d/openvswitch-switch \
63 ${sysconfdir}/default/openvswitch-switch \ 62 ${sysconfdir}/default/openvswitch-switch \
63 ${systemd_unitdir}/system/ovs-vswitchd.service \
64 ${systemd_unitdir}/system/openvswitch.service \ 64 ${systemd_unitdir}/system/openvswitch.service \
65 ${systemd_unitdir}/system/openvswitch-nonetwork.service \ 65 ${systemd_unitdir}/system/ovsdb-server.service \
66 " 66 "
67 67
68# silence a warning 68# silence a warning
@@ -74,8 +74,9 @@ inherit autotools update-rc.d systemd python-dir
74 74
75SYSTEMD_PACKAGES = "${PN}-switch" 75SYSTEMD_PACKAGES = "${PN}-switch"
76SYSTEMD_SERVICE_${PN}-switch = " \ 76SYSTEMD_SERVICE_${PN}-switch = " \
77 openvswitch-nonetwork.service \ 77 ovsdb-server.service \
78 openvswitch-switch.service \ 78 ovs-vswitchd.service \
79 openvswitch.service \
79" 80"
80 81
81INITSCRIPT_PACKAGES = "${PN}-switch ${PN}-testcontroller" 82INITSCRIPT_PACKAGES = "${PN}-switch ${PN}-testcontroller"
@@ -97,10 +98,12 @@ do_install_append() {
97 true || rm -fr ${D}/${datadir}/${PN}/pki 98 true || rm -fr ${D}/${datadir}/${PN}/pki
98 99
99 install -d ${D}/${systemd_unitdir}/system/ 100 install -d ${D}/${systemd_unitdir}/system/
101 install -m 644 ${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service \
102 ${D}/${systemd_unitdir}/system/ovs-vswitchd.service
100 install -m 644 ${S}/rhel/usr_lib_systemd_system_openvswitch.service \ 103 install -m 644 ${S}/rhel/usr_lib_systemd_system_openvswitch.service \
101 ${D}/${systemd_unitdir}/system/openvswitch-switch.service 104 ${D}/${systemd_unitdir}/system/openvswitch.service
102 install -m 644 ${S}/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service \ 105 install -m 644 ${S}/rhel/usr_lib_systemd_system_ovsdb-server.service \
103 ${D}/${systemd_unitdir}/system/openvswitch-nonetwork.service 106 ${D}/${systemd_unitdir}/system/ovsdb-server.service
104 107
105 oe_runmake modules_install INSTALL_MOD_PATH=${D} 108 oe_runmake modules_install INSTALL_MOD_PATH=${D}
106 install -d ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages 109 install -d ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages