Commit Graph

706 Commits

Author SHA1 Message Date
Christopher Clark
b704c689b6 seabios: update SRC_URI to: https://www.seabios.org/downloads/...
According to the latest seabios download instructions,
this is now the preferred source for release downloads.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-08-14 13:00:04 -04:00
Yunguo Wei
bd77388f31 go-fsnotify: switch to new repository on github
fsnotify is changed to new repository on gihub, so adapt this chanage
accordingly to avoid fetch failure.

Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-03-23 17:10:54 -04:00
Jagadeesh Krishnanjanappa
f833971155 gunicorn: replace PN with BPN, to solve fetch failure while building for multilib
The multilib gunicorn (for example lib32-gunicorn) fetch fails with
below error:
-- snip --
--2018-03-07 16:52:09-- https://pypi.python.org/packages/source/g/gunicorn/lib32-gunicorn-19.1.1.tar.gz
Resolving pypi.python.org... 151.101.0.223, 151.101.64.223, 151.101.128.223, ...
Connecting to pypi.python.org|151.101.0.223|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-03-07 16:52:09 ERROR 404: Not Found.
-- snip --

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-03-08 16:20:06 -05:00
Jagadeesh Krishnanjanappa
720a916d83 vgabios: replace PN with BPN, to solve fetch failure while building for multilib
The multilib vgabios (for example lib32-vgabios) fetch fails with
below error:
-- snip --
Location: http://nongnu.askapache.com/vgabios/lib32-vgabios-0.7a.tgz [following]
--2018-03-07 16:45:22-- http://nongnu.askapache.com/vgabios/lib32-vgabios-0.7a.tgz
Resolving nongnu.askapache.com... 192.185.42.228
Connecting to nongnu.askapache.com|192.185.42.228|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-03-07 16:45:22 ERROR 404: Not Found.
-- snip --

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-03-08 16:20:06 -05:00
Valerio De Benedetto
4277759428 add python3-terminal RDEPENDS to docker-compose recipe
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-01-18 10:44:47 -05:00
Dariusz Pelowski
2520ee8670 kvmtool: fix compilation errors
Fixed issues:
Usage of makedev requires including <sys/sysmacros.h> otherwise
the error is raised due to multiple definition in <sys/types.h>.

Add include path to kernel headers required to get kvmtool
compilatioin successful.

Signed-off-by: Dariusz Pelowski <dariusz.pelowski@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-11-06 08:51:03 -05:00
Bruce Ashfield
71dc7faa0c README: document sanity check skip
The variable that must be set to disable the virtualization distro
feature check was not documented in the README ... making it not
so useful.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-22 09:07:38 -04:00
Dariusz Pelowski
df188e48e7 vgabios: don't override the compiler ldflags
Fix for building biossums on genericx86-64 machine, due to QA issue:
ERROR: QA Issue: No GNU_HASH in the elf binary:
'.../0.7a-r0/packages-split/biossums/usr/bin/biossums' [ldflags]
caused by overriding LDFLAGS variable to empty value in project's makefile.

In consequence there's missing LDFLAGS settings from bitbake (including
-Wl,--hash-style=gnu, which causes showing this QA).

Signed-off-by: Dariusz Pelowski <dariusz.pelowski@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-18 18:25:28 -04:00
Dariusz Pelowski
8d3beeb4f4 kubernetes: correct install path
install needs to go to ${D}, not the host path, so we fix up the
offending install lines.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-17 13:18:17 -04:00
Ricardo Salveti
9c4cefcb71 python3-docker: add missing RDEPENDS
Add python3-docker-pycreds, python3-requests and
python3-websocket-client to RDEPENDS for a functional python docker
module (otherwise even import docker fails).

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-17 13:18:01 -04:00
Bruce Ashfield
9d288d62c2 runc: use SRCPV not SRCREV
Ricardo Salveti <ricardo@opensourcefoundries.com> pointed out that
runc-docker was not getting a proper PV due to the use of SRCREV
in the variable.

By switching to SRCPV, we get the right PV for both variants of
runc.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-16 21:56:35 -04:00
Paul Barker
0aec4f1c0f runc: Merge common metadata into inc file
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-16 11:54:24 -04:00
Paul Barker
591367099f runc: Drop inherit goarch
The go bbclass already inherits goarch.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-16 11:54:24 -04:00
Paul Barker
59b0269bdc runc-docker: Drop unused EXTRA_FLAGS
This variable isn't picked up by the runc Makefile anyway as it isn't exported.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-16 11:54:24 -04:00
Paul Barker
37b2f2f3cc runc-opencontainers: Drop unnecessary do_compile_prepend
The "vendor/src" symlink is already created in do_compile in runc.inc.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-16 11:54:24 -04:00
Paul Barker
123cb0a008 netns: Use correct go cross-compiler
The makefile for netns needs to be patched to ensure that we use the binaries
from go-cross and not go-native.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-16 11:54:24 -04:00
Paul Barker
c1cd2d4c69 runc-docker: Disable building recvtty
The recvtty demo/reference application has cross compilation issues when
targeting aarch64 platforms. As it is just a demo application and is not usually
used, we can just patch the Makefile to disable building this application.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-12 21:59:51 -04:00
Paul Barker
638ba96208 sanity-meta-virt: Watch for SanityCheck event
The ConfigParsed event is raised multiple times during a build which resulted
in the sanity warning appearing up to 4 times per build. Instead we should be
watching for the SanityCheck event (this is what the sanity checks in oe-core
watch for).

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-12 21:59:51 -04:00
Paul Barker
1e4530c283 sanity-meta-virt: Make skip variable name layer specific
The variable used to skip the sanity check should be named in a layer specific
way. This will ensure there is no confusion if other layers use a similar sanity
check.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-12 21:59:51 -04:00
Aníbal Limón
89a1121656 docker/containerd: Export GOARCH to fix build in arm64
If the GOARCH isn't set CGO took the ARCH from the host and tries
to use -m64 flag that isn't available in aarch64 compiler.

...
| # github.com/opencontainers/runc/libcontainer/system
| aarch64-linaro-linux-gcc: error: unrecognized command line option
'-m64'
| # github.com/containerd/console
| aarch64-linaro-linux-gcc: error: unrecognized command line option
'-m64'
| Makefile:60: recipe for target 'shim-static' failed
...

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-09 12:38:45 -04:00
Dariusz Pelowski
1f99ba19c8 xen-image-minimal: corrected popoulation xen.gz for syslinux
syslinux images cannot boot because they're missing of xen.gz
file. Current poky doesn't use populate() function, instead
syslinux_populate() can be used.

Signed-off-by: Dariusz Pelowski <dariusz.pelowski@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-09 12:38:08 -04:00
Bruce Ashfield
4c0363bc9b cni: rprovide kubernetes-cni
Many distros make a 'kubernetes-cni' package available. This is no
more than a binary extracted set of 'cni' plugins. We already have
'cni' available in the build system, so we make sure it rprovides
kubernetes-cni to keep conflicts and confusion at a minimum.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-05 15:50:41 -04:00
Bruce Ashfield
9d4da563b0 containers: introduce kubernetes orchestration
Introducing the kubernets components for container orchestration.

The packaging introduced here creates the framework for more
advanced kubernetes configurations. By itself, it doesn't do much
but it makes the components available to be configured and deployed
as master/worker nodes.

It integrates with the previously introduced cni and cri-o
components available in meta-virt.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-05 11:11:01 -04:00
Paul Barker
fdee07aadc runc: Don't override GOARCH or GOROOT
These variables are now set correctly by go.bbclass in oe-core. Changing them to
point at the native sysroot just leads to build errors in some cases, for
example when the target and host have matching GOARCH but not matching c
libraries.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-05 10:44:04 -04:00
Paul Barker
a1085de531 runc: Use correct go cross-compiler
The makefiles for both providers of runc need to be patched in similar ways to
ensure that we use the binaries from go-cross and not go-native.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-05 10:44:04 -04:00
Paul Barker
9a24b3eb63 runc: Drop obsolete patch
This patch hasn't been used in a long time.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-05 10:44:04 -04:00
Paul Barker
81944693a0 netns: Update to v0.2.1
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-05 10:44:04 -04:00
Dariusz Pelowski
5d564365cf seabios: uri corrected to https
There's a problem with fetching SeaBIOS source code via http.
SeaBIOS server returns 308: Permanent Redirect which fails on
wget 1.17.1. The official source code uri goes to https, this
patch aligns SRC_URI to officialy provided by SeaBIOS team.

Signed-off-by: Dariusz Pelowski <dariusz.pelowski@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-05 10:44:00 -04:00
Christopher Clark
58e10e543f xen-guest-image-minimal: remove lines modifying DISTRO_FEATURES
Remove recipe lines modifying DISTRO_FEATURES that were intended to
simplify the non-x86 x11 image dependencies, but did not.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Reported-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-04 16:54:37 -04:00
Christopher Clark
f0e708ea8c xen-guest-image-minimal: fix making PCI a x86-only dependency
The logic for restricting the xen-pciback kernel module to x86-only
images was incorrect, resulting in the IMAGE_INSTALL_x86 and _x86-64
variables causing the IMAGE_INSTALL variable contents to be
overridden and incomplete.

This correction removes the specialized IMAGE_INSTALL_x86 and _x84-64
variables. The replacement logic causes a value with
conditionally-populated contents to be added to the IMAGE_INSTALL
variable.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-04 16:54:36 -04:00
Paul Barker
44e74c9aa7 runc-opencontainers: go.bbclass compile fixes
These fixes are needed due to updates to go.bbclass in oe-core. See commit
01a8d45370 for more information.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-04 16:54:33 -04:00
Paul Barker
83592435dc runc-opencontainers: Update to v1.0.0-rc4
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-04 16:54:33 -04:00
Chen Qi
c715bf7c30 README: update to include information about bbappend inclusion
Update README file to include information about bbappend file inclusion,
telling the users that 'virtualization' needs to be in DISTRO_FEATURES
to make some bbappend files to be effective.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-02 09:39:26 -04:00
Chen Qi
5b70104bf1 linux-yocto: make bbappend have effect conditionally
Make these bbappend files to take effect only when DISTRO_FEATURES
contain 'virtualization'. Otherwise, we would meet failure failure
at system booting up qemux86. Related logs are as below.

 systemd-modules-load[113]: Failed to insert 'kvm_amd': Operation not supported
 systemd-modules-load[113]: Failed to insert 'kvm_intel': Operation not supported

Also, make kvm related settings depend on the 'kvm' distro feature.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-02 09:39:26 -04:00
Chen Qi
bfba140b83 sanity-meta-virt.bbclass: add class for bbappend files checking
Add a new class, sanity-meta-virt.bbclass, to check for whether necessary
settings are available for bbappend files in this layer to be effective,
and warn users if not.

In addition, a variable SKIP_SANITY_BBAPPEND_CHECK is added to enable users
to explicitly skip the checking to avoid unwanted warnings.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-02 09:39:26 -04:00
Bruce Ashfield
b7febd5592 virtualization: runv: Hypervisor-based Runtime for OCI
Introducing runv, which is a Hypervisor-based Runtime for OCI.

runV is compatible with OCI. However, due to the difference between
hypervisors and containers, the following sections of OCI don't apply to runV:

 - Namespace
 - Capability
 - Device
 - linux and mount fields in OCI specs are ignored
 - Hypervisor

The current release of runV supports the following hypervisors:

 - KVM (QEMU 2.1 or later)
 - KVM (Kvmtool)
 - Xen (4.5 or later)
 - QEMU without KVM (NOT RECOMMENDED. QEMU 2.1 or later)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-02 09:16:07 -04:00
Bruce Ashfield
176715435e containers: CNI: introduce container networking interface
Introducing the CNI framework to allow platforms such as
kubernetes + cri-o to use thm for networking configuration.

The networking plugins are installed, but are not configured
by default to create any specific networking interfaces, which
are the responsibility of the image and distribution.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-02 09:15:58 -04:00
Bruce Ashfield
0ff8923f08 containers: cri-o: kubernetes runc backend
To prepare for native kubernetes support without docker on a target,
we integrate the cri-o incubator project.

cri-o is meant to provide an integration path between OCI conformant
runtimes and the kubelet. Specifically, it implements the Kubelet
Container Runtime Interface (CRI) using OCI conformant runtimes.
The scope of cri-o is tied to the scope of the CRI.

This initial introduction is build + packaging only. It is expected
that configuration and deployment tweaks are done at the distro
level.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-10-02 09:15:42 -04:00
Bruce Ashfield
6c3a6c31cc oci-runtime-tools: fix multi hook specification
The following commit:

   commit df3a46feb971386f922c7c2c2822b88301f87cb0
   Author: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
   Date:   Tue Aug 1 17:39:39 2017 +0800

    implement add/set function for hooks items

    Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>

Breaks the ability to specify multiple hooks with the same path
(i.e. a shell script that does different things based on arguments).

The author's intent with the change is unclear, so rather than fix
it, we revert it for now.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-20 23:56:25 -04:00
Bruce Ashfield
4557a1b286 oci-runtime-tools: update to 0.1.0
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-20 11:01:28 -04:00
Christopher Clark
33e8e20d3c xen-guest-image-minimal: Fix non-x86. Select x11 via IMAGE_FEATURES.
Fix the image for non-x86, both with and without x11 included.

* Only install xf86-video-vesa on x86 platforms as it is not
  available elsewhere.

* In the absence of xf86-video-vesa (ie. on non-x86 platforms)
  enable opengl and remove wayland from IMAGE_INSTALL to
  satisfy build requirements for x11.

* Use IMAGE_FEATURES instead of DISTRO_FEATURES to enable x11
  inclusion in the image.

* Verify the required DISTRO_FEATURE of 'xen' and if enabled, 'x11'.

* When building the Xserver with Xen in DISTRO_FEATURES, on non-x86,
  turn off glamor by default, to remove dependency on egl.
  Introduces: xserver-xorg_%.bbappend

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-19 09:22:55 -04:00
Christopher Clark
55b1cbe55d xen: Replace 'inherit gettext' with explicit gettext-native dependency
This fixes the build when libc-locale-code is not a DISTRO_FEATURE.

xen's configure script checks for xgettext and will abort if not found.

xgettext is provided by the gettext-native package but not by
gettext-minimal-native. This means that "inherit gettext" is not
sufficient to satisfy Xen's build requirements: gettext-native is
required.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-19 09:22:55 -04:00
Christopher Clark
644b66f83d xen: patch to fix ARM libxc missing variable init
Fix Xen 4.9.0 build error on ARM architecture with gcc 7:
Import upstream Xen patch 88bfbf90e35f1213f9967a97dee0b2039f9998a4

Error was:
xc_dom_arm.c:229:31: error: 'domctl.u.address_size.size' may be used
uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-19 09:22:55 -04:00
Christopher Clark
6aa755e493 xen-image-minimal: Make kernel-module-xen-pciback a x86-only dependency
This commit fixes the xen-image-minimal build for non-x86 arch with PCI enabled.

The Linux kernel option CONFIG_XEN_PCIDEV_BACKEND currently depends on X86.
This means that the xen-pciback kernel module cannot be included in this image
for non-x86 architecture builds, so don't attempt to install it in that case.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-19 09:22:55 -04:00
Pascal Bach
d16d4acc60 python3-docker-compose: add version 1.16.1 + dependencies
This requires some packages as well as the pypi.bbclass from meta-python.

It uses Python 3 as I don't think it makes sense to use Python 2 anymore.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-15 15:21:18 -04:00
Bruce Ashfield
e83556a3f4 oci-image-tools: fix LICENSE file location
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-14 16:00:43 -04:00
Bruce Ashfield
a83bc2b936 docker-distribution: adjust to new go.bbclass
We want to build in ${S}, so we now require an explicit cd ${S}
to avoid landing in the build directory.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-14 16:00:43 -04:00
Christopher Clark
1d9e1bd99d xen: Add menuconfig task and enable menuconfig from devshell
Xen supports Kconfig for configuring optional build settings.
This commit adds the menuconfig task to simplify interactive use:

    bitbake xen -c menuconfig

and also ensures that menuconfig works when using the devshell.
This change adds ncurses-native as a build dependency.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-14 16:00:43 -04:00
Jason Wessel
01a8d45370 nets, docker, runc, oci-*tools: go.bbclass compile fixes
Recently in the oe-core the go.bbclass changed and requires the
defition of the GO_IMPORT variable.  This was intended to simplify how
the compilation works with go packages and it is still a work in
progress.

This patch set makes the recipes compatible to generate the same end
result as before using the new go.bbclass from oe-core.

Any patches that were included in the recipes had to have the paths
adjusted because the new go.bbclass manipulates the notion of S to be
S + "src" + "$GO_IMPORT" internally for the purpose of unpack, patch
and compile.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-14 09:49:00 -04:00
Bruce Ashfield
718592922b oci-image-tools: uprev to 0.2.0-dev
To work with OCI spec v1.0 images/containers we need to update our
tools.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-13 17:23:30 -04:00