Commit Graph

2021 Commits

Author SHA1 Message Date
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
David Nyström
88a7e97b9b Add kernel config fragment to allow OVS QoS service
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-08-25 01:24:51 -04:00
Bruce Ashfield
7c45e667ac python: replace FILESPATH with FILESEXTRAPATHS_prepend
redefining THISDIR and using FILESPATH is no longer required in a
"modern" bbappend, and in fact breaks other layers that also patch
python.

Removing THISDIR and using FILESEXTRAPATHS_prepend fixes both issues.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-21 21:37:22 -04:00
Bruce Ashfield
ef07008206 libvirt: fix overly aggresive packaging
During the 1.1.1 uprev, a debug change of overly aggressive packaging
was left in place. The restores the previous packaging divisions.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-16 23:03:15 -04:00
Bruce Ashfield
5c9d22f016 libvirt: move python PACKAGECONFIG into main recipe
The libvirt-python.inc manipulation of PACKAGECONFIG meant that the default
configuration options of the libvirt recipe never fired, since the variable
had an assignment and the lazy set of the configuration values never
applied to the build.

Moving the python PACKAGE_CONFIG options into the main recipe, and ensuring
that PACKAGE_CONFIG_${PN} is used for libvirt-python means that most builds
will now use the default configuration.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-15 08:49:59 -04:00
Bruce Ashfield
dd0c48bd13 libvirt: update to 1.1.1
Updating to the 1.1.1 libvirt release. Changes from the 1.0.3 recipe include
a fix/workaround for the:

 ../src/.libs/libvirt.so: undefined reference to `virNetTLSInit'

That is seen on some machines. The current fix is to explicilty link against
the library which provides the definition. A smarter fix via libtool may
be possible, but was elusive at the time of writing this patch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-15 08:49:59 -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
Mark Asselstine
a4565b8ce7 libvirt: fix python script's improper paths
libvirt generates several python scripts using its python/generator.py
script. This uses the PYTHON variable, which in our case will be a
full path to the sysroot that will not exist on the target. For this
we are patching libvirt to allow for (but not require) TARGET_PYTHON
to be defined and used when generating these python scripts.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-12 23:46:49 -04:00
Mark Asselstine
7dfc79162c iasl: Add Intel ACPI license information
The iasl package is licensed under the Intel ACPI license. This is a
variation of the MIT license but with enough modification that we
don't want to mark it as MIT. Previously building this package would
warn about the missing license. With this change we are providing a
clear text copy of the license and calling this license out in the
iasl recipe to make the warning go away and to ensure we are clearly
defining this package's license information.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-10 22:47:11 -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
8b2a6e65c6 lxc: create lxc cache directory
Many LXC templates expect the cache directory to exist and use it without
necessarily checking if it exists. Normally the Makefile would create this
directory but since /var/cache is volatile we must use the volatile system to
create this directory at boot, or when the package is installed.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-13 23:06:12 -04:00
Mihai Prica
84ff6d7447 linux-yocto: Added 3.8 kernel bbappend
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-07-08 23:06:40 -04:00
Bruce Ashfield
64f44848c0 busybox: remove SRC_URI reference to awk -F patch
The commit "busybox: remove awk -F patch" missed the SRC_URI
update for the dropped patch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-08 22:15:06 -04:00
Bruce Ashfield
40cba01e33 busybox: remove awk -F patch
The awk patch being carried by meta-virtualization is part of the
1.21.1 busybox release. So we can drop it from the bbappend.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-06 22:47:09 -04:00
Ting Liu
37b6f00ddd iptables: Follow OE-Core update to 1.4.19.1 version
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-05 23:42:02 -04:00
Ting Liu
4c1c13675d busybox: Follow OE-Core update to 1.12.1 version
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-05 23:41:54 -04:00
Mark Asselstine
9fe09ac859 libvirt: make ebtables a PACKAGECONFIG
This is a bit ugly since ebtables isn't controlled via
--with/--without-PACKAGE but we can achieve the same result using the
cached path variable. Since there are no static hooks into ebtables it
doesn't get picked up via the automatic RDEPENDS so we also ensure
that we add the RDEPENDS explicitly here.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-28 14:08:48 -04:00
Joe Slater
a668e81713 libvirt: use 4 fields for PACKAGECONFIG[]
As per the PACKAGECONFIG documentation "You can omit any argument you
like but must retain the separating commas".

If we do not retain the separating commas, we might get parsing
errors, or, worse, we will think we depend on many items that we do
not enable.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-28 14:08:40 -04:00
Thomas Tai
422934f846 libvirt: fix libvirtd crash if path part of URI is missing
If the user forgets to include the path portion of the URI, instead of
receiving an error message, libvirtd crashes.

So for example attempting to make this call will cause libvirtd to
fall over.

virsh -c qemu+ssh://root@my.host.com list
(forgetting the trailing /system after the host name)

The reason for the crash is that libvirtd is trying to output an error
message with a uninitialized variable. This problem is already fixed
in the upstream so applying this fix to our tree allows this issue to
be avoided.

Signed-off-by: Thomas Tai <thomas.tai@windriver.com>
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-28 14:08:23 -04:00
Mark Asselstine
c4432c79f9 libvirt: switch to use volatile system for directory creation in /var/run
libvirt relies on its Makefile's install rules to create several
directories in /var/run/libvirt. The use of ALLOW_EMPTY_ allows these
to be included in the RPM, however, they are cleared out at boot by
the volatile system. This causes issues since the libvirt runtime does
not check for the existence of these directories prior to attempting
to create files in them, resulting in errors. Here we add to the
volatiles allowing the required directories to be created at boot or
when the volatiles are updated.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-28 14:05:48 -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
Joe Slater
1fd6f2aa87 irqbalance: disable numa by default
Create a PACKAGECONFIG[] for numa.  This will disable it
by default.  The current behavior is auto-detect and will
vary depending on when numactl is built.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-27 13:40:20 -04:00
Amy Fong
16811e532c Uprev irqbalance to 1.0.5
Uprev irqbalance to the latest version.

  * consolidate logging
  * Implement user policy script callout
    (http://code.google.com/p/irqbalance/issues/detail?id=35)
  * Replace fscanf(%as) by getline
  * manpage: Improve the readability of the --banirq text
  * glib-local: ad call for g_list_remove

Also splitting files into inc and bb files.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-27 13:40:07 -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
Ting Liu
a15fcfb678 libvirt: use libexecdir instead of hard code path
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-18 00:25:13 -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
Joe Slater
7c1e073e8c libvirt: move libvirt-guests.sh to /etc/init.d
The script does not seem to meet the definition
of what should go into /usr/libexec and is a superset
of a normal "service" script, so we move it to
/etc/init.d.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-30 16:58:26 -04:00
Lei Yang
334ef83d43 dev86: add "COMPATIBLE_HOST" in the recipe
dev86 is only used for x86/x86-64

Signed-off-by: Lei Yang <lei.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-30 16:58:20 -04:00
Lei Yang
e3fd5715e3 libvirt: Enable selinux if selinux is available
Enable selinux when "DISTRO_FEATURES" contains selinux

Signed-off-by: Lei Yang <lei.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-30 16:56:01 -04:00
Bogdan Purcareata
c817a8b660 libvirt: add patch to fix thread safety in lxc callback
Patch has been submitted upstream (22 mar 2013) after the release of
Libvirt 1.0.3 (5 mar 2013). Updated to work against libvirt 1.0.3.
Please see http://www.redhat.com/archives/libvir-list/2013-March/msg01353.html
for original patch.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.net>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-24 21:01:50 -07: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
98093ac9ab lxc: use four fields for PACAKGECONFIG[] info
To be safe, we specifiy all four possible fields
even if some trailing ones are null.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-24 21:01:32 -07:00
Joe Slater
156b6a6db1 lxc: specify distro
Do not query the host to find out our distro.  We specify the bitbake
variable ${DISTRO} in order to get the desired runtime default config file.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-24 21:01:24 -07:00
Joe Slater
71c83bd62f libvirt: add RDEPENDS on gettext-runtime
The libvirt-guests script needs gettext.sh which is
in the gettext-runtime package.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-21 18:13:59 -07:00
Bogdan Purcareata
ea1d9e46ad busybox awk: make -F STR interpret escape sequences
Patch implements functionality mentioned in the title and has
been applied to busybox 1.21.0. This patch is included into the
meta-virtualization layer since it provides awk functionality to
the lxc-clone command in the lxc containers package.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-17 09:47:32 -07:00
Bogdan Purcareata
1cbe97b642 lxc-clone: don't let LXC_PATH end in failure
This patch has been included in the upstream repo as the first
patch after LXC 0.9.0 release. Including it in meta-virtualization
for proper functioning of the lxc-clone command.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-17 09:47:19 -07:00
Ting Liu
573186afdc iptables: update bbappend to match oe-core
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-15 10:04:02 -07:00
Paul Eggleton
bae6baf7e6 dmidecode: remove
A newer version is now in OE-Core.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-15 10:03:54 -07:00
Olivia Yin
a767b1b41f libvirt: fix warning of sysctl.d/libvirtd.conf
WARNING: QA Issue: libvirt: Files/directories were installed but not shipped
  /usr/lib
  /usr/lib/sysctl.d
  /usr/lib/sysctl.d/libvirtd.conf

$(DESTDIR)$(prefix)/lib is hardcoded in libvirt Makefile due to following
reason that is stated in the daemon/Makefile.in of libvirt.
    # Use $(prefix)/lib rather than $(libdir), since man sysctl.d insists on
    # /usr/lib/sysctl.d/ even when libdir is /usr/lib64
    @WITH_LIBVIRTD_TRUE@@WITH_SYSCTL_TRUE@install-sysctl:
    @WITH_LIBVIRTD_TRUE@@WITH_SYSCTL_TRUE@  $(MKDIR_P) $(DESTDIR)$(prefix)/lib/sysctl.d
    @WI TH_LIBVIRTD_TRUE@@WITH_SYSCTL_TRUE@  $(INSTALL_DATA) $(srcdir)/libvirtd.sysctl \
    @WITH_LIBVIRTD_TRUE@@WITH_SYSCTL_TRUE@    $(DESTDIR)$(prefix)/lib/sysctl.d/libvirtd.conf

Signed-off-by: Olivia Yin <hong-hua.yin@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-15 10:03:16 -07:00
Bogdan Purcareata
583002d427 lxc-busybox: check when bind-mounting host libdirs
The patch checks bind mounting lib directories when starting a
busybox container on a 64bit platform. Some entries in the host
filesystem are not present but the busybox template expects them
to be there, and thus container start fails.

Please see further details in added patch description.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-15 08:46:09 -07:00
Yao Zhao
22e7b5e92b fix libvirt-python build problem
The current libvirt's config.log:
configure:65065: checking for python
configure:65083: found /usr/bin/python
configure:65095: result: /usr/bin/python
configure:65116: checking for python version
configure:65123: result: 2.7
configure:65137: checking for python platform
configure:65144: result: linux2
configure:65170: checking for python script directory
configure:65206: result: ${prefix}/lib/python2.7/dist-packages
configure:65215: checking for python extension module directory
configure:65251: result: ${exec_prefix}/lib/python2.7/dist-packages

so it will use host python which may quite different with target python.

remove python_incdir.patch and inherit pythonnative.
use PACKAGECONFIG instead of EXTRA_OECONF.
enable python in full PACKAGECONFIG.

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-03 12:26:06 -07:00
Joe Slater
bb8c2c420b openvswitch: functionality sanity test
Instructions for creating a simple bridge that will take
over eth0.  You cannot be executing out of an nfs-mounted
filesystem while setting up the bridge.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-28 00:14:17 -04: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
Mihai Prica
7040db74c3 libvirt: Changed python bindings install location
The libvirt-python files were installed to dist-packages and this
is not part of sys.path in yocto so they were not available to
python. Changed this to site-packages.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-18 21:39:24 -07:00
Mihai Prica
3413d7e8b8 iasl: Fixed broken URL
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-18 21:38:16 -07:00
Bruce Ashfield
273bdbaa50 libvirt: use pkgconfig to control udev
To ensure that libvirt doesn't rely on detection of udev in the environment
or sysroot we can add a PACKAGECONFIG option to control both the enablement
of udev support, and ensure that libpciaccess is added as a dependency,
otherwise configure detects issues such as this:

 | checking for UDEV... yes
 | configure: error: You must install the pciaccess module to build with udev
 | Configure failed. The contents of all config.log files follows to aid debugging

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-18 21:36:00 -07:00
Bogdan Purcareata
c6af28f6e7 containers - lxc-template: enable chroot + chpasswd functionality for Busybox hosts
This patch enables installation of Buysbox containers on Busybox hosts.
Please see patch message for detailed information.

The patch has been submitted and accepted upstream by LXC maintainers.
The functionality hasn't made it to LXC 0.9.0, but will (most probably)
be included upstream in future releases of LXC.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-12 10:17:03 -07:00
Bogdan Purcareata
4d85e67ec2 lxc: remove noldconfig.patch, since it is no longer used
Patch is no longer needed since the removal of LXC 0.8.0 recipe.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-12 10:16:53 -07:00