Commit Graph

183 Commits

Author SHA1 Message Date
Bruce Ashfield
beaa1ea3f7 openvswitch: add bash rdepends
Fix the following QA warning:

  WARNING: QA Issue: openvswitch requires /bin/bash, but no providers in its RDEPENDS [file-rdeps]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-02-22 23:48:09 -05:00
Bruce Ashfield
9dc5fd6367 openvswitch: don't pass kernel source or build artifacts
Like the previous versions of OVS, we rely on the virtual/kernel provider
to build the appropriate modules. Passing the --with-linux and --with-linux-source
breaks builds when the split source/build/build-artifacts are not as
expected (and modules are attempted to be built from the wrong directory).

To fix this, we simply don't enable those options, and all is well.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-02-20 23:33:20 -05:00
Bruce Ashfield
ec58910376 ovs: disable dpdk by default
The dpdk recipes are not commonly available, so we shouldn't have
dpdk in the PACKAGECONFIG by default.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-02-20 21:02:03 -05:00
Amy Fong
3215875479 openvswitch: restructure recipes
Add openvswitch.inc, removing common parts out of openvswitch*.bb

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-02-03 14:10:55 -05:00
Amy Fong
2905d87e7e Package openvswitch git
This revision corresponds to git rev 1667bb34988358aaf1c92d0d21fad4b1c8698780
(based on 2.3.90)

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-02-03 14:10:55 -05:00
Mark Asselstine
a9bba2da4f openvswitch: uprev to latest stable update - v2.1.3
v2.1.3 is listed upstream as "contains only bug fixes for the 2.1.2
release". The only update to the recipe is updated checksums.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-12-02 23:38:21 -05:00
Maxin B. John
81061497fd netcf: remove recipe
meta-networking layer includes a newer version (0.2.3) of netcf recipe.
Since meta-virtualization layer depends on meta-oe/meta-networking layer,
we can avoid duplication by removing this recipe.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-29 10:05:08 -04:00
Bruce Ashfield
a82acb5d0c openvswitch: uprev to v2.1.2
Updating to the latest OVS 2.x. Only minor patch refreshes required, and
no regressions were found during sanity testing.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-14 18:27:09 -04:00
Bruce Ashfield
9b0bacbb50 netcf: fix autotools B != S build failure
For now adding netcf to the list of "brokensep" packages. The install
phase fails when autotools split directories are used, so we inherit
brokensep to get things building again.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-14 18:27:09 -04:00
Radu Patriu
36b5a4ca38 openvswitch: add ptest support
Install openvswitch test suite and run it as ptest.

Signed-off-by: Radu Patriu <radu.patriu@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-01 20:51:45 -04:00
Jim Somerville
9e5a34e8cd openvswitch: add more target python substitutions
The TARGET_PYTHON variable is used for script
substitutions to ensure the scripts will be able to properly execute
if the target system has a different path for the python.

Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 11:53:13 -05:00
Mark Asselstine
f826f932e5 openvswitch: add missing inherit
openvswitch requires pkgconfig or you may see an error:

configure.ac:53: error: Please install pkg-config.

during configure.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-18 16:15:48 -05:00
Mark Asselstine
6e915099cc openvswitch: deal with missing RDEPENDS of libpcap
Bitbake was properly detecting a dependency on libpcap but since it
was not an explicit RDEPENDS the libpcap package was not being built
in all cases which had the potential to break rootfs image building.

The obvious solution was to add libpcap to the RDEPENDS but looking
upstream it was found that they have removed the use of this library
for all but FreeBSD since for other systems it is unused. So using the
upstream patch here eliminates the dependency and in turn the issue
described above.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-19 23:29:51 -05:00
Bruce Ashfield
a626d480cf openvswitch: make postinst indentation consistent
right or wrong, we shouldn't have a mix of tabs or spaces, so in this
cleanup, we'll make them all tabs.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-13 14:01:31 -05:00
Bruce Ashfield
0623683135 ovs: uprev to 2.0.0
We update to the latest 2.0 OVS, but we'll keep the existed (better tested)
version around until this proves to be stable.

As part of this update the openvswitch-add-target-perl-handling.patch has
been refreshed, since one of the scripts it patched is no longer part
of the package.

Finally, we drop PR from the recipe as part of the larger move to PRSERVER
based revision numbers.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-13 13:52:42 -05:00
Bruce Ashfield
0adb720959 openflow: remove recipe in favour of meta-networking version
An updated version of the openflow recipe has been added to meta-openembedded
in the meta-networking layer.

 commit: 37660c [openflow: import and tweak] in git://git.openembedded.org/meta-openembedded

So we can safely remove the meta-virt variant of this recipe.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-03 22:23:51 -05:00
Paul Barrette
0997753a6e openvswitch: fix RDEPENDS issue for installers.
Make sure openvswitch has all the runtime dependencies defined.
Without e.g. sed, an installer may calculate dependencies and order
packages based on the deps, which may install openvswitch before sed.
This would result in an install failure, when the post install step
calls ovs-pki, which uses sed.

Signed-off-by: Paul Barrette <paul.barrette@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-26 23:50:34 -04:00
David Nyström
7234dca866 Fixed Q&A error for OpenFlow recipe
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-08-25 01:26:02 -04:00
Bruce Ashfield
90debab65f ovs: add /run to main package
In a systemd based build, /var/run is translated to /run. Since ovs doesn't
currently package this directory, it results in a QA error. Adding it to the
main ovs package fixes the QA issue and provides the proper runtime support.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-15 08:49:56 -04:00
Mihai Prica
4d1aed4834 openvswitch: Ensure pki directory creation
RPM doesn't guarantee the order in which postinstalls are ran.
Added code to ensure the pki directory is initialized.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-07-30 22:57:34 -04:00
Mihai Prica
faf6fc4885 openvswitch: Add coreutils runtime dependency
The install and nice programs from coreutils are required by openvswitch.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-07-30 22:57:34 -04:00
Mark Asselstine
b6dc9613cd openvswitch: add split between host and target python and perl paths
Openvswitch is built with the assumption that the PYTHON and PERL
variables are common between the host and target. This can result in
improper paths used for script substitutions which in turn causes
scripts which will fail to run on the target and the generated
packages to have improper REQUIRES, making them impossible to
install. These are usually not an issue since python and perl are
found in the same location on the host and target, but there is no
guarantee of this so the possibility of failure exists. By explicitly
defining the location of the python and perl on the target we can
avoid these assumptions and possibility of failure.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-27 13:40:41 -04:00
Bruce Ashfield
55884d203d openvswitch: remove 1.9 recipe
The OVS 1.10 integration has soaked for long enough to be stable, so
we can remove the old 1.9 recipe.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-20 11:02:50 -04:00
Anders Roxell
9a80f47ebe openvswitch: Checksum missmatch fix
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-11 13:22:12 -04:00
Paul Barrette
8499649a5f openvswitch: uprev to 1.10 and documentation update.
-Uprev to 1.10
-removed vswitch_test.sh
-added openvswitch.txt.

Signed-off-by: Paul Barrette <paul.barrette@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-03 18:07:39 -04:00
Ting Liu
69a10f062a netcf: fix network driver check issue on opensuse
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-24 21:01:45 -07:00
Joe Slater
15a0d3432e openvswitch: update to version 1.9.0
Update recipe to version 1.9.0.  Refer to docs/vswitch_test.sh
for a sanity test.  This package will not be functional unless
the openvswitch kernel module is configured into the kernel.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-28 00:14:12 -04:00
Lei Yang
0afb6647c1 openvswtich: start openvswitch at the boot time
When I define the bridge, I get below error

root@intel_5500_server:~# ovs-vsctl add-br ovsbr0
Jan 25 17:34:07|00002|stream_unix|ERR|/tmp/stream-unix.1487.0: connection to /var/run/openvswitch/db.sock
failed: No such file or directory
........
........

This is because openvswitch damon isn't running,so we'd better start it at
the boot time.  The split-package ${PN}-switch ${PN}-controller provide us
to start necessary daemon with update-rc.d so we add them to the RDEPENDS.

Since openvswitch depends on openvswtich kernel module, so auto load the
kernel module too.

Signed-off-by: Lei Yang <lei.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-02-01 09:08:07 -05:00
David Nyström
838981f477 Removed openbsd-netcat since it now recides in meta-networking
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-01-18 14:48:05 +01:00
David Nyström
5ac786971c Added openvswitch recipe
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
43c6da9f1b Added openflow recipe
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
5ed3b6bdc2 Added openbsd-netcat recipe, libvirt dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
9f60c7d889 Added netcf recipe, libvirt dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00