Commit Graph

1126 Commits

Author SHA1 Message Date
Christopher Clark
e12b76773a xen: retire Qemu packaging from the Xen recipe
Modern Qemu supports Xen and the qemu binary to be used with Xen should
be built with the Qemu recipe.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Christopher Clark
6ca1cd1f24 xen: add RDEPENDS for xen-pygrub and xen-python packages
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Christopher Clark
de56ffb7c8 xen: package the EFI hypervisor binary /boot/xen.efi
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Christopher Clark
c66da6821f wic: add support for bootable pcbios partition with Xen hypervisor
New bootimg-biosxen wic plugin to populate a boot partition for
launching Xen and dom0.

Includes example kickstart wks files to generate disk images to boot
into Xen from PC BIOS.

  eg: wic create directdisk-xen -e xen-image-minimal

and write the resulting image file to a disk for boot.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Christopher Clark
e0884db20b xen: upgrade to 4.12.2
Fixes the build failure with 4.12.0 seen with the newer OE compiler.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Christopher Clark
64eb6f5595 xen: pass compiler flags via Xen-provided variables
Fix the method of passing compiler flags into the Xen build, which is
needed to fix compilation of hvmloader, a 32-bit firmware binary that is
required for Xen to be able to run HVM-mode guest VMs. It must not be
compiled with SSE compiler options enabled, so the Xen build clears
CFLAGS, which is a problem with _FORTIFY_SOURCE present in CC because
it must be paired with a compiler optimization flag that was in CFLAGS.
This change fixes the compilation failure that stated
 "_FORTIFY_SOURCE requires compiling with optimization (-O)".

32-bit ARM needs the TUNE_CCARGS to be retained as passed via CC
to ensure that configure is able to generate binaries for the
correct ABI, so is handled as a separate case.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Christopher Clark
7c4e062505 linux-yocto/xen.cfg: update Xen KConfig fragment entries
CONFIG_XEN_MAX_DOMAIN_MEMORY has been retired since kernel commit:
    197ecb3802c04499d8ff4f8cb28f6efa008067db
    xen/balloon: add runtime control for scrubbing ballooned out pages

CONFIG_XEN_SCRUB_PAGES has been replaced with CONFIG_XEN_SCRUB_PAGES_DEFAULT
since kernel commit: c70727a5bc18a5a233fddc6056d1de9144d7a293
    xen: allow more than 512 GB of RAM for 64 bit pv-domains

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Christopher Clark
5ce7eb1f13 ipxe: fix build with uprev to the latest git revision
Newer version allows for a simpler version of the cross-compile patch,
which is updated in this change.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Christopher Clark
643058d5a5 seabios: upgrade to version 1.13.0 at official URI and switch to python3
Use native python3 for the build as python2 no longer available.
Official seabios release SRC_URI fixes QA warning about using GitHub archives.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:22 -05:00
Phil Coval
a3b36fbb1f docker: fix init script for busybox
Observed issue using BusyBox v1.30.1 not supporting bashism

/etc/init.d/docker.init: line 43: syntax error: unexpected redirection

Change-Id: I9f73564cfb56352fbf7d80723ea938b66eceb5c7
Forwarded: https://lists.yoctoproject.org/g/meta-virtualization
Signed-off-by: Philippe Coval <rzr@users.sf.net>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:54:54 -05:00
Oleksii Kurochko
15e9fc23ec lxc: Backport patch that renames memfd_create() function
When Autotools makes configuration of LXC, the check of
the memfd_create() function fails because __stub_memfd_create and
__stub___memfd_create (The GNU C library defines this for functions
which it implements to always fail with ENOSYS) are defined in Glibc,
which leads to the fact that the macro HAVE_MEMFD_CREATE is not
defined and LXC provides defintion of the memfd_create() function as
static inline which in turn conflicts with a definition from
the <bits/mman-shared.h> file and causes an error:
| In file included from ../../../lxc-3.2.1/src/lxc/conf.c:79:
| <src_path>//lxc/syscall_wrappers.h:77:19: error: static declaration
| of 'memfd_create' follows non-static declaration
| | static inline int memfd_create(const char *name, unsigned int flags) {
| |                   ^~~~~~~~~~~~
| In file included from /usr/include/bits/mman-linux.h:111,
|                  from /usr/include/bits/mman.h:34,
|                  from /usr/include/sys/mman.h:41,
|                  from <src_path>/lxc-3.2.1/src/lxc/conf.c:42:
| /usr/include/bits/mman-shared.h:50:5: note: previous declaration
|  of 'memfd_create' was here
| | int memfd_create (const char *__name, unsigned int __flags) __THROW;
| |     ^~~~~~~~~~~~

Upstream PR: https://github.com/lxc/lxc/pull/3168 (merged)

Signed-off-by: Oleksii Kurochko <olkuroch@cisco.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:54:44 -05:00
Bruce Ashfield
f2f36a8061 kernel: allow fragment re-use from any aware kernel
The kernel fragments contained in this layer could not easily
be consumed by any fragment aware kernel not called "linux-yocto".

To make them easier to include, we make the bbappend more generic,
to match any linux*.bb recipe (note: this means it will match
things like linux-atm.bb as well).

To avoid adding the fragments to recipes that can't use them,
or to a version that hasn't been valided, we use the LINUX_VERSION
variable to pull out the major/minor kernel release and then
include a specific version of the .inc file.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-26 08:53:51 -05:00
Bruce Ashfield
324696b9a9 kernel: add v5.4 bbappend
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-21 12:49:51 -05:00
Bruce Ashfield
b252576ed6 kernel: drop v4.19 bbappend
4.19 has been dropped from core, so we drop our bbappend.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-21 12:49:19 -05:00
Changqing Li
0adc4c38fc hook_support.py: convert to python3
python2 has been removed from oe-core, convert the scripts
to python3 to avoid runtime error like:
/usr/bin/env: 'python': No such file or directory'

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-20 12:43:20 -05:00
Ricardo Salveti
b19fe49b67 docker-ce: allow custom build tags via packageconfig
As done by the docker-moby recipe, move the definition of the default
build tags outside do_compile and let the docker build tags be
customized via the packageconfig options set by the recipe.

This is required for enabling seccomp support during build time.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-20 12:43:17 -05:00
Mark Asselstine
b1b4fca4f0 openvswitch: uprev from v2.12 to v2.13
Another straightforward uprev with one fairly large change in the
changelog. The Open Virtual Network component has now been moved to
its own repo (https://github.com/ovn-org/ovn.git). If you were using
this functionality a new recipe will need to be created.

The ptest results are similar to after the v2.12 uprev

    ERROR: 2206 tests were run,
    28 failed unexpectedly.
    62 tests were skipped.

The failed tests were in the following areas:
    checkpatch.at (5)
    ovs-ofctl.at (1)
    tunnel.at(1)
    tunnel-push-pop.at(3)
    tunnel-push-pop-ipv6.at(3)
    dpif-netdev.at (1)
    pmd.at(1)
    ofproto-dpif.at (7)
    bridge.at (2)
    ovsdb-idl.at(1)
    mcast-snooping.at(1)
    packet-type-aware.at(2)

None of these affect core functionality or usecases and are similar to
the results we see with v1.12. If specific usecases are affected by
these failures we should address them on a need to fix basis.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-20 12:43:14 -05:00
Kai Kang
cac0cdf86d ceph: 14.2.6 -> 14.2.7
Update ceph from 14.2.6 to 14.2.7.

* Backport patch to fix compile error
* Replace python with python3 in the script files that /usr/bin/python
  not exists
* Replace runtime dependency python3 with python3-core
  - /usr/bin/python3 is provided by python3-core
  - packagee python3 is provided by python3-modules which in RDEPENDS already

This has been build-only tested.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-13 17:21:52 -05:00
Mark Asselstine
0ab14d82b1 openvswitch: uprev from v2.11 to v2.12
A mostly straightforward uprev. Unfortunately a required patch for
python3 is only available on a non-release branch so we must carry it
in order to build (the discussion on the mailing list was that an
uprev might have avoided this, but this is not the case).

The ptest results are similar to after the v2.11 uprev

    ERROR: 2413 tests were run,
    23 failed unexpectedly.
    383 tests were skipped.

NOTE, however, that they have now marked many tests as 'skipped', such
as the python2 results, so the failed and skipped numbers have
essentially swapped with each other. The failed tests were in the
following areas:
    checkpatch.at (5)
    ovs-ofctl.at (1)
    dpif-netdev.at (1)
    ofproto-dpif.at (6)
    bridge.at (2)
    ovn.at (2)
    ovn-controller-vtep.at (6)

Most were issues with the test or expectations that source code would
be available. There might be an issue around packaging of
"/vswitchd/vswitch.ovsschema" but we should be able to overlook this
for now, as we have with previous versions.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-13 17:21:44 -05:00
Maximilian Blenk
b8c810c608 lxc: Backport patches for keyring options
The added patches allow to set the SELinux context for the session
keyring that is created by lxc. In addition it is possible to disable
the creation of a new session keyring completely.

Upstream PR: https://github.com/lxc/lxc/pull/3260 (merged)

If lxc is executed on a SELinux enabled system, these options can be
used to assign the expected label to the session keyring.

Signed-off-by: Maximilian Blenk <maximilian.blenk@bmw.de>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-13 17:21:41 -05:00
Chen Qi
ad580c253d libvirt: inherit perlnative for pod2man
pod2man is now provided by perlnative instead host.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-11 16:09:02 -05:00
Ricardo Salveti
9593a7dc20 python3-docker-compose: update to 1.25.4
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-11 16:05:29 -05:00
Alistair Francis
eb80f0c0ba xvisor: Initial commit of Xvisor Hypervisor
This commit adds support for building the baremetal Xvisor Hypervisor.

I have only tested this with RISC-V so currently only RISC-V is marked
as a COMPATIBLE_HOST, although Xvisor does support multiple other
architectures.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-11 16:02:16 -05:00
Bruce Ashfield
3a7d446fa9 conf: defer DISTRO_FEATURE check to bbclass processing
We were using USER_CLASS loading to allow conditional checking
on DISTRO_FEATURES, which triggered distro feature specific version
pinning.

It was found that DISTRO_FEATURES set in local.conf is not
consistently available at layer.conf parse time, hence our checks
were not always working as expected (i.e. the version files are
not included).

If we move the DISTRO_FEATURE check to the bbclasses, and use it
to trigger the include, we should have a consistent set of variable
resolution and consistent behaviour.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-10 10:28:38 -05:00
Ming Liu
c1bc3963ba python3-docker-compose: import fastentrypoints
The docker-compose project is using console_scripts which hence imports
pkg_resources which is very slow at starting time, see:
https://github.com/pypa/setuptools/issues/510

This could be workaround by importing fastentrypoints module.

Some tests:

Before the patch, on a colibri-imx8x machine:

$ time docker-compose
```

real	0m5.108s
user	0m4.761s
sys	0m0.272s
```

After the patch, on a colibri-imx8x machine:

$ time docker-compose
```

real	0m3.526s
user	0m3.249s
sys	0m0.235s
```

Have verified the patch with:
https://docs.docker.com/compose/gettingstarted

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-03 17:10:58 -05:00
Ming Liu
9124baa325 python3-fastentrypoints: add recipe
python3-fastentrypoints is a python module that make entry_points
specified in setup.py load more quickly.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-03 17:10:58 -05:00
Jeremy Puhlman
c487e0f511 libvirt: Use python3-native for python install
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-03 17:08:30 -05:00
Stefan Agner
7c42107c71 conmon: compile with journald support if systemd is enabled
Currently conman is compiled without journald support which leads to
this error message when trying to use it (e.g. --log-driver=journald
with podman):
  [conmon:e] Include journald in compilation path to log to systemd journal

Make sure to build with journald backend compiled-in when systemd is in
distro features by adding systemd to DEPENDS (through PACKAGECONFIG).

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-29 10:38:31 -05:00
Bruce Ashfield
7f6f7a4fce conf: remove unneeded preferred versions
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 18:09:11 +00:00
Bruce Ashfield
d4b8bad25b xorg-xserver: make changes conditional on xen distro feature
The changes in this bbappend should only trigger when xen is in
the distro features.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 16:07:51 +00:00
Bruce Ashfield
56c3ce96a2 initscripts: make DISTRO_FEATURE safe
The initscripts bbappend should only activate when virtualization is
in distro features.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 16:05:31 +00:00
Bruce Ashfield
d10d310cbe python: make DISTRO_FEATURE safe
The python bbappend should have only been active when virtualization is
in DISTRO_FEATURES, so we change it to work like the rest of the
bbappends.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 16:01:49 +00:00
Bruce Ashfield
1d47e25958 libibverbs: import frmo meta-cloud-services
To allow ceph to build without meta-cloud-services in the bblayers, we
import libibverbs into meta-virtualization.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
8f6ebd264d python: update bbappend to python3.x
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
2c3206b1e7 xen: trivial: allow parsing in python3 only oe-core
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
407b822068 libvirt: make python3 safe
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
7e9c4e6a46 ceph: update and make python3 safe
Updating the ceph version and making python2 -> python3 subsitutions.
This has been build-only tested.

We can drop one patch, since it is already part of this newer version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
2ffc7a5a6f gunicorn: uprev and make python3 ready
Updating gunicorn so it can function in a python3 only environment.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
a1e3f5c92c singularity: update for python3 support
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
67b237d9a9 criu: python3 update
Updating the version of criu and the install rules to be python3 safe.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
52e67d4e63 python: update support packages to python3
Updating the python support packages to python3. Some packages are
dropped in favour of variants that are in meta-python, some are
updated and update to the new python3 name for others.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
cceef93ba8 python: drop blinker specific version and python2 recipe
We can use the python3 variant in meta-python, and we no longe need
the specific version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-21 17:48:39 +00:00
Bruce Ashfield
dc7ac8d8f6 python: drop python-backports-lzma
Now that we are python 3.3+ only, we no longer need this backport.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-21 17:45:51 +00:00
Bruce Ashfield
e57a346f7d devtools: drop python2 variant of python-sphinx
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-21 17:43:54 +00:00
Bruce Ashfield
c3d92d9942 docker: drop python2 variants
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-21 17:41:08 +00:00
Stefan Agner
91b8d9d9e4 docker-ce: update to v19.03.5
Bump the git hashes to Docker CE v19.03.5. This requires to get the
docker daemon binary from a different location as the symlink from
the latest/ subdirectory has been removed. See also commit deaac5d4b3fa
("hack/make.sh remove "latest" symlink") in the docker-ce repository.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-17 16:29:15 -05:00
Stefan Agner
f569d1bfd5 podman: bump to latest release 1.7.0
Bump to latest podman release 1.7.0. It features improvements to
networking, podman play kube, and systemd unit file integration.
They have also added the podman system reset command, to remove all
existing containers, pods, images, and volumes and reset the system
to its initial state.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-17 16:24:59 -05:00
Stefan Agner
179046584f conmon: bump to version 2.0.9
Bump to latest version 2.0.9. This also makes our Makefile fix obsolete
as the fix has been aplied upstream.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-17 16:24:59 -05:00
Bruce Ashfield
b4c43fd51f Revert "go: add back 1.12 version to avoid compilation failure"
This reverts commit 06dad20a32.
2020-01-09 17:21:12 +00:00
Bruce Ashfield
e54873b8b1 k8s: update to v1.17-beta
Updating to v1.17-beta, so we can drop the GO version 1.12 in
meta-virtualization.

We also drop one patch, since it is part of the upstream now.

Basic sanity tests shows no show-stopper issues.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-09 17:21:12 +00:00