Commit Graph

241 Commits

Author SHA1 Message Date
Bruce Ashfield
a2fab33ace protobuf: respect autotools build/source split
Tweak the ptest build rule to look for artifacts in the build directory
instead of source, since build and source are split on the latest oe-core.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 15:40:23 -04:00
Keith Holman
d6ae4fc295 protobuf: add native package to solve self-dependency
The installation of Google Protocol Buffers python header files
requires the ability to run the "protoc" compiler on the host to
generate the Python header files.  This fix adds a native package
that builds Google Protocol Buffers for the host machine to provide
the compiler that is used to cross-compile the package for the target
machine.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Keith Holman
3cdfb6aac1 protobuf: add examples when test feature enabled
Google Protocol Buffers includes some basic example applications to
show its functionality.  This fix installs these examples to the
target system when the "test" feature is enabled in the configuration.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Keith Holman
124d4185c4 protobuf: replace spaces with tabs in recipe
The recipe uses 4 spaces instead of tabs when indenting.  The recipe
style guidelines indicate that tabs should be used instead.  This
simple fix replaces the spaces with tabs where appropriate in the
recipe file.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Keith Holman
7b424fa19e protobuf: add python support
The compiler generated by Google Protocol Buffers currently includes
support for Python bindings.  However, currently the python files
required to use the generated files are not included on the system.
This fix installs the python header files using python setup-tools
after the compiler is built.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Keith Holman
8bbaf80f47 protobuf: update google protocol buffers to 2.5.0
Upgrade Google Protocol Buffers to version 2.5.0.  The previous
version 2.4.1 is getting quite old (released April 2011).  The newer
version provides bug fixes and more functionality.  This version adds
some speed optimization and the ability to allow multiple enum
symbols to have the same value.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-22 14:42:55 -04:00
Shrikant Bobade
3a14c0a41a libvirt: set path to pkcheck
The libvirt build would fail whenever x11 was in DISTRO_FEATURES and the host
didn't have polkit installed (either no polkit/policykit at all, or just old
policykit).

Ensure that libvirt uses polkit rather than policykit, whether the host has
pkcheck installed or not, and ensure the path is correct per our config.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-18 13:58:30 -04:00
Keith Holman
e51f095569 libvirt: add hooks directory
Libvirt contains the functionality to run hooks when before and after
it performs specific operations.  Hooks are useful in order to perform
actions on the host that occur outside of the VM.  In order to enable
the hooks scripts must exist in a specific directory.  This fix adds
the required directory to the file system.

Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
2014-07-31 15:36:03 -04:00
Maxin B. John
7605c820e4 lxc: Uprev to 1.0.5
Update lxc to latest available version: 1.0.5
Remove already upstreamed patches.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-29 10:05:12 -04: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
Maxin B. John
f485eef9cb kvm-image-minimal: Fix warning
Fix this warning:
WARNING: Function remove_packaging_data_files doesn't exist

The remove_packaging_data_files function is now handled automatically when
"package-management" is not in IMAGE_FEATURES. We should remove the lines,
as they are not needed and might interfere with correct operation of
postinstall scripts.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-16 13:12:41 -04:00
Bruce Ashfield
8242cb3405 README: add meta-filesystems as a referenced layer
libvirt can enable FUSE, which comes from meta-filesystems, so we should
add it as a layer in the README.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-09 09:59:37 -04:00
Bruce Ashfield
bf79051088 libvirt: add fuse PACKAGECONFIG
libvirt will probe and dynamically add fuse support if detected. This
leads to build inconsistencies and errors due to race conditions.

Explicitly adding fuse as a packageconfig option to ensure that it
is consistently added (or removed).

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-09 09:57:44 -04:00
Bruce Ashfield
d4dce51641 linux-yocto*: update missed module_autoload statements
In the updates to the new KERNEL_MODULE_AUTOLOAD format, openvswitch was
missed.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-08 10:05:30 -04:00
Bruce Ashfield
a66fb848db linux-yocto/3.4/3.10: replace module_autoload with KERNEL_MODULE_AUTOLOAD
commit kernel-module-split: Add support for KERNEL_MODULE_AUTOLOAD and KERNEL_MODULE_PROBECONF
in oe-core replaces module_autoload with KERNEL_MODULE_AUTOLOAD, so we must update
the linux-yocto bbappends.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-07 12:14:13 -04:00
Christian Ziethén
7c193419ad linux-yocto_3.14: Replace module_autoload with KERNEL_MODULE_AUTOLOAD
Signed-off-by: Christian Ziethén <Christian.Ziethen@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-07 12:04:49 -04:00
Mihaela Sendrea
51d8fe3e89 libvirt: fix PTEST_DIR
The default PTEST_DIR only works for 32bit.

Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-06-03 11:20:39 -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
Bruce Ashfield
9ae9894c15 libvirt: uprev to 1.2.4
Updating the version of libvirt to 1.2.4. Only small changes are required
to the ptest and python chnages for this new version, but otherwise, all
packaging and build optinos are the same.

Sanity tests show no regressions from 1.2.2.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-14 18:27:09 -04:00
Mark Asselstine
4d8814f0d1 libvirt: allow separated src and build dirs
Poky commit 69b6eaca3d9b635e8a61a0fdbd814b558e91901d [autotools:
Enable separate builddir by default] enforced separate build
directories, which is supported by automake.  Make some minor updates
to the recipes and upstream source to allow builds to work with
separated src and build directories.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-08 12:37:25 -04:00
Mark Asselstine
5b57bf462b lxc: fixup VPATH builds
Poky commit 69b6eaca3d9b635e8a61a0fdbd814b558e91901d [autotools:
Enable separate builddir by default] enforced separate build
directories, which is supported by automake. Unfortunately lxc had a
few make directives which didn't take into account VPATH builds so
fixing them up here to allow the lxc build to complete successfully.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-08 12:37:25 -04:00
Bruce Ashfield
fba0360399 Revert "libvirt: force use of libssh2"
This reverts commit df0678b3c9.
2014-05-07 09:10:58 -04:00
Joe Slater
df0678b3c9 libvirt: force use of libssh2
We add a PACKAGECONFIG[] to deterministically build with
or without libssh2 and add ssh2 to PACKAGECONFIG, so we will
always use it.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-06 00:27:49 -04:00
Joe Slater
0722667aab libvirt: add PACKAGECONFIG[numactl]
configure will check for numa support by default, resulting
in indeterminate configuration.  We add a PACKAGECONFIG[]
to force behavior.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-06 00:27:45 -04:00
Mihaela Sendrea
abf0288953 lxc: Update version to 1.0.1
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-15 19:44:34 -04:00
Mihaela Sendrea
10edbcd8ca lxc: Add ptest support
Install lxc test suite and run it as ptest.

Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-15 19:44:34 -04:00
Bruce Ashfield
7544bfb6ec kernel: update fragments to oe-core 1.6
Now that the 3.14 kernel has been introduced and 3.8 dropped from oe-core,
we need to adjust our configuration fragments accordingly.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-02 09:07:00 -04:00
Bogdan Purcareata
f3498799a8 lxc: bug fixes from upstream
Adding a couple of upstream fixes for lxc:
- follow symlinks when determining if Busybox is statically linked
- don't fail for lxc.network.type = none
- don't fail if no default macvlan mode is specified

More details are available in the individual patches.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-04-01 20:51:49 -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
Mihaela Sendrea
594a85674c libvirt: Update version to 1.2.2
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-03-19 10:58:11 -04:00
Mihaela Sendrea
6d55bc2aa8 libvirt: Add ptest support
Install libvirt test suite and run it as ptest.

Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-03-19 10:58:11 -04:00
Bruce Ashfield
7550a05bb0 libvirt: dnsmaqs not to bind to virbr interface
By default dnsmaqs binds to all interfaces, and this causes 2
small issues:

* At boot time, dnsmaqs daemon will start first and binds to virbr
interface, then libvirtd spawns a second dnsmaqs binds to virbr
(in dynamic mode) which binds to virbr:53 proto UDP (but not TCP)
* If some how, libvirtd daemon starts first then dnsmaqs daemon
will fail to start as libvirtd daemon already binds to virbr:53.

This patch tells dnsmasq daemon to leave virbr alone and let
libvirt uses it.

Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-03-03 11:59:06 -05:00
Bruce Ashfield
8484b64fa3 libvirt: kill the right dnsmasq daemon
Currently when libvirt daemon is stared, the libvirt startup
script tries to kill the already running dnsmasq daemons
(e.g. from /etc/init.d/dnsmaqs).  Also if
"/etc/init.d/libvirtd start" is invoked more than
one time then this will accidentally kills all the dnsmasq
daemon.

This patch makes sure libvirt startup script to kill only the
dnsmasq that spawned by itself.  Also try to avoid killing
dnsmasq if "/etc/init.d/libvirtd start" runs second time.

Signed-off-by: Barton Wensley <Barton.Wensley@windriver.com>
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-03-03 11:55:14 -05:00
Jonas Eriksson
ce991a62d5 libvirt: Disable polkit driver when there is no x11
To avoid having the default build of libvirt depend on virtual/x11
through polkit and consolekit, check for x11 in DISTRO_FEATURES before
enabling the polkit support in the default PKG_CONFIG.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:27 -05:00
Jonas Eriksson
9b5d1d158a libvirt: Use DISTRO_FEATURES to enable Xen support
The Xen drivers in libvirt is needed when the build file system image
and kernel are running as dom0. The parts of the kernel needed to run as
dom0 are controlled by DISTRO_FEATURES, and thus there is no need for
the Xen drivers if DISTRO_FEATURES does not contain 'xen'.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:27 -05:00
Jonas Eriksson
5876038def libvirt: Fix selinux DISTRO_FEATURE check
It seems that a $ was forgotten in the DISTRO_FEATURE check for selinux.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:26 -05:00
Jonas Eriksson
f60073740c libvirt: Change license to LGPLv2.1+
libvirt is to a large extent licensed under LGPLv2.1 (or later) rather
than GPLv2. From my investigations, there are only some tests and a
couple of files under tools are licensed as GPL. Other than that, files
are generally licensed as LGPL. My recommendation is therefore to set
the default license to LGPLv2.1+, and to add a LICENSE_${PN}-ptest that
is set to LGPLv2.1+ & GPLv2+ if a ptest package is added. This is
preferred to avoid having to specify explicit licenses for every other
package, such as the auto generated libvirt-locale-XX packages.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:26 -05:00
Josep Puigdemont
9c6a7d3739 Update Linux Containers to lxc-1.0.0
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:21 -05:00
Bruce Ashfield
20accf6d7c lxc: add missing patch
As reported by Chris Larson, the recipe went in, but not the patch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-18 14:42:02 -05:00
Philip Tricca
323c1bb6f4 xen: Add RDEPENDS block for xendomains script.
I can't explain the dependency on xen-scripts-block as the xendomains
script doesn't invoke any of these scripts directly. Still xendomains
hangs indefinitely without them.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-11 14:29:17 -05:00
Philip Tricca
543d230ad5 xen: Remove dependency on python-setuptools-native.
oe-core fixed some overlap between the python-setuptools-native and
python-distribute-native recently. This made python-setuptools
obsolite. See: http://patchwork.openembedded.org/patch/66085/
The Xen recipe already DEPENDS on python-distribute-native by
inheriting setuptools so we only need to remove the dependency on
python-setuptools-native.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-11 14:29:15 -05:00
Josep Puigdemont
7499d6ce01 lxc: always strdup lxc.rootfs.mount
The reason is that the generic code which handles reading lxc.rootfs.mount
always frees the old value if not NULL. So without this setting
lxc.rootfs.mount = /mnt causes segfault.

This is a backport for lxc-0.9.0 (dora) of the same fix found in
upstream's master, see commits 54c30e29 and 53f3f048.

Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-11 14:29:04 -05:00
Bruce Ashfield
41101a7a51 libvirt: fix python packaging race
The tasks responsible for compiling and installing the python support
were racing against packaging. As a result, a clean build would not
have anything in libvirt-python, but subsequent builds would.

By moving to _appends, we control the order and always get properly
packaged.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 16:41:55 -05:00
Bruce Ashfield
142477933d busybox: update bbappend to match oe-core master
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 14:17:42 -05: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
Bruce Ashfield
c72df0a2d1 libvirt-python: update install and packaging
To work with oe-core master, we need to update the libvirt-python
FILES_* specification to properly pick up and package the support
libraries.

We can also follow the lead of distutils and use a common set of
install arguments for the configuration and install of our nested
libvirt-python support.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 11:36:10 -05:00
Bruce Ashfield
75c11b0d02 libvirt: fix python PACKAGECONFIG dependencies
Since python support is separate from the main libvirt build, we
no longer need to trigger configuration options when python
packageconfig support is added, we simply need to add python to the
package depends.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 11:32:46 -05:00
Amy Fong
43fe4b7d0e package libvirt-python
In 1.2.0, libvirt separated the python components into a separate package.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 11:29:12 -05:00
Bruce Ashfield
8515475890 lxc/autoconf:: allow subdir objects
autoconf-1.14 will fail to configure lxc with the following warning (and
hence error):

  | automake: warnings are treated as errors
  | src/lxc/Makefile.am:79: warning: source file '../include/openpty.c' is in a subdirectory,
  | src/lxc/Makefile.am:79: but option 'subdir-objects' is disabled

So we tell autoconf that subdir objects are fine .. and the issue is solved.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-31 15:44:19 -05:00