Commit Graph

2214 Commits

Author SHA1 Message Date
Bruce Ashfield
3381e4d5ed lxc: install initscripts
lxc comes with sysvinit and systemd initscripts that autostart
containers and check for required services. So we should be installing
and enabling them.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-30 00:18:05 -05:00
Bruce Ashfield
d00ef6ceae libvirt: uprev to 1.2.12
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-27 12:44:47 -05:00
Bruce Ashfield
83d8f3e0c5 libvirt: correct libvirt-python checksums
The uprev to 1.2.11 had the incorrect libvirt-pthon checksums, we
correct them here.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-20 15:11:57 -05:00
Bruce Ashfield
9adfffc345 libvirt: uprev to 1.2.11
Other than updating the checksums, no other significant differences are
present in the 1.2.8 -> 1.2.11 update of libvirt.

Sanity testing passes, so we do the update.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-20 14:17:34 -05:00
Bruce Ashfield
4eee3730ff lxc: uprev to 1.0.7
lxc 1.0.7 is available, and integrates two patches that we were carrying
against 1.0.6 .. so we do the update, and drop the two busybox patches.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-20 14:16:19 -05:00
Wenzong Fan
c0423005b3 lxc: add PACKAGECONFIG for selinux
Add PACKAGECONFIG for 'selinux', otherwise there would be warnings like
below:

WARN: lxc: lxc rdepends on libselinux, but it isn't a build dependency?

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-12-03 10:19:56 -05:00
Wenzong Fan
48c1f0666b libvirt: add PACKAGECONFIG for audit, libcap-ng
Add PACKAGECONFIG for audit, libcap-ng, otherwise there would be
warnings like below:

WARN: libvirt: libvirt-virsh rdepends on audit, but it isn't a build dependency?
WARN: libvirt: libvirt-virsh rdepends on libcap-ng, but it isn't a build dependency?
WARN: libvirt: libvirt rdepends on audit, but it isn't a build dependency?
WARN: libvirt: libvirt rdepends on libcap-ng, but it isn't a build dependency?
WARN: libvirt: libvirt-libvirtd rdepends on audit, but it isn't a build dependency?
WARN: libvirt: libvirt-libvirtd rdepends on libcap-ng, but it isn't a build dependency?

Both audit and libcap-ng should be enabled/disabled along with selinux
since all of them are from meta-selinux.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-12-03 10:19:56 -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
David Nyström
8d0a4ff947 Remove david.nystrom from MAINTAINERS
I've been a ghost on the list for ages, I think its long overdue to
remove me from the maintainers list.

Signed-off-by: David Nyström <david.c.nystrom@gmail.com>
Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-12-01 10:49:10 -05:00
Josep Puigdemont
fec41fc98e lxc.cfg: remove unnecessary kernel configuraitons.
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-12-01 10:49:06 -05:00
Bogdan Purcareata
c6b10c569d lxc: add unprivileged Busybox containers support
Integrate 2 upstream patches that enable creating unprivileged Busybox
containers.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-11-03 08:04:39 -05:00
Bogdan Purcareata
b0745517d1 lxc: fixup VPATH builds
Rework patch 5b57bf462b [lxc: fixup VPATH builds]
since the new version of LXC refactored one of the files and it no longer
applies. Provide a fix for what's left.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-10-02 22:57:10 -04:00
Bogdan Purcareata
246fc0bfaf lxc: Update version to 1.0.6
Also remove patch file that no longer applies.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-10-02 22:57:10 -04:00
Josep Puigdemont
7a7254d6d0 lxc: build API docs only when required
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-10-01 00:58:39 -04:00
Bruce Ashfield
e7c3ee2a60 linux-yocto: update bbappends
Updating the bbappends for the kernel to match the latest oe-core/yocto
1.7 versions. We drop 3.4, since it is no longer supported and add a
3.17 bbappend.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-10-01 00:56:15 -04:00
Olivia Yin
65202ced07 libvirt: uprev to v1.2.8
Signed-off-by: Olivia Yin <r63875@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-29 10:25:59 -04:00
Bruce Ashfield
85f38bd2ec irqbalance: remove old versions
There's no need to carry three versions of irqbalance, so we keep the
latest, and drop the older variants.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-29 10:21:16 -04:00
Zibo Zhao
97e1bb100c Add udev dependency for multipath-tools package
mutipath-tools package has build time dependency on udev.
Without it, following build error will occur:
| discovery.c:14:21: fatal error: libudev.h: No such file or directory
| compilation terminated.
| make[1]: *** [discovery.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| config.c:8:21: fatal error: libudev.h: No such file or directory
| compilation terminated.
| make[1]: *** [config.o] Error 1
| structs.c:8:21: fatal error: libudev.h: No such file or directory
| compilation terminated.
| make[1]: *** [structs.o] Error 1

Add udev into DEPENDS to avoid build failures.

Signed-off-by: Zibo Zhao <zibo.zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-25 08:17:20 -04:00
Alexey Firago
0bf1cabe6b criu: add recipe for v1.2 release
Building and basic functionality verified on Wandboard-dual
with linux-wandboard_3.10.17.

Signed-off-by: Alexey Firago <alexey_firago@mentor.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-19 11:14:47 -04:00
Chong Lu
f5d690a773 lxc: fix RDEPENDS on bash
Split a ${PN}-template pkg to put ${datadir}/lxc/templates/, and debash in
${datadir}/lxc/hooks/* since the checkbashisms shows there are no bashism, so
use /bin/sh.

checkbashisms is from devscripts package:
http://packages.ubuntu.com/trusty/devscripts

Bash scripts:
lxc/usr/share/lxc/hooks/mountcgroups:#!/bin/bash
lxc/usr/share/lxc/hooks/ubuntu-cloud-prep:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-debian:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-openmandriva:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-archlinux:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-centos:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-plamo:1:#!/bin/bash -eu
lxc/usr/share/lxc/templates/lxc-ubuntu-cloud:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-opensuse:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-gentoo:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-altlinux:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-sshd:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-ubuntu:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-cirros:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-busybox:1:#!/bin/bash
lxc/usr/share/lxc/templates/lxc-fedora:1:#!/bin/bash

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-04 15:39:36 -04:00
Bruce Ashfield
b944551742 protobuf: fix build/source split for libdir fix
Ensure that we modify the libdir in the build directory, not the
source directory, to respect the splitting of source and build.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-27 15:07:22 -04:00
Zibo Zhao
5d8233a699 protobuf: fix ptest compile errors
While buiding protobuf ptest on Centos 6.4, the build
failed with errors:

...libprotobuf.so: undefined reference to `memcpy@GLIBC_2.14'

This is due to protobuf.pc still contains /usr/lib64
as libdir which are not good for cross compiling.
Replace it with proper sysroot path.

Signed-off-by: Zibo Zhao <Zibo.Zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-27 12:31:09 -04:00
Liviu Gheorghisan
a04aeb9ad9 multipath-tools buildfix: added '-brokensep' to autotools
This is required because the build failed at do_install task.

| DEBUG: Executing shell function do_install
| NOTE: make -j 64 LIB=/usr/lib exec_prefix=/usr libdir=/usr/lib DESTDIR=/media/sdd1/fb/ligh/scm/cgl-upstream/build-qemuppc/tmp/work/ppc7400-poky-linux/multipath-tools/0.4.9+gitrAUTOINC+d3683ab18b-r0/image install
| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: /media/sdd1/fb/ligh/scm/cgl-upstream/build-qemuppc/tmp/work/ppc7400-poky-linux/multipath-tools/0.4.9+gitrAUTOINC+d3683ab18b-r0/temp/run.do_install.34183:1 exit 1 from
|   exit 1

ERROR: Task 2 (poky/meta-virtualization/recipes-extended/multipath-tools/multipath-tools_git.bb, do_install) failed with exit code '1'

Signed-off-by: Liviu Gheorghisan <liviu.gheorghisan@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-27 12:29:41 -04:00
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