Commit Graph

706 Commits

Author SHA1 Message Date
Bruce Ashfield
537971d35a kernel: add linux-yocto 4.12 bappend
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-13 12:50:02 -04:00
Mark Asselstine
ba35378ce5 criu: uprev to version 3.4
Our current version of criu is about a year old and has some
compilation issues with the latest gcc (currently it is
unbuildable). Since the version of criu and the kernel version are
fairly tightly coupled it wouldn't be surprising of this old criu
would also be exhibiting some runtime issues with our fairly new
kernel version.

With the above in mind we uprev to criu v3.4 which was recently
released. This requires several of the patches to be updated (mostly
context). We are able to drop the selinux related change as RSS
prevents the situation this was working around from happenning.

This was validated using https://criu.org/Simple_loop (and a few
variants).

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-10 22:36:02 -04:00
Bruce Ashfield
8d40af1278 Revert "criu: Correct the installation directory for python modules"
This reverts commit 90c1046b58.
2017-09-10 22:35:31 -04:00
Alexandru Tiniuc
a5343f76b4 singularity: Added dependency to e2fsprogs-mke2fs
While the recipe was functional under an image based on core-image-
full-cmdline, when tested with core-image-minimal runtime issues
appeared: Singularity was unable to create a filesystem within the
container. This change fixes this issue.

Signed-off-by: Alexandru Tiniuc <tiniuc.alexandru@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-09-05 13:27:35 -04:00
Jianchuan Wang
90c1046b58 criu: Correct the installation directory for python modules
Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-31 15:24:24 -04:00
Alexandru Tiniuc
9b0c0178ba Added dependency to Bash
If Bash is not included by any other recipe, the recipe fails at the QA
check. This commit adds Bash to the list of dependencies, preventing
this issue.

Signed-off-by: Alexandru Tiniuc <tiniuc.alexandru@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-31 15:24:23 -04:00
Jason Wessel
62dbe8c300 openvswitch: Fix compile problems with i586-nlp
If you have in your $CC from the compiler template any kind of
directive which contains a comma character it is going to cause ovs to
not build due to the macro expansion in the Makefile:

CC = $(if $(C),env REAL_CC="'"$CC"'" CHECK="$(SPARSE) -I $(top_srcdir)/include/sparse $(SPARSEFLAGS) $(SPARSE_EXTRA_INCLUDES) " cgcc $(CGCCFLAGS),'"$CC"

Put more simply:

CC = $(if $(C), CONFIGURE_CC_DEFINITION, cgcc args CONFIGURE_CC_DEFINITION)

The CONFIGURE_CC_DEFINITION for the i585-nlp definition had
"-Wa,-momit-lock-prefix=yes".  The comma there caused a strings to
"break" in the wrong place in the $(if) macro and the build of recipe
will fail with the error shown below:

/bin/sh: -c: line 1: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 3: syntax error: unexpected end of file

The solution is to transform the "-Wa," -> "-Xassembler ".

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-29 08:43:11 -04:00
Chunrong Guo
99013658ea libvirt: fix build failure, failing QA check
The build is failing due to a failing QA check:

   ERROR: libvirt-1.3.5-r0 do_package_qa: QA Issue: /usr/lib/libvirt/ptest/tests/tests/check-file-access.pl
   contained in package libvirt-ptest requires /usr/bin/perl,
   but no providers found in RDEPENDS_libvirt-ptest? [file-rdeps]

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-29 08:43:11 -04:00
Christopher Clark
b757de0da6 xen: Only generate long-double-32.h if absent
Only copy long-double-64.h to create long-double-32.h if it is not
already present.

Compile tested with both ARM 32-bit build and x86 64-bit build.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-29 08:43:11 -04:00
Christopher Clark
add137fd22 [PATCH] xen: remove xen-bootimg.inc
This inc file has not been used within meta-virtualization since:
    Date:   Tue Sep 10 21:02:41 2013 -0400
    commit 214c4715f0

and has needed updating since the changes in:
    Date:   Wed Feb 24 01:23:58 2016 -0800
    git://git.openembedded.org/openembedded-core
    commit e38c94d6bf83ed3ca7f046d9503e81b927487bf2

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-29 08:43:03 -04:00
Alexandru Tiniuc
7677b8214a Added README file
Signed-off-by: Alexandru Tiniuc <tiniuc.alexandru@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-29 08:42:25 -04:00
Alexandru Tiniuc
06bc17d1f0 Added recipe for the Singularity container platform.
Singularity is a container platform built on the principle of mobility
of compute.  It is designed to be used on HPC clusters and, unlike
Docker, it does not require root access to mount an image. In addition,
it can use Docker images out-of-the-box and it can pull them from the
Docker Hub. For more information, see singularity.lbl.gov

This recipe enables building the Singularity container platform.
Additionally, it creates a symlink from /usr/bin/python3 to
/usr/bin/python, as well as a symlink to where python3 expects
CA certificates to be.

I have tested it on a Raspberry Pi 3: I successfully built and run
arm32v7 images from Docker Hub. Make sure you have the right image for
your CPU architecture: it defaults to amd64.

Signed-off-by: Alexandru Tiniuc <tiniuc.alexandru at gmail dot com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-29 08:42:24 -04:00
Yi Zhao
70a36aa088 docker-distribution: update to 2.6.2
CVE-2017-11468 is fixed in this release.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2017-11468

Release note:
https://github.com/docker/distribution/releases/tag/v2.6.2

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-24 09:55:44 -04:00
Christopher Clark
46149a8e0f xen-image-minimal : change SYSLINUXCFG to SYSLINUX_CFG
The SYSLINUXCFG variable was renamed to SYSLINUX_CFG in poky and
openembedded-core with the commits referenced below.
This commit makes a corresponding change to fix the build for
xen-image-minimal.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>

git://git.openembedded.org/openembedded-core
commit e38c94d6bf83ed3ca7f046d9503e81b927487bf2
git://git.yoctoproject.org/poky.git
commit bb1c719250cecc8725147cbdd999a9a44a11b549

  Author: Robert Yang <liezhi.yang@windriver.com>
  Date:   Wed Feb 24 01:23:58 2016 -0800

      syslinux.bbclass: make vm and live can be built together
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-24 09:55:41 -04:00
Christopher Clark
52781c64b6 xen : cp long-double-64.h long-double-32.h to fix hvmloader build
Fix the xen build when MACHINE = "genericx86-64" by providing long-double-32.h

Inspired by a similar recent patch to meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb
since the contents of the header are minimal:

cp ${STAGING_INCDIR}/bits/long-double-64.h ${STAGING_INCDIR}/bits/long-double-32.h

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-24 09:55:41 -04:00
Christopher Clark
b6edda45ec ipxe: fetch using https rather than git protocol
The git protocol isn't responding at the ipxe fetch source;
https is, so use that instead.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-24 09:55:40 -04:00
Christopher Clark
140c6836ed vgabios : extract biossums tool and build it separately, native
The biossums tool is used to generate the vgabios build product.

This patch:
* adds a separate recipe "biossums" for the tool
* makes the vgabios recipe depend upon biossums-native
* makes the vgabios recipe use the native binary rather than a locally built one

The upstream source tarball contains binaries so these are removed
before compiling proceeds.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-24 09:55:40 -04:00
Mark Asselstine
aecdc17e0d lxc: fix build failure, failing QA check
The build is failing due to a failing QA check:

  ERROR: lxc-2.0.8-r0 do_package_qa: QA Issue:
  /usr/lib/lxc/ptest/src/tests/lxc-test-may-control contained in
  package lxc-ptest requires /bin/bash, but no providers found in
  RDEPENDS_lxc-ptest? [file-rdeps]

Add bash to the the ptest RDEPENDS.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-24 09:55:38 -04:00
Bruce Ashfield
7b3b082eca kernel: drop linux-yocto-4.1 bbappend
The 4.1 kernel is no longer in oe-core, so we can drop our bbappend.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-21 08:36:46 -04:00
Jason Wessel
edfd6b431c go-systemd: Fix QA dependency problem
ERROR: go-systemd-4+gitb4a58d95188dd092ae20072bac14cece0e67c388-r0
do_package_qa: QA Issue:
/usr/local/go/src/github.com/coreos/go-systemd/test contained in
package go-systemd requires /bin/bash, but no providers found in
RDEPENDS_go-systemd? [file-rdeps]

Resolved with proper dependency to bash.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-22 22:39:33 -04:00
Mark Asselstine
65fef58b02 openvswitch: force PYTHON to python3
Openvswitch has been created to search for and use both py2 and py3,
with a preference for py2. There is no configure option to force the
use of py3 only, and many of the scripts only use the value of PYTHON
and not PYTHON3 (again there is a general preference for py2). In
order to force this issue we set PYTHON to 'python3'. This isn't ideal
but allows for the desired outcome without us having to carry changes
against upstream OVS.

During our py3 work with OVS this change was identified but for some
reason was not included as part of the already merged changes.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-22 11:25:28 -04:00
Chen Qi
f06b48c2c8 openvswitch: add libcap-ng PACKAGECONFIG
Add PACKAGECONFIG for libcap-ng, and default to enable it.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-17 11:51:59 -04:00
Christopher Clark
9e84be6360 xen: remove STAGING_DIR_HOST from the runtime search path for bios.bin
This configuration option sets a run-time search path rather
than the location of a build-time dependency.

Tested with Xen 4.9 on OpenXT.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-17 11:51:56 -04:00
Bruce Ashfield
56cb449b6a xen: remove 4.8 recipe
We have 4.9 in the tree, so we no longer need the 4.8 variant.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:06:23 -04:00
Adrian Dudau
faa16f7ede python-itsdangerous: Drop recipe
Same version of the recipe is maintained in meta-python, no need to
keep a duplicate here.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:12 -04:00
Adrian Dudau
b6f7f158cb python-simplejson: Drop recipe
Newer version of the recipe (v3.11.1) is already maintained in
meta-python and I couldn't find any hard dependencies on the current
version.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:11 -04:00
Christopher Clark
54e3183276 xen: add recipe for Xen 4.9.0
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:03 -04:00
Christopher Clark
bd7cfb39bd xen: Package .pc packageconfig files into dev packages
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:03 -04:00
Christopher Clark
4c32ef8ba1 xen: Package libxendevicemodel, introduced in Xen 4.9
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-14 12:03:02 -04:00
Chen Qi
bca5037e5d openvswitch: fix dpdk PACKAGECONFIG
Add dpdk as a runtime dependency when 'dpdk' PACKAGECONFIG is enabled.

Also, introduce a variable DPDK_INSTALL_DIR, and default it to /opt/dpdk.
This is because users might install DPDK into different locations,
e.g. /usr. And it would easy for users to override this variable
to make openvswitch build with dpdk correctly.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-03 23:47:49 -04:00
Fupan Li
4eee02bd64 meta-virtualization: Drop ROOTFS_PKGMANAGE_BOOTSTRAP
OE-Core has now dropped this var in the commit of
697804229a17<run-postinsts: simplify the logic of
whether to install it to images>.

Signed-off-by: Fupan Li <fupan.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-03 23:47:21 -04:00
Robert Yang
0a64d42d45 cloud-image-guest/controller: remove inherit image-vm
The image-vm.bbclass had been removed by oe-core, and vmdk is replaced
by wic.vmdk.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-03 23:47:07 -04:00
Adrian Dudau
87b4527787 python-six: Drop recipe
Same recipe is maintained in oe-core, no need to keep a duplicate here.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-08-03 23:46:10 -04:00
Jan Kiszka
871962e231 kernel-features: Fix CONFIG_BLK_CGROUP enabling
Meanwhile, this became boolean, and trying to make it a module just
leaves it off.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-25 09:08:56 -04:00
Jan Kiszka
de50b56087 docker: Fix and update sysvinit script
Fix daemonization, align args with docker.service, fix line breaks in
log file - and fix INITSCRIPT_PARAMS (there is no variable
OS_DEFAULT_INITSCRIPT_PARAMS).

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-17 15:48:43 -04:00
Jan Kiszka
be934f72d2 lxc: Fix INITSCRIPT_PARAMS value
Analogously to docker: There is no variable
OS_DEFAULT_INITSCRIPT_PARAMS, just use "defaults".

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-17 15:48:43 -04:00
Bruce Ashfield
3b9dbb0075 containerd: uprev to latest 0.2.x
To match the docker (moby) and runc updates, we need the latest containerd
from the 0.2.x branch to work in cooperation with the other components.

Note: containerd master won't currently work with docker master, but is
very similar to 0.2.x. The build target varies slightly in master, but
otherwise with these changes to the recipe and build steps we can switch
easily when the time comes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-17 14:02:50 -04:00
Bruce Ashfield
e4d0007121 docker: update version string to 17.06.0
The docker uprev missed the version string which matches the actual
binary being built. With this change, the package now reflects the
correct version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-17 14:01:57 -04:00
Bruce Ashfield
b7e1fc9745 oci-runtime-tools: skip ld checks
The latest oci-runtime-tool builds are throwing the missing GNU_HASH
error during QA checks.

This is common with go applications, and isn't a problem, so for now,
we simply skip the check.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 22:37:35 -04:00
Jason Wessel
a31f735bda oci-runtime-tools, oci-runtime-spec: Uprev to runc 1.0-rc3 versions
The config.json has elements which have changed in the latest runc.
These changes are not backward compatible with older versions of runc.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:58 -04:00
Jason Wessel
cc3d8b9268 oci-systemd-hook: Uprev hook to latest
The selinux disable patch required changes as more setfilecon
operations were added.

The new upstream work is needed to allow the rootfs specification to
continue working because runc no longer passes the "root" key as a
part of the json configuration which is sent to a hook via stdin.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:58 -04:00
Jason Wessel
3c435ae8f0 docker: Uprev to latest based on runc 1.0-rc3
The build method for docker client changed where by the docker cli is
now required to be pulled in from a separate git tree to be built.

The integration patch to cross compile was also upreved since some
parts of it were accepted upstream while other parts have not been
accepted at this time.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:58 -04:00
Jason Wessel
11fac209f2 runc-docker: Add --console-socket=/dev/null
This allows for setting up a detached session where you do not want to
set the terminal to false in the config.json.  More or less this is a
runtime override.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:57 -04:00
Jason Wessel
d2dbd7d8d2 runc-docker: Uprev to 1.0-rc3+
Uprev to pick up latest changes in docker-runc.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 13:53:57 -04:00
Mark Asselstine
f0f0453984 openvswitch: backport py3 fixups
While attempting to get ovs to be built and run with py3 (completely
free of py2) host contamination was found (builds on hosts without
python-six installed would fail). It was also determined that pyc
files were still being generated with py2 and not py3. This resulted
in more work being done to achieve the desired results. This work was
sent upstream and subsequently merged. Unfortunately this didn't make
v2.7.1 and may not be available until the next major release, so here
we backport these commits and adjust the recipe to get a clean py3
only build.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 10:54:49 -04:00
Mark Asselstine
165ffabe89 openvswitch: uprev to v2.7.1
Released at the end of June 2017 this is a bugfix release with no
major functional changes. Surprisingly the patch for CVE-2017-9263 is
still not applied upstream so we continue to carry this change.

The remaining patches were audited and cleaned up as needed.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-13 10:54:49 -04:00
Bruce Ashfield
3ac773e4c7 docker: make fragment standalone
Importing the docker configuratino fragment from meta-overc, which
adds options and capabilities to allow container to start out of
the box.

Note: There are more options that could be added here, but many of
them are decision of the distro and depend on runtime configuration
choices. So to balance the size of the build and leave decisions
where they belong, we keep this as small as possible.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-10 12:18:57 -04:00
brian avery
77fd5be8b6 docker: add NETFILTER_XT_MATCH_ADDRTYPE=m
Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start
up successfully. This patch adds it to the supported kernels.

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-10 12:18:09 -04:00
Adrian Dudau
88277c8496 python-requests: Drop recipe
There's a newer recipe (v2.13) maintained in meta-python. meta-openstack
explicitly prefers that version over this one, so no point in keeping
this recipe since nobody else is using this version.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-07-10 11:47:37 -04:00
Yi Zhao
e30aaeec26 diod: add new recipe
diod is a multi-threaded, user space file server that speaks 9P2000.L
protocol.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-06-27 13:24:12 -04:00