Commit Graph

823 Commits

Author SHA1 Message Date
Jeremy Puhlman
c40479b735 cloud-init: add rdpends for netifaces and charset-normalizer
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-27 23:38:33 -04:00
Jeremy Puhlman
66a2fa470b cloud-init: add depend on udev in sysvinit case.
Just as with systemd, the build needs the dev manager installed
as a dependancy

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-27 23:38:33 -04:00
Ross Burton
55bf71938e xen: make LZO dependency optional
xen-tools has an optional dependency on LZO.  As this is a unmaintained
compression format with better alternatives (such as Zstd), disable it
by default.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-25 11:39:14 -04:00
Chen Qi
d9189db0aa ceph: fix gcc-12 compile failure
Add two patches to fix gcc-12 compile failure.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-25 11:39:13 -04:00
Bertrand Marquis
3e6c50b794 xen: Fix class inherit in xen-image
Remove inherit of qemuboot classes when not build for qemu in
xen-image-minimal.
When reverted the handling for only adding inherited classes for qemu
was kept but the line always inheriting them was kept to.
This patch is fixing that so that qemuboot classes are now only added
when the image is built for qemu.

This fixes commit 27e5ade0ab

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-18 13:52:14 -04:00
He Zhe
b7e5662405 libvirt: Fix keeping restarting
LIBVIRTD_ARGS has been moved to libvirtd.service since v8.1.0. Move our mode
setting accordingly, otherwise libvirt would keep restarting and VMs would be
constantly stopped.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-18 13:52:14 -04:00
Khem Raj
aa86460a93 ipxe: Pin to use gcc
Use single quote instead of double quotes to help bitabake syntax
highlighter do right job

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-12 00:01:51 -04:00
Khem Raj
d32042ea1a xen-tools: Fix build with GCC 12
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 13:08:06 -04:00
Khem Raj
6a43be4c3e seabios: Upgrade to 1.16 release
Pin to use gcc as compiler always

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 13:08:06 -04:00
Bruce Ashfield
27e5ade0ab Revert "qemuboot, xen-image-minimal: enable runqemu for qemuarm Xen images"
This reverts commit 1c746a9768.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 12:22:11 -04:00
Bruce Ashfield
bd66956ceb xen/4.16: fix gcc 12 build
There's no fix in the xen repository to fix gcc 12 issues yet, but
there is one in the opensuse infrastructure.

We import that change from: https://build.opensuse.org/package/view_file/openSUSE:Factory/xen/gcc12-fixes.patch?expand=1
to at least get things building and allow runtime testing against gcc
12.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 09:12:09 -04:00
Christopher Clark
d7a2d1b7ab xen images, qemuboot: configure xenbr0 bridge for runqemu, testimage
Networking for Xen guest virtual machines is commonly configured via
bridging in the host system between a physical interface and the
guest virtual interfaces.

To make it easier to test networking and use testimage with Xen guest
virtual machines, extend the bbclass that provides network configuration
for qemu machines for the Xen images to configure a Xen bridge and put
eth0 onto it when QB_XEN_HOST_BRIDGE is set.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 08:08:31 -04:00
Christopher Clark
1c746a9768 qemuboot, xen-image-minimal: enable runqemu for qemuarm Xen images
The Xen hypervisor built for Arm 32-bit targets can be launched with
runqemu by providing a u-boot script and configuration for Qemu, which
enables interactive testing of Xen images.

Add qemuboot-xen-u-boot.bbclass to add a new bitbake task for generating
the u-boot script. Since this increases the number of qemuboot-specific
classes that are inherited by the xen-image-minimal recipe, change the
inherit of all of these to only apply to qemu machines with the qemuall
override.

Update qemuboot-xen-defaults.bbclass to supply working default
parameters for the qemuarm machine needed to boot successfully in
testing. Also change all the arch-specific variable overrides into
narrower qemu platform overrides instead to avoid unnecessary
interactions with other Arm platform machines.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 08:08:25 -04:00
Christopher Clark
da1e54ca79 xen, xen-tools: add recommendation for Qemu for non-hvm x86
The Spectre and Meltdown mitigations for Xen run PV guests within
HVM virtual machines, so Qemu is no longer only needed for systems
configured to run HVM guests.

With the split xen hypervisor and tools recipes, the bios dependencies
belong in the tools recipe, so move them and replace the hvm
PACKAGECONFIG option with the recommendation based on target arch.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 08:08:20 -04:00
Bruce Ashfield
b9e18c1dae xen-tools: correct xencommons initscript for systemd
commit [xen-tools: don't declare xencommons as an initscript for
systemd] was wrong in an amazing two ways. It has an extranenous
} and it has inverted logic.

The result is that xencommons is not being properly declared as
an initscript for sysvinit, and hence we don't fully boot. It
isn't a problem for most systemd configurations, so we were
booting as the initscript wasn't firing.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-08 23:22:07 -04:00
Ross Burton
973c8d0964 xen: use vgabios 0.8a
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-02 14:07:30 -04:00
Ross Burton
8386caefb7 vgabios: upgrade to 0.8a and cleanup recipe
Upgrade to 0.8a.

License checksum updated as the FSF street address changed.

Apply a patch to use the correct host compiler when building biossums,
removing the need for a separate biossums-native recipe.

Don't hardcode /usr/share, use ${datadir}.

Install all found firmware (including the new Banshee BIOS in 0.8a) and
the debug files which were not installed but intended to be packaged.

Remove redundant PR and S assignments, as these are the default values.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-02 14:07:30 -04:00
Ross Burton
36433bfef3 dev86: fix a build race
Fix a race in cpp/ where token[12].h are written to a temporary file
with the same name.

Also update the status of cross.patch.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-02 14:07:30 -04:00
Bertrand Marquis
21a5c29a10 xen: Add missing space in append to IMAGE_INSTALL
Add a space before doing an append in IMAGE_INSTALL on x86.
This is solving issues happening if someone is using IMAGE_INSTALL in
local.conf to add things to the generated image.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-26 23:03:42 -04:00
He Zhe
c21e22e8e6 libvirt: Fix error on undefining domain and segfault on libvirt_driver_qemu.so
Backport a patch to fix segfault when undefining virtual machines.

virsh undefine vm
rpc-libvirtd[9725]: segfault at 18 ip 00007f8b0a5f17a9 sp 00007f8b3f8cbb60
error 4 in libvirt_driver_qemu.so[7f8b0a56e000+113000]
error: Code: a4 01 0f 84 89 03 00 00 4c 89 ff e8 d1 ed f7 ff 85 c0 0f 88 b9
             02 00 00 48 8b 45 b8 48 8b b0 80 00 00 00 48 8b 86 b0 02 00 00
             <48> 8b 78 18 48 85 ff 0f 84 42 01 00 00 e8 b5 02 f8 ff 48 89 45 c0
Disconnected from qemu:///system due to end of file
error: Failed to undefine domain 'vm'
error: End of file while reading data: Input/output error

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-26 17:03:20 -04:00
Bruce Ashfield
48ef7901ab xen-tools: don't declare xencommons as an initscript for systemd
We previously disabled init.d/xencommons when systemd is the
init system (to fix duplicate initialization of some resources),
but during rootfs install, update-rc.d will look for the script
if xencommons is declared as an initscript package.

We match the installation and only delcare it as an initscript
in a non systemd configuration.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-21 11:58:56 -04:00
Michal Orzel
7df9b0f1e1 xen: Remove 4.14 recipes and related patches
We shall only have recipes for the last two stable releases, thus
get rid of the 4.14 recipes and the corresponding patches.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-20 14:09:30 -04:00
Michal Orzel
265518e689 xen: Add recipes for stable Xen 4.16 release and update master
Add recipes for Xen 4.16 release as, according to the documentation
we shall have recipes for the latest stable major version of Xen
before the next Yocto release. Bump PREFERED_VERSION to 4.16 as well.

Take the opportunity to update SRCREV of xen recipes for master
and bump XEN_REL version to 4.17 as this is the current development
version.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-20 14:09:23 -04:00
Michal Orzel
aa4ebb5dad xen: Bump SRCREV of 4.15 recipes to 4.15.2
Bump SRCREV version of xen recipes to use the latest 4.15 release
which is 4.15.2.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-20 14:09:15 -04:00
Bruce Ashfield
51e404af98 xen-tools: remove unused systemd/sysvinit files
The commit [ xen: only package xencommon systemd components if systemd
is enabled] attempted to only package init.d scripts for non-systemd
systems (and vice-versa for unit files).

But the xen-tools builds installs the files uncondtionally, so we can
end up with unpackaged files in some configurations. We can test on
the init system and removed the unused versions of the init to avoid
both packging and runtime issues.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-19 20:11:39 -04:00
He Zhe
1f9c37e1a6 libvmi: Fix out of box build failure with xen disabled
vbd was added for xen based VMs since
bdee00fac9b4 ("Disk reading interface for Xen based VMs and example")
and should be built only when xen is enabled, otherwise there would not be
necessary xen headers and cause the following failure.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-13 23:16:49 -04:00
Bruce Ashfield
d4f84ae3cd libvirt: fix QA packaging issue when multlib is enabled
The uprev of libvirt introduced a new sysctl file:
60-qemu-postcopy-migration.conf

In a standard configuration, the FILES variable of
python-libvirt picks up the fiel, but in a multiconfig setup,
the definition of ${libdir} changes and the file is missed.

Since systcl always looks in /usr/lib, we can't rely only
on ${libdir}, so we explicitly add the new .conf file into
the packaging. This will allow new additions in the future
to be considered as to in which package they belong.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Preeti Sachan <preeti.sachan@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-11 10:16:46 -04:00
Ross Burton
98575878df virt-what: add new recipe
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-07 17:48:39 -04:00
Bruce Ashfield
f17c020e20 irqbalance: update to 1.8.0-tip
Bumping irqbalance to version v1.6.0-154-gb3adb5f, which comprises the following commits:

    0f594a6 Separate variable declaration from assignment
    9b004c6 Ensure that we get all of a unix message
    df7b543  Add '\0' to the end of strings to avoid heap buffer overflow
    f8bdd0e ui/ui.c: always use "%s"-style format for printf()-style functions
    efab272 Drop CapabilityBoundingSet from irqbalance service

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-29 10:06:20 -04:00
Bruce Ashfield
c77f64d100 kvmtool: update to -tip
Bumping kvmtool to latest, which comprises the following commits:

    faae833 Revert "kvm tools: Filter out CPU vendor string"
    1b76b6e Add --no-pvtime command line argument
    7d4671e aarch64: Add stolen time support
    ff69582 aarch64: Populate the vCPU struct before target->init()
    95f4796 arm: pci: Generate "msi-parent" property only with a MSI controller
    c334a68 arm: Use pr_debug() to print memory layout when loading a firmware image
    9b681b0 Remove initrd magic check
    2108c86 virtio/pci: Signal INTx interrupts as level instead of edge
    20b93be x86: Set the correct APIC ID
    d4d6f15 x86: Fix initialization of irq mptable
    cdd7d8c riscv: Generate PCI host DT node
    721da16 riscv: Handle SBI calls forwarded to user space
    7c9aac0 riscv: Generate FDT at runtime for Guest/VM
    762224e riscv: Add PLIC device emulation
    42bfe44 riscv: Implement Guest/VM VCPU arch functions
    867159a riscv: Implement Guest/VM arch functions
    2e99678 riscv: Initial skeletal support
    5968b5f update_headers: Sync-up ABI headers with Linux-5.16-rc1
    642f35b Makefile: Calculate the correct kvmtool version
    7a60af0 arm/pci: update interrupt-map only for legacy interrupts
    39181fc vfio/pci: Align MSIX Table and PBA size to guest maximum page size
    b20d6e3 vfio/pci: Print an error when offset is outside of the MSIX table or PBA
    f93acc0 vfio/pci: Rework MSIX table and PBA physical size allocation
    5f44d5d vfio/pci: Rename PBA offset in device descriptor to fd_offset
    34bfe5f pci: Fix pci_dev_* print macros
    3d3dca0 vfio/pci.c: Remove double include for assert.h
    e3b0ade arm/gicv2m: Set errno when gicv2_update_routing() fails
    dc66461 arm64: Be more permissive when parsing the kernel header
    5303f09 arm64: Use the default offset when the kernel image magic is not found
    5613ae2 Add --nodefaults command line argument
    a5253f7 builtin-run: Move kernel command line generation to a separate function
    39ab3a0 Use kvm->nr_disks instead of kvm->cfg.image_count
    cce9616 builtin-run: Abstract argument validation into a separate function
    638630c builtin-run: Do not attempt to find vmlinux if --firmware
    6cbec43 builtin-run: Warn when ignoring initrd because --firmware was specified
    6810e75 builtin-run: Treat specifying both --kernel and --firmware as an error
    2e7380d virtio/pci: Size the MSI-X bar according to the number of MSI-X
    bdb86d0 kvmtool: arm64: Configure VM with the minimal required IPA space
    066b5c0 kvmtool: arm64: Use the maximum supported IPA size when creating the VM
    4250819 kvmtool: Abstract KVM_VM_TYPE into a weak function
    25c1dc6 arm/arm64: vfio: Add PCI Express Capability Structure
    e69b766 arm/arm64: Add PCI Express 1.1 support
    6b74f68 arm/fdt.c: Don't generate the node if generator function is NULL
    070fb91 Move fdt_irq_fn typedef to fdt.h
    415f92c arm: Fail early if KVM_CAP_ARM_PMU_V3 is not supported

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-29 10:04:49 -04:00
Bruce Ashfield
cd8f8873a0 libvmi: update to 0.14-tip
Bumping libvmi to version v0.10-1073-g41600b6, which comprises the following commits:

    41600b6 Actually define __XS_EVENT_REASON_MAX (#1016)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-29 08:11:27 -04:00
Bruce Ashfield
2a355647b9 libvirt: uprev to 8.1.0
Bumping libvirt to a newer version. We drop our backported patches,
update the checksums, change the meson configuration slightly and
adjust the location of the systemd manipulations.

Along with functionality changes and bugfixes, we pickup newer
python components, so we can survive the depreciation of distutils
more easily.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-25 16:48:36 -04:00
sakib.sajal@windriver.com
e7516708fe ceph: set CXXFLAGS and CFLAGS
commit a83623a54a375d3ae9198a135b94379881a2b7a5 was added
to oe-core which removes CXXFLAGS and CFLAGS causing
compilation for ceph to fail.

Set CXXFLAGS and CFLAGS to resolve the issue.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-22 15:59:52 -04:00
Bruce Ashfield
c9554c6937 xen: only package xencommon systemd components if systemd is enabled
We've had reports of both the init.d xencommons and the systemd
services attempting to initialize the console, and breaking boot.

The systemd initialization really only needs to be enabled when
systemd is in DISTRO_FEATURES, and init.d the opposite.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-21 17:31:29 -04:00
Tim Orling
0ffb6e56b6 cloud-init: inherit setuptools3_legacy
cloud-init still requires legacy setup.py behavior.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-11 06:02:13 -05:00
Michal Orzel
ca4601a54a xen: Override CC and CPP in make command line
After 4.16 release, Xen build system has been changed significantly.
When building latest status of Xen it was observed that commit
317c98cb91 broke the hypervisor build on arm32 due to the change in
handling Rules.mk that xen.inc modifies to override CC and CPP.

In order to fix the issue this patch moves overriding CC and CPP from
Rules.mk to make command line by adding them to EXTRA_OEMAKE:arm.

Take the opportunity to bump SRCREV of xen_git.bb and xen-tools_git.bb
to the current status of master.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-10 14:42:22 -05:00
Kai Kang
2dc502a269 libvirt: backport patch to fix compile error
Backport patch to fix compile error of libvirt:

| runtime error: file ../libvirt-7.2.0/docs/page.xsl line 217 element element
| xsl:element: The effective name '' is not a valid QName.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-10 14:42:10 -05:00
Kamil Dziezyk
4369415b91 xen-*image-minimal: Install *xen-acpi-processor package only for x86* machines
Kernel module xen_acpi_processor is built only for x86* architectures,
therefore 'kernel-module-xen-acpi-processor' package is compatible only with
x86* machines.

Issue-Id: SCM-3892
Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com>
Change-Id: I8dde00e3c78a1f9eea50b19fbc1981f5e26df133
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-02 15:47:55 -05:00
Kasper Revsbech
e6f165dcec xvisor: Remove bb.error when builing for non-supported arch
Change bb.error to bb.note when getting config and arch of target/host
as it is not an error if arch is not supported that should flag when
parsing the recipe.
It is an error if trying to include in image and that is already handled
in COMPATIBLE_HOST

Signed-off-by: Kasper Revsbech <kasper.revsbech.ext@siemensgamesa.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-02-24 10:47:31 -05:00
Bruce Ashfield
108e089f7e global: update licence values to SPDX values
These changes are the result of running the convert-spdx-licenses.py
oe-core script.

There's no impact to the build, but we will avoid issues when
interacting with core QA by the alignment.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-02-18 13:07:10 -05:00
Bruce Ashfield
48c9b9a891 nagios: update to use SKIP_RECIPE
oe-core has remove PNBLACKLIST in favour of SKIP_RECIPE, so we update
our recipe accordingly to avoid warnings.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-02-04 12:21:32 -05:00
Ross Burton
ce8f2e0df4 libibverbs: update LICENSE
As per COPYING, this is BSD-2-Clause or GPLv2.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-02-04 12:18:53 -05:00
Kamil Dziezyk
b0c10d29cb xen: Clear TUNE_CCARGS for Xen build for aarch64 machines
Xen build may fail for arm machines that have enabled extra flags,
that can be enabled only for specific architecture version, e.g. armv8-2a.

Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-01-18 22:43:28 -05:00
Kamil Dziezyk
44dad5105d xen-tools: Load xen related kernel modules during system boot
This patch changes the location of xen.conf file, that contains list of kernel
modules to be loaded during system boot, to "${nonarch_libdir}". This is done
by removing '--with-systemd-modules-load=' flag from EXTRA_OECONF variable.

Previous path based on "${systemd_unitdir}" was not considered by default by
systemd-modules-load.service.

Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-01-18 22:43:28 -05:00
Bruce Ashfield
3638a8848a cloud-init: update to 21.4
Bumping cloud-init to version 21.4-47-ga97fd062

 - patch refresh
 - add bash to RDPENDS

Commit summary:

    a97fd062 Add .git-blame-ignore-revs (#1161)
    bae9b11d Adopt Black and isort (SC-700) (#1157)
    2bcf4fa9 Include dpkg frontend lock in APT_LOCK_FILES (#1153)
    3da3bdae tests/cmd/query: fix test run as root and add coverage for defaults (#1156)
    9a6e65a2 Schema processing changes (SC-676) (#1144)
    35711700 Add dependency workaround for impish in bddeb (#1148)
    3303b704 netbsd: install new dep packages (#1151)
    f4692c5d find_devs_with_openbsd: ensure we return the last entry (#1149)
    e9634266 sources/azure: remove unnecessary hostname bounce (#1143)
    24739592 find_devs/openbsd: accept ISO on disk (#1132)
    b591e9db Improve error log message when mount failed (#1140)
    8df8f43a add KsenijaS as a contributor (#1145)
    6760bf14 travis - don't run integration tests if no deb (#1139)
    65c2cfd7 factor out function for getting top level directory of cloudinit (#1136)
    b21afb0a testing: Add deterministic test id (#1138)
    2969ceaa mock sleep() in azure test (#1137)
    0ed00ad9 Add miraclelinux support (#1128)
    cd40789a docs: Make MACs lowercase in network config (#1135)
    bedac77e Add Strict Metaschema Validation (#1101)
    f428ed16 update dead link (#1133)
    0e25076b cloudinit/net: handle two different routes for the same ip (#1124)
    6e39613d docs: pin mistune dependency (#1134)
    039c40f9 Reorganize unit test locations under tests/unittests (#1126)
    ffa6fc88 Fix exception when no activator found (#1129)
    0fe96a44 jinja: provide and document jinja-safe key aliases in instance-data (SC-622) (#1123)
    ff10fc09 testing: Remove date from final_message test (SC-638) (#1127)
    cf38c2cb Move GCE metadata fetch to init-local (SC-502) (#1122)
    a1cf55e5 Fix missing metadata routes for vultr (#1125)
    c39d4f45 cc_ssh_authkey_fingerprints.py: prevent duplicate messages on console (#1081)
    4bf4de25 sources/azure: remove unused remnants related to agent command (#1119)
    32860627 github: update PR template's contributing URL (#1120)
    b36b4e2f docs: Rename HACKING.rst to CONTRIBUTING.rst (#1118)
    31daf667 testing: monkeypatch system_info call in unit tests (SC-533) (#1117)
    1343584d Fix Vultr timeout and wait values (#1113)
    7ebf04e3 lxd: add preference for LXD cloud-init.* config keys over user keys (#1108)
    3c6b594b VMware: source /etc/network/interfaces.d/* on Debian
    62721ae7 Add cjp256 as contributor (#1109)
    36adb6da integration_tests: Ensure log directory exists before symlinking to it (#1110)
    7f03da35 testing: add growpart integration test (#1104)
    8c52bb3f integration_test: Speed up CI run time (#1111)
    f0af9f78 Some miscellaneous integration test fixes (SC-606) (#1103)
    918d69a0 tests: specialize lxd_discovery test for lxd_vm vendordata (#1106)
    22150a20 Add convenience symlink to integration test output (#1105)
    fff6de4a Fix for set-name bug in networkd renderer (#1100)
    3d150688 Wait for apt lock (#1034)
    6421a202 testing: stop chef test from running on openstack (#1102)
    820e3d1c alpine.py: add options to the apk upgrade command (#1089)
    db6084bd Release 21.4 (#1091)
    ff415cad Azure: fallback nic needs to be reevaluated during reprovisioning (#1094)
    48467aa3 azure: pps imds (#1093)
    d54e23bf testing: Remove calls to 'install_new_cloud_init' (#1092)
    77376534 Add LXD datasource (#1040)
    b1beb538 Fix unhandled apt_configure case. (#1065)
    a90d8338 Allow libexec for hotplug (#1088)
    0f8428f6 Add necessary mocks to test_ovf unit tests (#1087)
    28581988 Remove (deprecated) apt-key (#1068)
    d4fe4bf5 distros: Remove a completed "TODO" comment (#1086)
    d77d6bf1 cc_ssh.py: Add configuration for controlling ssh-keygen output (#1083)
    1d01da5d Add "install hotplug" module (SC-476) (#1069)
    75b26b0a hosts.alpine.tmpl: rearrange the order of short and long hostnames (#1084)
    994339ae Add max version to docutils
    e6f15ae5 cloudinit/dmi.py: Change warning to debug to prevent console display (#1082)
    a8380a12 remove unnecessary EOF string in disable-sshd-keygen-if-cloud-init-active.conf (#1075)
    a4236c37 Add module 'write-files-deferred' executed in stage 'final' (#916)
    81f6aa16 Bump pycloudlib to fix CI (#1080)
    2db71334 Remove pin in dependencies for jsonschema (#1078)
    6cf9dc87 Add "Google" as possible system-product-name (#1077)
    2107ad01 Update Debian security suite for bullseye (#1076)
    8c89009e Leave the details of service management to the distro (#1074)
    3a6bee59 Fix typos in setup.py (#1059)
    150fd30e Update Azure _unpickle (SC-500) (#1067)
    ee296ced cc_ssh.py: fix private key group owner and permissions (#1070)
    a0a68a24 VMware: read network-config from ISO (#1066)
    70f0ee78 testing: mock sleep in gce unit tests (#1072)
    62c2a56e CloudStack: fix data-server DNS resolution (#1004)
    125dcb28 Fix unit test broken by pyyaml upgrade (#1071)
    a9501251 testing: add get_cloud function (SC-461) (#1038)
    b3e31ba2 Inhibit sshd-keygen@.service if cloud-init is active (#1028)
    76166caf VMWARE: search the deployPkg plugin in multiarch dir (#1061)
    ca0da042 Fix set-name/interface DNS bug (#1058)
    1ee2f3c3 Use specified tmp location for growpart (#1046)
    048a825c .gitignore: ignore tags file for ctags users (#1057)
    725a7f7f Allow comments in runcmd and report failed commands correctly (#1049)
    fd595774 tox integration: pass the *_proxy, GOOGLE_*, GCP_* env vars (#1050)
    9c147e83 Allow disabling of network activation (SC-307) (#1048)
    3d2bac8b renderer: convert relative imports to absolute (#1052)
    1bbb67ca Support ETHx_IP6_GATEWAY, SET_HOSTNAME on OpenNebula (#1045)
    de166ec3 integration-requirements: bump the pycloudlib commit (#1047)
    81a8f0a6 lp-to-git-users: adding vholer (#1044)
    591e97da Allow Vultr to set MTU and use as-is configs (#1037)
    392c3262 pin jsonschema in requirements.txt (#1043)
    ba083245 testing: remove cloud_tests (#1020)
    934c8d71 Add andgein as contributor (#1042)
    82d6f564 Make wording for module frequency consistent (#1039)
    2d67c1b9 Use ascii code for growpart (#1036)
    21aec00f Add jshen28 as contributor (#1035)
    c29c5b1d Skip test_cache_purged_on_version_change on Azure (#1033)
    8cebc449 Remove invalid ssh_import_id from examples (#1031)
    244af3f4 Cleanup Vultr support (#987)
    24a15e9c docs: update cc_disk_setup for fs to raw disk (#1017)
    a1e78b2e HACKING.rst: change contact info to James Falcon (#1030)
    089a307d tox: bump the pinned flake8 and pylint version (#1029)
    e27c3074 Add retries to DataSourceGCE.py when connecting to GCE (#1005)
    dc227869 Set Azure to apply networking config every BOOT (#1023)
    612e3908 Add connectivity_url to Oracle's EphemeralDHCPv4 (#988)
    cb82a450 docs: fix typo and include sudo for report bugs commands (#1022)
    5ea2c669 VMware: Fix typo introduced in #947 and add test (#1019)
    d4fe7bc4 Update IPv6 entries in /etc/hosts (#1021)
    023f97d4 Integration test upgrades for the 21.3-1 SRU (#1001)
    26a92b0d Add Jille to tools/.github-cla-signers (#1016)
    f3cc9494 Improve ug_util.py (#1013)
    f4c47e3e Support openEuler OS (#1012)
    2ce85724 ssh_utils.py: ignore when sshd_config options are not key/value pairs (#1007)
    e69a8874 Set Azure to only update metadata on BOOT_NEW_INSTANCE (#1006)
    7fe0f900 cc_update_etc_hosts: Use the distribution-defined path for the hosts file (#983)
    f6c71fd7 Add CloudLinux OS support (#1003)
    db72c841 puppet config: add the start_agent option (#1002)
    58c2de4c Fix `make style-check` errors (#1000)
    76cff793 Make cloud-id copyright year (#991)
    7fc3f08e Add support to accept-ra in networkd renderer (#999)
    de8931ed Update ds-identify to pass shellcheck (#979)
    28e56d99 Azure: Retry dhcp on timeouts when polling reprovisiondata (#998)
    6803368d testing: Fix ssh keys integration test (#992)
    03ee10cd Release 21.3 (#993)
    3ec8ddde Azure: During primary nic detection, check interface status continuously before rebinding again (#990)
    7d3f5d75 Fix home permissions modified by ssh module (SC-338) (#984)
    94679e17 Add integration test for sensitive jinja substitution (#986)
    776bd363 Ignore hotplug socket when collecting logs (#985)
    3e63025a testing: Add missing mocks to test_vmware.py (#982)
    0bf8d575 add Zadara Edge Cloud Platform to the supported clouds list (#963)
    b9c96b4f testing: skip upgrade tests on LXD VMs (#980)
    65607405 Only invoke hotplug socket when functionality is enabled (#952)
    f516a7d3 Revert unnecesary lcase in ds-identify (#978)
    04047438 cc_resolv_conf: fix typos (#969)
    1c3b10b5 Replace broken httpretty tests with mock (SC-324) (#973)
    e119cece Azure: Check if interface is up after sleep when trying to bring it up (#972)
    7781dec3 Update dscheck_VMware's rpctool check (#970)
    82a30e6d Azure: Logging the detected interfaces (#968)
    b9d308b4 Change netifaces dependency to 0.10.4 (#965)
    d3271217 Azure: Limit polling network metadata on connection errors (#961)
    c62cb3af Update inconsistent indentation (#962)
    9893dfcd cc_puppet: support AIO installations and more (#960)
    3c858591 Add Puppet contributors to CLA signers (#964)
    8b4a9bc7 Datasource for VMware (#953)
    049d62b6 photon: refactor hostname handling and add networkd activator (#958)
    00dbaf1e Stop copying ssh system keys and check folder permissions (#956)
    13b6a857 testing: port remaining cloud tests to integration testing framework (SC-191) (#955)
    8f42eb54 generate contents for ovf-env.xml when provisioning via IMDS (#959)
    3d9c862b Add support for EuroLinux 7 && EuroLinux 8 (#957)
    758acf97 Implementing device_aliases as described in docs (#945)
    824977bd testing: fix test_ssh_import_id.py (#954)
    6e7066ea Add ability to manage fallback network config on PhotonOS (#941)
    4257e30a Add VZLinux support (#951)
    f0ab1e64 VMware: add network-config support in ovf-env.xml (#947)
    ec6afadb Update pylint to v2.9.3 and fix the new issues it spots (#946)
    a984ee78 Azure: mount default provisioning iso before try device listing (#870)
    4fbe192a Document known hotplug limitations (#950)
    184c836a Initial hotplug support (#936)
    eacb0353 Fix MIME policy failure on python version upgrade (#934)
    881be6e7 run-container: fixup the centos repos baseurls when using http_proxy (#944)
    a185f319 tools: add support for building rpms on rocky linux (#940)
    9b52405c ssh-util: allow cloudinit to merge all ssh keys into a custom user file, defined in AuthorizedKeysFile (#937)
    108611ae VMware: new "allow_raw_data" switch (#939)
    7f5e6822 bump pycloudlib version (#935)
    894dd7c4 add renanrodrigo as a contributor (#938)
    36aeb49c testing: simplify test_upgrade.py (#932)
    db51b656 freebsd/net_v1 format: read MTU from root (#930)
    81299de5 Add new network activators to bring up interfaces (#919)
    78e89b03 - Detect a Python version change and clear the cache (#857)
    6e0aa175 cloud_tests: fix the Impish release name (#931)
    b5aecbe9 Removed distro specific network code from Photon (#929)
    35aa9db6 Add support for VMware PhotonOS (#909)
    f5a24496 cloud_tests: add impish release definition (#927)
    db23b1b1 docs: fix stale links rename master branch to main (#926)
    abd2da57 Fix DNS in NetworkState (SC-133) (#923)
    fbcb224b tests: Add 'adhoc' mark for integration tests (#925)
    1243c5a1 Fix the spelling of "DigitalOcean" (#924)
    c8d3f99b Small Doc Update for ReportEventStack and Test (#920)
    950c186a Replace deprecated collections.Iterable with abc replacement (#922)
    59a3d845 testing: OCI availability domain is now required (SC-59) (#910)
    59a848c5 add DragonFlyBSD support (#904)
    05b0e350 Use instance-data-sensitive.json in jinja templates (SC-117) (#917)
    b11632d1 doc: Update NoCloud docs stating required files (#918)
    9c400e46 build-on-netbsd: don't pin a specific py3 version (#913)
    29ac50f2 - Create the log file with 640 permissions (#858)
    503e2d39 Allow braces to appear in dhclient output (#911)
    63f72380 Docs: Replace all freenode references with libera (#912)
    fc161f8e openbsd/net: flush the route table on net restart (#908)
    7c1d27b8 Add Rocky Linux support to cloud-init (#906)
    c8db6032 Add "esposem" as contributor (#907)
    3611befb Add integration test for #868 (#901)
    1793b8b7 Added support for importing keys via primary/security mirror clauses (#882)
    21a0b120 [examples] config-user-groups expire in the future (#902)
    6fe19837 BSD: static network, set the mtu (#894)
    4c3c3629 Add integration test for lp-1920939 (#891)
    57964125 Fix unit tests breaking from new httpretty version (#903)
    86434699 Allow user control over update events (#834)
    899bfaa9 Update test characters in substitution unit test (#893)
    77320bfc cc_disk_setup.py: remove UDEVADM_CMD definition as not used (#886)
    8cf40a73 Add AlmaLinux OS support (#872)
    13877549 Release 21.2 (#890)
    f17f78fa Add \r\n check for SSH keys in Azure (#889)
    5f5fa5ee Revert "Add support to resize rootfs if using LVM (#721)" (#887)
    9ea643ff Add Vultaire as contributor (#881)
    ba82b3ef Azure: adding support for consuming userdata from IMDS (#884)
    5c740dcf test_upgrade: modify test_upgrade_package to run for more sources (#883)
    02db2c3e Fix chef module run failure when chef_license is set (#868)
    b2311664 Azure: Retry net metadata during nic attach for non-timeout errs (#878)
    431b3683 Azure: Retrieve username and hostname from IMDS (#865)
    d5cca27a Azure: eject the provisioning iso before reporting ready (#861)
    ced836e6 Use `partprobe` to re-read partition table if available (#856)
    d132356c fix error on upgrade caused by new vendordata2 attributes (#869)
    45db197c add prefer_fqdn_over_hostname config option (#859)
    0d90596b Emit dots on travis to avoid timeout (#867)
    cc16c922 doc: Replace remaining references to user-scripts as a config module (#866)
    9f9e154f azure: Removing ability to invoke walinuxagent (#799)
    0ae0b1d4 Add Vultr support (#827)
    83f6bbfb Fix unpickle for source paths missing run_dir (#863)
    fb38aa59 sysconfig: use BONDING_MODULE_OPTS on SUSE (#831)
    a9d3664c lp-to-git-users: adding B1Sandmann (#828)
    15dd3601 bringup_static_routes: fix gateway check (#850)
    fc5d5415 add hamalq user (#860)
    74fa008b Add support to resize rootfs if using LVM (#721)
    3b7e2e82 Fix mis-detecting network configuration in initramfs cmdline (#844)
    13606a12 tools/write-ssh-key-fingerprints: do not display empty header/footer (#817)
    6ae1145f Azure helper: Ensure Azure http handler sleeps between retries (#842)
    d4acc092 Fix chef apt source example (#826)
    bad84ad4 .travis.yml: generate an SSH key before running tests (#848)
    b794d426 write passwords only to serial console, lock down cloud-init-output.log (#847)
    c6726c2b Fix apt default integration test (#845)
    dae45c3b integration_tests: bump pycloudlib dependency (#846)
    f35181fa Fix stack trace if vendordata_raw contained an array (#837)
    3aeb14cd archlinux: Fix broken locale logic (#841)
    d95b448f Integration test for #783 (#832)
    74e1e50d integration_tests: mount more paths IN_PLACE (#838)
    9bd19645 Fix requiring device-number on EC2 derivatives (#836)
    6fe99157 Remove the vi comment from the part-handler example (#835)
    121bc04c net: exclude OVS internal interfaces in get_interfaces (#829)
    106c57d5 tox.ini: pass OS_* environment variables to integration tests (#830)
    3dd3de7c integration_tests: add OpenStack as a platform (#804)
    3be66630 Add flexibility to IMDS api-version (#793)
    62f7a8b1 Fix the TestApt tests using apt-key on Xenial and Hirsute (#823)
    a10838a6 doc: remove duplicate "it" from nocloud.rst (#825)
    2757333e archlinux: Use hostnamectl to set the transient hostname (#797)
    402d98ed cc_keys_to_console.py: Add documentation for recently added config key (#824)
    695c4f8f Update cc_set_hostname documentation (#818)
    d873b9dc Release 21.1 (#820)
    a64b7380 Azure: Support for VMs without ephemeral resource disks. (#800)
    e384a543 cc_keys_to_console: add option to disable key emission (#811)
    38aee6ee integration_tests: introduce lxd_use_exec mark (#802)
    66e2d42d azure: case-insensitive UUID to avoid new IID during kernel upgrade (#798)
    08d8902a stale.yml: don't ask submitters to reopen PRs (#816)
    33b6cf29 integration_tests: fix use of SSH agent within tox (#815)
    28d2d4b8 integration_tests: add UPGRADE CloudInitSource (#812)
    5a9008e5 integration_tests: use unique MAC addresses for tests (#813)
    6056ccd4 Update .gitignore (#814)
    7f1cefe9 Port apt cloud_tests to integration tests (#808)
    85e88af0 integration_tests: fix test_gh626 on LXD VMs (#809)
    84e56f84 Fix attempting to decode binary data in test_seed_random_data test (#806)
    09193e51 Remove wait argument from tests with session_cloud calls (#805)
    0497c7b1 Datasource for UpCloud (#743)
    3a0a5894 test_gh668: fix failure on LXD VMs (#801)
    3cebe0df openstack: read the dynamic metadata group vendor_data2.json (#777)
    36ddf1eb includedir in suoders can be prefixed by "arroba" (#783)
    6efe16d8 [VMware] change default max wait time to 15s (#774)
    e7e7b429 Revert integration test associated with reverted #586 (#784)
    5ccc8cba Add jordimassaguerpla as contributor (#787)
    a0fdd856 Add Rick Harding to CLA signers (#792)
    c343e8b3 HACKING.rst: add clarifying note to LP CLA process section (#789)
    5ec01a57 Stop linting cloud_tests (#791)
    4c190685 cloud-tests: update cryptography requirement (#790)
    a9c904dc Remove 'remove-raise-on-failure' calls from integration_tests (#788)
    1527efa7 Use more cloud defaults in integration tests (#757)
    2d0b6368 Adding self to cla signers (#776)
    e051d542 doc: avoid two warnings (#781)
    b3abcdc0 Use proper spelling for Red Hat (#778)
    ad23441d Add antonyc to .github-cla-signers (#747)
    c25118ac integration_tests: log image serial if available (#772)
    cdc5b81f Revert "ssh_util: handle non-default AuthorizedKeysFile config (#586)" (#775)
    9db8620b Release 20.4.1
    6fc9da99 Revert "ssh_util: handle non-default AuthorizedKeysFile config (#586)"
    11630044 [VMware] Support cloudinit raw data feature (#691)
    9a258eeb net: Fix static routes to host in eni renderer (#668)
    162fb839 .travis.yml: don't run cloud_tests in CI (#756)
    7b58982a test_upgrade: add some missing commas (#769)
    37abbc43 cc_seed_random: update documentation and fix integration test (#771)
    503435d1 Fix test gh-632 test to only run on NoCloud (#770)
    2b2c7f39 archlinux: fix package upgrade command handling (#768)
    2bfa461b integration_tests: add integration test for LP: #1910835 (#761)
    4f62ae8d Fix regression with handling of IMDS ssh keys (#760)
    88581e54 integration_tests: log cloud-init version in SUT (#758)
    83ba4d18 Add ajmyyra as contributor (#742)
    75eb007f net_convert: add some missing help text (#755)
    ea6fcc14 Missing IPV6_AUTOCONF=no to render sysconfig dhcp6 stateful on RHEL (#753)
    aa1014ca doc: document missing IPv6 subnet types (#744)
    30da21bd Add example configuration for datasource `AliYun` (#751)
    e5c67478 integration_tests: add SSH key selection settings (#754)
    48b2c5f1 fix a typo in man page cloud-init.1 (#752)
    b85e4a56 network-config-format-v2.rst: add Netplan Passthrough section (#750)
    c5f6c786 stale: re-enable post holidays (#749)
    aa72426b integration_tests: port ca_certs tests from cloud_tests (#732)
    80847b05 Azure: Add telemetry for poll IMDS (#741)
    5d017ab6 doc: move testing section from HACKING to its own doc (#739)
    b9a5da16 No longer allow integration test failures on travis (#738)
    e4f2d613 stale: fix error in definition (#740)
    b944cbe0 integration_tests: set log-cli-level to INFO by default (#737)
    3c076f4c PULL_REQUEST_TEMPLATE.md: use backticks around commit message (#736)
    fad919aa stale: disable check for holiday break (#735)
    f38ba3ca integration_tests: log the path we collect logs into (#733)
    ac17c6a2 .travis.yml: add (most) supported Python versions to CI (#734)
    0b932e55 integration_tests: fix IN_PLACE CLOUD_INIT_SOURCE (#731)
    a5484d02 cc_ca_certs: add RHEL support (#633)
    91381855 Azure: only generate config for NICs with addresses (#709)
    e5f74595 doc: fix CloudStack configuration example (#707)
    eadadaa1 integration_tests: restrict test_lxd_bridge appropriately (#730)
    9e89ca70 Add integration tests for CLI functionality (#729)
    2022bc72 Integration test for gh-626 (#728)
    ca49e27b Some test_upgrade fixes (#726)
    2af3f6d7 Ensure overriding test vars with env vars works for booleans (#727)
    3339a5a4 integration_tests: port lxd_bridge test from cloud_tests (#718)
    9ea845db Integration test for gh-632. (#725)
    8321f0c0 Integration test for gh-671 (#724)
    00dbc144 integration-requirements.txt: bump pycloudlib commit (#723)
    212b291d Drop unnecessary shebang from cmd/main.py (#722)
    97bfd21d Integration test for LP: #1813396 and #669 (#719)
    1d1649e5 integration_tests: include timestamp in log output (#720)
    05216aa3 integration_tests: add test for LP: #1898997 (#713)
    17ca02e1 Add integration test for power_state_change module (#717)
    7ec314a9 Update documentation for network-config-format-v2 (#701)
    b8df2547 sandbox CA Cert tests to not require ca-certificates (#715)
    54e202a6 Add upgrade integration test (#693)
    aa6350f6 Integration test for 570 (#712)
    974145d0 Add ability to keep snapshotted images in integration tests (#711)
    06f7b452 Integration test for pull #586 (#706)
    6c4e87bf integration_tests: introduce skipping of tests by OS (#702)
    ed9bd19c integration_tests: introduce IntegrationInstance.restart (#708)
    bd76d5cf Add lxd-vm to list of valid integration test platforms (#705)
    f550c876 Adding BOOTPROTO = dhcp to render sysconfig dhcp6 stateful on RHEL (#685)
    2bd34bda Delete image snapshots created for integration tests (#682)
    de3183c1 Parametrize ssh_keys_provided integration test (#700)
    53f2bfbb Drop use_sudo attribute on IntegrationInstance (#694)
    6ee01078 cc_apt_configure: add riscv64 as a ports arch (#687)
    4292a47b cla: add xnox (#692)
    bc9c6c22 Collect logs from integration test runs (#675)
    47f4229e Release 20.4 (#686)
    87df9d6c tox: avoid tox testenv subsvars for xenial support (#684)
    6e86d2a5 Ensure proper root permissions in integration tests (#664)
    8a493bf0 LXD VM support in integration tests (#678)
    e454dea5 Integration test for fallocate falling back to dd (#681)
    66a851ac .travis.yml: correctly integration test the built .deb (#683)
    a4d0feb0 Ability to hot-attach NICs to preprovisioned VMs before reprovisioning (#613)
    66b4be8b Support configuring SSH host certificates. (#660)
    5d4a9a4a add integration test for LP: #1900837 (#679)
    12ef7541 cc_resizefs on FreeBSD: Fix _can_skip_ufs_resize (#655)
    73e704e3 DataSourceAzure: push dmesg log to KVP (#670)
    9707a08a Make mount in place for tests work (#667)
    bfaee8cc integration_tests: restore emission of settings to log (#657)
    eea75449 DataSourceAzure: update password for defuser if exists (#671)
    49d5de92 tox.ini: only select "ci" marked tests for CI runs (#677)
    6df0230b Azure helper: Increase Azure Endpoint HTTP retries (#619)
    d807df28 DataSourceAzure: send failure signal on Azure datasource failure (#594)
    96d21dfb test_persistence: simplify VersionIsPoppedFromState (#674)
    cd752df6 only run a subset of integration tests in CI (#672)
    f6801144 cli: add --system param to allow validating system user-data on a machine (#575)
    e1bde919 test_persistence: add VersionIsPoppedFromState test (#673)
    4f2da1cc introduce an upgrade framework and related testing (#659)
    a925b5a0 add --no-tty option to gpg (#669)
    eeef783b Pin pycloudlib to a working commit (#666)
    8a9ee02d DataSourceOpenNebula: exclude SRANDOM from context output (#665)
    38ba6b30 cloud_tests: add hirsute release definition (#662)
    db2ff11d split integration and cloud_tests requirements (#652)
    39cf5c4e faq.rst: add warning to answer that suggests running `clean` (#661)
    2730521f Fix stacktrace in DataSourceRbxCloud if no metadata disk is found (#632)
    57349eb7 Make wakeonlan Network Config v2 setting actually work (#626)
    0dc2d030 HACKING.md: unify network-refactoring namespace (#658)
    d83c0bb4 replace usage of dmidecode with kenv on FreeBSD (#621)
    b542ce7a Prevent timeout on travis integration tests. (#651)
    c86283f0 azure: enable pushing the log to KVP from the last pushed byte  (#614)
    f4235974 Fix launch_kwargs bug in integration tests (#654)
    cf6c36a1 split read_fs_info into linux & freebsd parts (#625)
    d1c01c1d PULL_REQUEST_TEMPLATE.md: expand commit message section (#642)
    8dfd8801 Make some language improvements in growpart documentation (#649)
    0184e536 Revert ".travis.yml: use a known-working version of lxd (#643)" (#650)
    7978feb3 Fix not sourcing default 50-cloud-init ENI file on Debian (#598)
    2c450039 remove unnecessary reboot from gpart resize (#646)
    0af1ff1e cloudinit: move dmi functions out of util (#622)
    d619f517 integration_tests: various launch improvements (#638)
    2ea3121f test_lp1886531: don't assume /etc/fstab exists (#639)
    0ff34cfb Remove Ubuntu restriction from PR template (#648)
    34f8e221 util: fix mounting of vfat on *BSD (#637)
    815a790c conftest: improve docstring for disable_subp_usage (#644)
    8642e8bc doc: add example query commands to debug Jinja templates (#645)
    f8c84aee Correct documentation and testcase data for some user-data YAML (#618)
    0f8be879 Hetzner: Fix instance_id / SMBIOS serial comparison (#640)
    f72d0cb7 .travis.yml: use a known-working version of lxd (#643)
    a6afe9c5 tools/build-on-freebsd: fix comment explaining purpose of the script (#635)
    1431c8a1 Hetzner: initialize instance_id from system-serial-number (#630)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-12-21 09:29:50 -05:00
Bruce Ashfield
d842978b65 cloud-init: switch branch to main
Cloud-init has removed the master branch, and has switched
to using main.

So we adjust our recipe accordingly to avoid fetcher errors.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-12-21 09:10:08 -05:00
Christopher Clark
acdae1d76b xen-tools: upgrade RSUGGESTS to RRECOMMENDS for ifupdown
Xen's networking for guests is typically configured using bridges and
the standalone ifupdown package, which contains a more capable version
of the tool than busybox, is needed to configure them, so:

Increase the recommendation strength from RSUGGESTS to RRECOMMENDS to
bring the package in by default, which fixes networking for images built
with packaging formats that follow RRECOMMENDS but not RSUGGESTS.

I should've paid closer attention to Corey's recommendation for this, so:
Suggested-by: Corey Minyard <cminyard@mvista.com>

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-12-16 21:44:59 -05:00
Christopher Clark
1c3cc5b420 xen: drop patch to workaround prelink on aarch64
prelink is no longer default enabled and has been recommended to be
disabled since OE-core f9719cc1.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-12-16 21:44:59 -05:00
Martin Jansa
ef6d70eeaf uxen-guest-tools: fix -DMODULE not working when building uxenhc module
* undo the unnecessary and incomplete changes from 0001-vm-support-fix-build-for-kernel-s-5.4.patch
  because with 5.15 it was still failing with:
  ERROR: modpost: missing MODULE_LICENSE() in uxen-guest-tools/4.1.8-r0/uxen-4.1.8-72a4af9/vm-support/linux/uxenhc/uxenhc.o

  fix it properly in 0004-uxenhc-fix-DMODULE-not-working-on-module-build-comma.patch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-30 12:04:09 -05:00
Martin Jansa
788672a973 uxen-guest-tools: fix build against kernels 5.15+
This is a compile only fix to update the uxen kernel modules to
work against newer kernels.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-30 12:04:09 -05:00
Martin Jansa
967bcb26d3 xvisor: set PV
* use something more reasonable than default 'git' from filename
* there wasn't a new tag for a long time, so this is quite far
  from 0.3.0 as git describe shows:
  v0.3.0-231-g6b23764a
  but 0.3.0 is still the closest release I've found
  and matches PROJECT_VERSION in Makefile:
  6b23764a14/Makefile (L29)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-30 09:27:48 -05:00
Bruce Ashfield
844f4e1d7b uxen-guest-tools: fix build against kernels 5.4+
This is a compile only fix to update the uxen kernel modules to
work against newer kernels.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-29 23:13:33 -05:00
Bruce Ashfield
9a7aa013db xvisor: uprev to latest master and fix python reference
Bumping to the latest xvisor tip.

We drop one patch that is now part of the upstream, and we
add another to remove /usr/bin/python from scripts called
during build, since it breaks the build on hosts without
/usr/bin/python.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-29 17:21:36 -05:00
Xu, Yanfei
da0f1599ce libvirt: fix CVE-2021-3667
Backport a fix for CVE-2021-3667.

The CVE discription: An improper locking issue was found in the
virStoragePoolLookupByTargetPath API of libvirt. It occurs in the
storagePoolLookupByTargetPath function where a locked virStoragePoolObj
object is not properly released on ACL permission failure. Clients
connecting to the read-write socket with limited ACL permissions could
use this flaw to acquire the lock and prevent other users from accessing
storage pool/volume APIs, resulting in a denial of service condition.
The highest threat from this vulnerability is to system availability.

Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1986094

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-24 16:57:20 -05:00
Bruce Ashfield
7bc99cda52 libvirt: inhibit empty-dirs QA check
OEcore has recently added a QA check for directories that should
be empty. libvirt (via meson) creates some localsstate directories
for the various components. These trigger the QA check and break
the build.

We still have some non-volatile localstate (/var) scenarios, and
not seeing a distro feature that controls the QA check, and/or to
coordinate the removal of the populated directories, we inhibit
the QA check. In a boot with a volatile /var, the directories
will be overlayed and no harm will come, in a non-volatile
scenario, they'll be visible and no harm will come.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-12 15:46:45 +00:00
Martin Jansa
3b91a3104a irqbalance: bump SRCREV to latest
* remove the incorrect comment about SRCREV being 1.7.0
* and add +git because the old SRCREV wasn't matching
  with 1.8.0 tag as well

* add -Wno-error=format-security to work around build failures with newer ncurses-6.3 like:
  | ../git/ui/ui.c:45:32: error: format not a string literal and no format arguments [-Werror=format-security]
  |    45 |         mvprintw(LINES - 1, 0, footer);
  |       |                                ^~~~~~

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-08 09:18:20 -05:00
Bruce Ashfield
0a7ae8bc50 global: convert github SRC_URIs to use https protocol
github is removing git:// access, and fetches will start experiencing
interruptions in service, and eventually will fail completely.

bitbake will also begin to warn on github src_uri's that don't use
https. So we convert the meta-virt instances to use protocol=https
(done using the oe-core contrib conversion script)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02 09:57:03 -04:00
Bruce Ashfield
ac399ad091 global: add explicit branch to all SRC_URIs
As introduced in the oe-core post:

  https://lists.openembedded.org/g/openembedded-core/message/157623

SRC_URIs without an explicit branch will generate warnings, and
eventually be an error.

We run the provided conversion script to make sure that meta-virt
is ready for the change.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02 09:57:03 -04:00
Edward Pickup
03689b86cc xen,xen-tools: update xen to new releases
Update the SHA in recipes for xen and xen-tools to use the latest releases;
update xen 4.14 to xen 4.14.3 release, update xen 4.15 to 4.15.1 release, and
xen 4.16 to the current master version.

Add a comment to each recipe indicating which version of Xen is used in recipe.

Do not apply patches that have been merged/solved in Xen and remove patch files
not needed anymore.

Create a test package to pack new tests introduced in 4.16.

Add a depencency to util-linux-prlimit, as the xen 4.16 x86 requires prlimit,
without this boot of dom0 fails.

Signed-off-by: Edward Pickup <Edward.Pickup@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02 09:57:03 -04:00
Kai Kang
f71bedc29d ceph: 15.2.12 -> 15.2.15
Update ceph to latest 15.x version:

* remove 0001-add-missing-include-for-atomic-bool.patch which has been
  fixed in upstream
* update patch to support python 3.10
* add gawk to RDEPENDS that script 'rgw-gap-list-comparator' requires it

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-10-28 15:30:19 -04:00
Kai Kang
03cd8aa82e ceph: inherit pkgconfig.bbclass
According to oe-core commit

8e26252b45 layer.conf: Extend recipes not to install without explict dependencies

pkgconfig-native is not deployed in sysroot by default any more. Inherit
pkgconfig.bbclass to make it available for ceph.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-10-18 23:02:30 -04:00
Ross Burton
aaeb4f49c0 xen: add missing pkgconfig inherit
New oe-core pulls in less default dependencies[1], so add an explicit
inherit of pkgconfig as it is needed to configure Xen.

[1] https://lists.openembedded.org/g/openembedded-core/message/156185

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-10-12 10:17:36 -04:00
Martin Jansa
1a9f6d9cf6 oath: inherit pkgconfig
* Newer oe-core doesn't pull many default dependencies anymore:
  https://lists.openembedded.org/g/openembedded-core/message/156185
  add explicit dependency on pkgconfig through pkgconfig.bbclass as
  we're using it here.

* fixes:
  ../../oath-toolkit-2.6.2/liboath/configure: line 30585: PKG_PROG_PKG_CONFIG: command not found
  checking for gtk-doc... ../../oath-toolkit-2.6.2/liboath/configure: line 30595: syntax error near unexpected token `$gtk_doc_requires,have_gtk_doc=yes,have_gtk_doc=no'
  ../../oath-toolkit-2.6.2/liboath/configure: line 30595: `  PKG_CHECK_EXISTS($gtk_doc_requires,have_gtk_doc=yes,have_gtk_doc=no)'
  configure: error: ../../oath-toolkit-2.6.2/liboath/configure failed for liboath

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-30 22:37:10 -04:00
Bruce Ashfield
1fae6921b6 Revert "ceph/libibverbs: replace libibverbs with rdma-core"
meta-cloud-services still has users of libibverbs, so we'll keep it
around a bit longer.

But this library has been replaced by rdma-core, and won't get more
updates, so it should be considered depreciated and slated for removal.

This reverts commit 513f05926a.
2021-09-17 08:27:13 -04:00
Zqiang
0644e808ac libvirt: fix CVE-2021-3631
Selinux MCS generate a single category context and may
be accessed by another machine.

link: https://gitlab.com/libvirt/libvirt/-/issues/153

Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-16 18:08:46 -04:00
Bruce Ashfield
513f05926a ceph/libibverbs: replace libibverbs with rdma-core
libibverbs is no longer developed, and its functionaty is provided by
the rdma-core projects.

rdma-core is part of meta-networking, so we drop libibverbs and update
our dependency to rdma-core.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-16 18:01:55 -04:00
Bruce Ashfield
798aeaee78 libibverbs: don't rprovide virtual/libibverbs
Similar to the oe-core commit:

   commit 93ac180d8c389f16964bce8bd5538d9389e970e6
   Author: Michael Opdenacker <michael.opdenacker@bootlin.com>
   Date:   Wed Sep 1 11:20:20 2021 +0200

       meta: stop using "virtual/" in RPROVIDES and RDEPENDS

       Fixes [YOCTO #14538]

       Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS.

       That's confusing because "virtual/" has no special meaning in
       RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).

       Instead, using "virtual-" instead of "virtual/"
       as already done in the glibc recipe.

We stop rproviding virtual/libibverbs to keep the namespace clean.
There aren't many (any) users of this virtual provides, but we keep
it around (for now) to maintain compatibility.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-06 10:57:17 -04:00
Christopher Clark
0f2e3d24a4 xtf: add testimage integration to run XTF test cases in OEQA
Add a new minimal OEQA test case to run the Xen Test Framework
test runner in the standard testimage step. Tested with qemux86-64
and designed for compatibility with Arm when XTF supports it.

To enable, append to local.conf:
    INHERIT += "testimage"
    QEMU_USE_SLIRP = "1"
    TEST_SERVER_IP = "127.0.0.1"

To run: bitbake -c testimage xtf-image

For inspection while it runs, at another shell prompt:
 * Observe the image booting:
 tail -f ${TMPDIR}/work/qemux86_64-*/xtf-image/*/testimage/qemu_boot_log.*
 * Observe the tests running once boot has completed:
 tail -f ${TMPDIR}/work/qemux86_64-*/xtf-image/*/temp/log.do_testimage

The XTF test sequence by default is a single XTF test case with minimal
hardware dependency to ensure that Xen is running, the Xen toolstack is
functional and XTF works. Additional XTF test cases for an image can be
configured via variables that are documented in the OEQA test case:
   * XTF_TEST_CASES_POPULATE
   * XTF_TEST_CASES_SKIP
   * XTF_TEST_CASES_REQUIRE

Since testimage requires a functioning network to perform the tests on
the image and the qemu MACHINES do not have networking enabled
this commit provides a new qemuboot-testimage-network bbclass to add an
image postprocess command to enable a functional eth0 for qemu MACHINES.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-02 16:36:23 -04:00
Christopher Clark
12fb6aaffe xtf-image: update qemuboot settings
QB_MEM is now set via the qemuboot-xen-defaults bbclass and has the
better default value of 512MB, which fixes some test failures observed
when using the lower previous default value of 400MB.

The SYSLINUX_XEN_ARGS method of setting the intended dom0 memory level
did not take effect in practice, so remove it.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-02 16:36:23 -04:00
Christopher Clark
edbfd0c10d xtf-image: fix QB_DEFAULT_FSTYPE: only needed for x86-64 qemu
The qemuboot launch method for x86-64 uses wic but Arm does not.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-02 16:36:23 -04:00
Christopher Clark
5ae8ad3316 xen-image-minimal: supply bootloader config for qemux86-64 machine
Add a dedicated bootloader config for the qemux86-64 machine so that the
'pmtmr=0' kernel command line argument can be provided, which removes an
error message that otherwise occurs in syslog during boot which is
detected by an OEQA test case causing it to fail.

A new kickstart file is provided that applies the new bootloader config
and it is supplied as an override to WKS_FILE for this image.

This is work towards enabling the Xen Test Framework (XTF) in the OEQA
testimage framework.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-09-02 16:36:23 -04:00
Christopher Clark
c8e57e4f22 xen, xen-tools: apply workaround for gnu linker error to fix x86 build
Upstream patch applied to each Xen and Xen tools recipe to fix the build
of the hypervisor and shim with GNU linker 2.37.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-27 10:50:45 -04:00
Bruce Ashfield
c408dd71d9 uxen: update guest tools to 4.1.8
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-27 10:50:45 -04:00
Bruce Ashfield
1b6e39e426 global: overrides conversion pass 2
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-02 17:18:08 -04:00
Bruce Ashfield
d876cfc5bf global: overrides syntax conversion
OEcore/bitbake are moving to use the clearer ":" as an overrides
separator.

This is pass one of updating the meta-virt recipes to use that
syntax.

This has only been minimally build/runtime tested, more changes
will be required for missed overrides, or incorrect conversions

Note: A recent bitbake is required:

    commit 75fad23fc06c008a03414a1fc288a8614c6af9ca
    Author: Richard Purdie <richard.purdie@linuxfoundation.org>
    Date:   Sun Jul 18 12:59:15 2021 +0100

        bitbake: data_smart/parse: Allow ':' characters in variable/function names

        It is becomming increasingly clear we need to find a way to show what
        is/is not an override in our syntax. We need to do this in a way which
        is clear to users, readable and in a way we can transition to.

        The most effective way I've found to this is to use the ":" charater
        to directly replace "_" where an override is being specified. This
        includes "append", "prepend" and "remove" which are effectively special
        override directives.

        This patch simply adds the character to the parser so bitbake accepts
        the value but maps it back to "_" internally so there is no behaviour
        change.

        This change is simple enough it could potentially be backported to older
        version of bitbake meaning layers using the new syntax/markup could
        work with older releases. Even if other no other changes are accepted
        at this time and we don't backport, it does set us on a path where at
        some point in future we could
        require a more explict syntax.

        I've tested this patch by converting oe-core/meta-yocto to the new
        syntax for overrides (9000+ changes) and then seeing that builds
        continue to work with this patch.

        (Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284)

        Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-02 17:17:53 -04:00
Christopher Clark
19347a7c4e qemuboot, xen-image-minimal: enable runqemu for qemuarm64 Xen images
The Xen hypervisor built for Arm 64-bit targets can be launched with
runqemu by providing a Device Tree binary and configuration for Qemu,
which enables interactive testing of Xen images.

Add qemuboot-xen-dtb.bbclass to add a new bitbake task for generating
the dtb file by using lopper on a device tree produced by Qemu.

Add qemuboot-xen-defaults.bbclass to supply working default parameters
for the qemuarm64 machine and general support for qemuboot for Xen,
and adjust the defaults as needed to boot successfully in testing.

Development aided by this script by Stewart Hildebrand of DornerWorks:
https://gist.github.com/stewdk/110f43e0cc1d905fc6ed4c7e10d8d35e

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-29 10:55:56 -04:00
Martin Jansa
281ac2184b uxen-guest-tools: inherit dos2unix to fix do_patch failure
* fixes:
  ERROR: uxen-guest-tools-4.1.7-r0 do_patch: Command Error: 'quilt --quiltrc /OE/build/oe-core/tmp-glibc/work/qemux86_64-oe-linux/uxen-guest-tools/4.1.7-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
  stdout: Applying patch fix-Makefile-for-OE-kernel-build.patch
  patching file Makefile
  Hunk #1 FAILED at 1 (different line endings).
  Hunk #2 FAILED at 19 (different line endings).
  2 out of 2 hunks FAILED -- rejects in file Makefile
  Patch fix-Makefile-for-OE-kernel-build.patch does not apply (enforce with -f)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-23 12:53:29 -04:00
Christopher Clark
62137a394f xen-tools: remove Arm 32-bit compiler flags override
The SECURITY_FLAGS are already passed into the tools build in
HOST_CC_ARCH so this separate case override is not needed.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-14 15:33:10 -04:00
Christopher Clark
c1cdd76a47 xtf: fix build with gcc11 SRCREV and specifying linker
Newer XTF revision works around GCC 11.1 issue 99578 and
supplying the correct linker to use fixes the build.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-14 15:33:10 -04:00
Christopher Clark
3e128c1bcd xen, xen-tools: fix build and passing of CFLAGS via Xen vars
Ensure that the Xen build system variables EXTRA_CFLAGS_XEN_CORE and
EXTRA_CFLAGS_XEN_TOOLS are passed into the compile steps.

Update the hypervisor compilation to avoid passing in most compile flags
from the build environment via EXTRA_CFLAGS_XEN_CORE -- prefer the
compiler defaults and the flags set by the Xen build system, so only the
debug prefix flags are provided.

Observeration derived from the prior commit e99974aa, so:
Reported-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-14 15:33:10 -04:00
Christopher Clark
4d61693058 xen, xen-tools: apply upstream fixes for gcc11 compilation
Apply patches for the tools and hypervisor to Xen 4.15 and the git
recipe and uprev Xen 4.14 to latest stable revision.
Retire the previous -Wno-vla-parameter workaround.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-14 15:33:10 -04:00
hongxu
6459b6544b Revert "nagios-nsca: blacklist recipe due to unsupported libmcrypt"
The libmcrypt build issue has been fixed by oe

This reverts commit e7a0ea3e0f.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-07 15:42:17 -04:00
Ross Burton
e0bf8958bb dev86: don't require dev86-native to build dev86
Instead of installing binaries and patching the makefiles to run external commands, simply
build ifdef using BUILD_CC instead of CC.

This patch is now upstreamable, the recipe is less complicated, and nativesdk works.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-30 11:19:03 -04:00
Ross Burton
449cfdef60 dev86: work on all hosts, other cleanups
Remove COMPATIBLE_HOST, whilst this is an x86 assembler there's nothing to stop
you building it on or for arm64 and assembling x86 code.

Override INEXE so that binaries are not stripped and remove INSANE_SKIP.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-30 11:19:02 -04:00
Bruce Ashfield
d281b8b55c libvmi: upadte to 0.14.0
Integrating the following commits:

   3f5b0d5 Wire up cpuid events on kvmi (#975)
   8cdef96 Clear up event example even more (#974)
   548da8d Simplify event-example (#973)
   cffe055 Clean up on partial init failure (#972)
   fb2e006 Add snapcraft.yaml (#961)
   582fc95 Add vmtrace (IPT) buffer offset to vm_event ABI (#960)
   8b88b72 Turn on all debug options for scan-build test (#959)
   719d90f Debug print in volatility_ist can segfault, fix (#958)
   19379a9 Remove temp file accidentaly added to git (#957)
   f686145 Nested support (#956)
   6d65cc3 Add AC_PROG_CC_C99 to configure.ac (#955)
   e21df55 Add more files to gitignore (#954)
   d9e490e Container build test (#953)
   c68d899 Switch to using Github Actions for CI (#952)
   6d07174 Bump version to 0.15.0 (odd-numbered dev version) (#951)
   1ae3950 examples: fix reinjection in breakpoint-recoil-example (#945)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-04 08:43:11 -04:00
Bruce Ashfield
9bacb690c1 irqbalance: update to 1.8.0
Integrating the following commits:

   bd5aaf5 Fix comma typo in ui.c
   43751df drop NoNewPrivs from irqbalance service
   066499a remove no existing irq in banned_irqs
   ee6b3bd Fix compile issue with none AARCH64 builds
   d17bcc9 Fix irqbalance cannot obtain the full name of irq
   99ae256 Updating irqbalance to v1.8.0
   47f0f26 Add return value check of opendir in do_one_cpu
   518d81c Hotplug may occur again during sleep, so wait until there is no hotplug
   fe0b99e ui: fix cpu/irq menu off by one
   0cdc7a2 fix uint64_t printf format (use PRIu64)
   31dea01 Also fetch node info for non-PCI devices
   ef9bf64 Add hot pull method for irqbalance
   6ae114f Add log for hotplug appropriately
   0ba4a60 add irq hotplug feature for irqbalance
   004c7ab Remove some unused constant macros in constants.h
   c995237 Add a deprecation notice for IRQBALANCE_BANNED_CPUS
   31c7d12 Add IRQBALANCE_BANNED_CPULIST to env file
   6fe0329 log correctly for isolated and nohz_full cpus
   04e5ce0 Update README.md
   4019fe6 Add some examples for IRQBALANCE_BANNED_CPUS
   b3f95be Adjust how we determine if a cpu is online
   c8757c6 activate_mapping: activate only online CPUs
   677b686 add env variable to ban cpus using cpulist syntax
   f6fcd3e put arg parsing detail into parse_command_line()

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-04 08:43:10 -04:00
Bruce Ashfield
b71f6be77b kvmtool: update to -latest
Integrating the following commits:

   415f92c arm: Fail early if KVM_CAP_ARM_PMU_V3 is not supported
   117d649 virtio: add support for vsock
   382eaad hw/rtc: ARM/arm64: Use MMIO at higher addresses
   45b4968 hw/serial: ARM/arm64: Use MMIO at higher addresses
   f01cc77 arm: Reorganise and document memory map
   7e19cb5 Remove ioport specific routines
   1f56b9d pci: Switch trap handling to use MMIO handler
   205eaa7 virtio: Switch trap handling to use MMIO handler
   579bc61 vfio: Switch to new ioport trap handlers
   a4a0dac vfio: Refactor ioport trap handler
   59866df hw/serial: Switch to new trap handlers
   47a5106 hw/serial: Refactor trap handler
   38ae332 hw/vesa: Switch trap handling to use MMIO handler
   123ee47 hw/rtc: Switch to new trap handler
   8c45f36 hw/rtc: Refactor trap handlers
   3adbcb2 x86/ioport: Switch to new trap handlers
   8230499 x86/ioport: Refactor trap handlers
   d24bedb hw/i8042: Switch to new trap handlers
   f7ef3dc hw/i8042: Refactor trap handler
   fc76962 hw/i8042: Clean up data types
   96f0c86 mmio: Extend handling to include ioport emulation
   9bc7e2c ioport: Retire .generate_fdt_node functionality
   a81be31 hw/serial: Use device abstraction for FDT generator function
   97531eb ioport: Remove ioport__setup_arch()

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-04 08:43:10 -04:00
Saul Wold
8ded083436 ceph: Fix compile error with snappy
snappy changed a data type in the last update, this is a known
issue in ceph.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-01 08:52:18 -04:00
Saul Wold
638d31de13 ceph: update to 15.2.12 to address CVEs
Updated sha*

Fixes: CVE-2021-3509
Fixes: CVE-2021-3524
Fixes: CVE-2021-3531

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-21 23:18:04 -04:00
Martin Jansa
950386a988 libvirt: fix do_install with usrmerge
* meson build uses these paths:
  ./src/meson.build:    systemd_unit_dir = prefix / 'lib' / 'systemd' / 'system'
  ./tools/meson.build:    install_dir: prefix / 'lib' / 'systemd' / 'system',

  with usrmerge it fails with:
  sed: can't read TOPDIR/tmp-glibc/work/core2-64-oe-linux/libvirt/7.2.0-r0/image//usr/lib/systemd/system/libvirtd.service: No such file or directory
  because systemd_unitdir and systemd_system_unitdir are different
  with and without usrmerge in DISTRO_FEATURES:

  env.libvirt-without-usrmerge:export systemd_unitdir="/lib/systemd"
  env.libvirt-with-usrmerge:export systemd_unitdir="/usr/lib/systemd"

  env.libvirt-without-usrmerge:export systemd_system_unitdir="/lib/systemd/system"
  env.libvirt-with-usrmerge:export systemd_system_unitdir="/usr/lib/systemd/system"

* set -Dinit_script to none when systemd isn't used instead of
  deleting the files in do_install_append

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-19 09:26:02 -04:00
Martin Jansa
07ed07b9f1 libvirt: backport patch to fix compatibility with Meson-0.58
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-17 10:28:54 -04:00
Martin Jansa
af588c3034 dev86: remove the pre-generated token[12].h and force gperf to generate them in do_compile
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-05-14 11:06:06 -04:00
Martin Jansa
09c3281d44 dev86: fix compatibility with gperf-3.1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-05-14 11:06:06 -04:00
Martin Jansa
d1e08a20d1 dev86: depend on dev86-native for ifdefg
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-05-14 10:06:02 -04:00
Martin Jansa
b67e57e54e dev86: switch to still maintained fork of dev86
* as mentioned in:
  https://github.com/lkundrak/dev86/pull/17
  the original lkundrak repo is no longer maintained

* pass only BASE_PV as VERSION in EXTRA_OEMAKE to prevent:
  | version.h:4:20: error: ‘gitAUTOINC’ undeclared (first use in this function)
  |  #define VER_PAT 21+gitAUTOINC+e254e0b196
  |                     ^

* there are many new commits, we need at least that fix for
  newer gperf

git log --oneline v0.16.21..jbruchon/master
e254e0b (jbruchon/master) Merge pull request #21 from tkchia/master
3473bde [libc] update _signal syscall semantics, per ABI change in ELKS at https://github.com/jbruchon/elks/pull/629
d74e90d Merge pull request #20 from tkchia/tkchia/update-syscalls
541a8d5 [libc] update syscall list & ino_t type, per ELKS tree
710e852 Merge pull request #16 from spacerace/master
b215454 Merge pull request #17 from mfld-fr/master
870635e Move EMU86 & MON86 to standalone projects
84e3d00 [mon86] Latest touch before moving
c2f288c [emu86] Latest touch before moving
f7449f3 libc tests for MSDOS target (far away from complete ;))
6cbd64d fixing problem in string.h introduced by myself -.-
39e04cd Merge branch 'master' of https://github.com/spacerace/dev86
b44e43d Added OpenBSD's timingsafe_bcmp() and timingsafe_memcmp()
857c30e Added BSD's strlcat() and strlcpy(), safe string copy/cat
0764e09 typo in string.h
2fb6a3a swab()
4e09d08 strupr()
2bd985f strset()
5a7bb33 strrev()
56be26a strnset()
c919b2d strlwr()
b63f295 h+Mf bzero() strnset() strset() strlwr() strupr() strrev() swab()
5985246 removed old implementation of strstr. if anyone needs this file => remains in git history
7b481c0 added bzero()
776929c Merge pull request #15 from spacerace/master
8206ed2 stdlib.h + Makefile changes for getenv() and system()
b995d1e getenv() implementation
60466fe system() implementation
12439ac note on __mkenv (related to getenv commits from me)
aae041a removed empty line on top of file
6d6d91f removed uneeded empty file (see sound.c)
ff7d37e formatting (tabs)
246418a formatting in one line fixed
4ff1f48 Merge pull request #14 from mfld-fr/emu86
1b8f8db Add data & suspicious opcode breakpoints
798c4a2 Merge pull request #13 from rdebath/jbruchon
2eb4d82 Add .travis.yml for running "make distribution" tests.
2ea54e1 Merge pull request #12 from mgorny/makez
f14f78e build: Always use $(MAKE) to spawn sub-make
dfb9b42 Merge pull request #11 from mfld-fr/emu86
6ae2b54 Make dev86 working "in tree"
224843f Merge pull request #10 from mfld-fr/emu86
e56a958 [emu86] Test against ELKS - Round 3
0099ec8 Merge pull request #9 from mfld-fr/emu86
32865c8 [emu86] Test against ELKS - Round 2
e1aa9bd Merge pull request #8 from mfld-fr/emu86
c7ebb2a [emu86] Optimize execution lookup
57019a7 [emu86] Complete decoding optimization
de516a5 [emu86] Fix mfld-fr#21 : opcode 90h (NOP)
40f7c99 [emu86] Optimize decoding < C0h
91d4c61 [emu86] Fix mfld-fr#16 : add pcat timing options
d519caf [emu86] Fix mfld-fr#14 : trace support
3a479e7 [emu86] Check vector before interrupt
7eec401 Optimize decoding < 80h
98334d3 Fix mfld-fr#8 and warning cleanup
0579c82 Merge pull request #7 from mfld-fr/master
49492b9 [emu86] Add option for tiny model
da6a960 [emu86] fix #19 : remove PT1 test
e3b465f [dis88] Move back from ELKS
f2ea895 Merge pull request #6 from mfld-fr/master
b0700f4 [mon86] First stage removal after second validated
6ef705d [mon86] Fix #18 : Complete host tool
1fa5a70 Fix #10 and #11 : Target specific code
22c7770 Merge branch 'bug86'
e25c996 [mon86] Tune host tool for read & write
47aadb5 [mon86] Fix #15 : Cleanup in host tool
ae7c628 [mon86] Makefile for host part + more testing
ae6c84a [mon86] New host tool + fix context parsing
c9205ac Add missing void types to libc/misc/qsort.c
7a4f074 unproto: fix macOS Sierra compilation error reported by scontini76
ac6d924 unproto: better CFLAGS
f86ad57 bcc: if EOF is hit before end of comment, report it as an error
fcdbcd7 limits.h: add PATH_MAX
7239fea include: Add a skeleton for inttypes.h
f3e88f9 Remove accidental ignoring of "include"
0ac417a Merge branch 'master' of https://github.com/jbruchon/dev86
74753fa Fix size_t declaration, add ssize_t declaration
4be53b7 Merge pull request #5 from mfld-fr/master
d5ecd9c [mon86] Second stage tested on real SBC
81b0ab2 [mon86] Second stage monitor completed
b55cbbc [mon86] Trace & break interrupt support
18a5ba8 Merge pull request #4 from mfld-fr/master
77f028b [mon86] First stage monitor completed
07689d4 Merge remote-tracking branch 'upstream/master'
e043007 Revert accidental bcc changes in commit 3c83dee
495b99a [emu86] Test against ELKS - Round 1
5508efa Merge pull request #3 from mfld-fr/master
8aa3313 [emu86] Testing against a real ROM - Round 1
d8ac93e [emu86] Fixed #7 : segment selection & override
5b521d6 [emu86] Test against a real POST - Round 2
3c83dee [emu86] Test against a real POST - Round 1
b45a3d2 [emu86] Command line options
345513c [emu86] Fixed #6 : simplified variable size
2d7d316 [emu86] Fixed #2 + FAR call & ret
8ac48bf Import MON86 standalone project needed by EMU86
1da15c0 Bug fixes after EMU86 testing
1dc5fd3 Merge pull request #2 from mfld-fr/master
24935c0 [emu86] Final touch before the weekend
9090120 [emu86] Fixed #5 : redirect serial I/O to PTS
96dfb1a [emu86] Added memory and stack dumps
4fbcead [emu86] Fixed #1 : move reg num out of val struct
205e47d Improved EMU86 for MON86 testing
377ed40 Merge branch 'master' into emu86
fd3cf7e Added partial ZF and CF flags support
c758426 Merge pull request #1 from mfld-fr/master
72ad336 Merge branch 'master' of git://github.com/jbruchon/dev86 into emu86
2d8398b More support of 8086 instruction set
b2eadba EMU86 second draft
9a8e116 EMU86 first draft
fb3b436 Revert "fix linker alignment for .bss segment"
bf19066 Merge https://github.com/anchorz/dev86-1
4e8476e Revert "copt: fix a minor glitch in copt/rules.86"
1bcc185 Merge remote-tracking branch 'upstream/master'
b0426b2 Force output of initial segment directive
a44b267 fix linker alignment for .bss segment
c0832c8 under CYGWIN bcc requires -o option to compile an .o file otherwise it ends up as .exe and cannot link
80d485b (origin/master, origin/HEAD) Add stdint.h header to recognize some C99 types
29dbfca libc/msdos: program name missing in argv[0]
b0e9b25 libc/msdos: __mkargv es register changed
4a350d3 ar: rename of temporary libary fails on some platforms
cf72284 copt: fix a minor glitch in copt/rules.86
ce888f6 Allow copt rules with empty outputs; fix minor glitch in copt/rules.86
4ed1997 bcc/dbprintf.c: ix implicit declaration warnings
9de6f00 Make a.out.h portable to 64 bit systems
7eae1c0 Change strstr() to Jody's two-way implementation
2f53e83 Add a .gitignore file
c21e14a initial version with minimal routines
fa9c32e Add stdint.h header to recognize some C99 types
6e8432b Minor style cleanups
b7a191c Add "make distclean" and make it really clean everything
dab04fb bootblocks: long -> int32_t for proper building on 64-bit hosts
0d9ee41 bootblocks requires as86_encap to build

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-14 08:28:42 -04:00
Martin Jansa
23ea2ea679 dev86: add dependency on gperf-native
* fails to build on hosts without gperf:
  /bin/sh: gperf: command not found
  Makefile:27: recipe for target 'token2.h' failed

* normally this isn't triggered, because token[12].h
  are included in git repo, but regenerating them fails:
  tmp-glibc/work/x86_64-linux/dev86-native/0.16.21-r0/git/cpp$ touch token1.tok
  tmp-glibc/work/x86_64-linux/dev86-native/0.16.21-r0/git/cpp$ make bcc-cpp
  gperf -aptTc -N is_ctok -H hash1 token1.tok > tmp.h
  /bin/sh: gperf: command not found
  Makefile:23: recipe for target 'token1.h' failed
  make: *** [token1.h] Error 127

* unfortunately this isn't enough, because new gperf 3.1 from oe-core
  isn't compatible, we need to upgrade to different dev86 fork which
  contains:
  https://github.com/jbruchon/dev86/pull/19

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-14 08:28:42 -04:00
Martin Jansa
343665d403 ipxe: set PV
ipxe/gitrAUTOINC+18dc73d27e-r0/git$ git describe --tags
  v1.20.1-1-g18dc73d2

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-14 08:28:42 -04:00
Martin Jansa
aea26f7791 ipxe: Inhibit -Werror to fix build with gcc-11
* with gcc-11 it fails with:
  drivers/net/ath/ath5k/ath5k_eeprom.c:437:65: error: 'val' may be used uninitialized [-Werror=maybe-uninitialized]
    437 |                 ee->ee_switch_settling_turbo[mode] = (val >> 8) & 0x7f;
        |                                                      ~~~~~~~~~~~^~~~~~

  tests/bigint_test.c: In function 'bigint_test_exec':
  tests/bigint_test.c:232:14: error: 'result_raw' may be used uninitialized [-Werror=maybe-uninitialized]
    232 |         ok ( memcmp ( result_raw, expected_raw,                         \
        |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    233 |                       sizeof ( result_raw ) ) == 0 );                   \
        |                       ~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-14 08:28:42 -04:00
Martin Jansa
670fbe932c upx: fix build with gcc-11
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-14 08:28:42 -04:00
Diego Sueiro
e99974aa57 xen-tools: Pass -Wno-vla-parameter to workaround when compiling with gcc-11
When compiling xen-tools (4.14 and 4.15) with gcc-11 the following kind of
errors are produced:

linux.c:164:50: error: argument 7 of type 'const xen_pfn_t[]' {aka 'const long unsigned int[]'} declared as an ordinary array [-Werror=vla-parameter]
  164 |                                  const xen_pfn_t arr[/*num*/], int err[/*num*/])
      |                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~

Workaround it by passing -Wno-vla-parameter to the compiler.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-06 16:40:28 -04:00
Bruce Ashfield
6c991dab48 xen-python2: drop recipe
python2 is no longer supported, and we are breaking yocto layer
compatibilty by keeping this recipe around (since there is no
provider of 'python').

This hasn't been updated in over a year, so it is time to retire
it.

If it is required, we can bring it back in some other manner.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-26 11:17:27 -04:00
Yanfei Xu
9f359865c4 libvirt: uprev v6.3 -> v7.2
This upgrade spans 9 small release. The detailed realese logs could
refer to: https://gitlab.com/libvirt/libvirt/-/blob/master/NEWS.rst

Libvirt's buildsystem has changed to meson, So this upgrade drop some
obsolete patches applied to makefile.

I ran libvirt testcase and ovs testcase for this upgrade, the summary
as follow:

libvirt_test (keyword: ) test results:
*1 Run libvirt_test testing(do_test1)                          PASS
*2 Check result (virsh_local_capabilities)                     PASS
*3 Check result (virsh_local_domcapabilities)                  PASS
*4 Check result (virsh_local_freecell)                         PASS
*5 Check result (virsh_local_help)                             PASS
*6 Check result (virsh_local_hostname)                         PASS
*7 Check result (virsh_local_iface-begin)                      PASS
*8 Check result (virsh_local_iface-commit)                     PASS
*9 Check result (virsh_local_iface-list)                       PASS
*10 Check result (virsh_local_list)                            PASS
*11 Check result (virsh_local_maxvcpus)                        PASS
*12 Check result (virsh_local_net-list)                        PASS
*13 Check result (virsh_local_nodecpumap)                      PASS
*14 Check result (virsh_local_nodecpustats)                    PASS
*15 Check result (virsh_local_nodedev-list)                    PASS
*16 Check result (virsh_local_nodeinfo)                        PASS
*17 Check result (virsh_local_node-memory-tune)                PASS
*18 Check result (virsh_local_nodememstats)                    PASS
*19 Check result (virsh_local_nwfilter-binding-list)           PASS
*20 Check result (virsh_local_nwfilter-list)                   PASS
*21 Check result (virsh_local_pool-capabilities)               PASS
*22 Check result (virsh_local_pool-list)                       PASS
*23 Check result (virsh_local_pwd)                             PASS
*24 Check result (virsh_local_secret-list)                     PASS
*25 Check result (virsh_local_sysinfo)                         PASS
*26 Check result (virsh_local_uri)                             PASS
*27 Check result (virsh_local_version)                         PASS

openvswitch_vm2vm (keyword: qemux86) test results:
*1 openvswitch_vm2vm testing(do_test1)                         PASS
*2 Check result (ovs_vm2vm_boot_guest1)                        PASS
*3 Check result (ovs_vm2vm_boot_guest2)                        PASS
*4 Check result (ovs_vm2vm_netperf_test)                       PASS
*5 Check result (ovs_vm2vm_destroy_guest1)                     PASS
*6 Check result (ovs_vm2vm_destroy_guest2)                     PASS
*7 check testcase call trace(do_check_call_trace)              PASS

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-22 10:18:06 -04:00
Christopher Clark
d5aa7e668d xtf: update SRCREV and remove multilib dependency
The latest Xen Test Framework has removed the gcc-multilib dependency.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-20 17:00:12 -04:00
Christopher Clark
2406c1785d xen-tools: remove multilib build requirement for x86-64
Xen 4.15 added support for standalone x86-64 hvmloader build and
previous commit provided Xen 4.14 backports.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-20 17:00:12 -04:00
Christopher Clark
298237cbad xen-tools: add patches for 4.14 to enable dropping multilib build
Backport Xen patches to enable hvmloader to be built without needing
32-bit glibc.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-20 17:00:12 -04:00
Bruce Ashfield
c82ae4dc12 Revert "xen: drop 4.14 recipes"
This reverts commit 069414da38.
2021-04-19 10:53:19 -04:00
Bruce Ashfield
069414da38 xen: drop 4.14 recipes
As per the policy, we'll keep 4.15 and 4.16+ in master, while
leaving 4.14 availability in the hardknott branch.

Further on in the development cycle, we'll add 4.16 and move
dev to 4.17+ before release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-18 23:05:43 -04:00
Christopher Clark
7f18136e1f xtf-image: add a new image for the Xen Test Framework
Testing the Xen hypervisor, with the qemux86-64 MACHINE:
    runqemu xtf-image nographic slirp
        (login as root)
        cd /usr/libexec/xtf
        ./xtf-runner --list pv
        # run an example test:
        ./xtf-runner test-pv64-livepatch-priv-check

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-18 20:19:28 -04:00
Christopher Clark
5f51e806b8 xtf: introduce recipe for the Xen Test Framework
Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-18 20:19:28 -04:00
Christopher Clark
e9bda61a3d xen, xen-tools: Document the version update process in README
Describes the versions of Xen to be included in meta-virtualization
and recipe maintenance in release branches.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-18 20:19:28 -04:00
Christopher Clark
935223e07f xen, xen-tools: uprev git recipes after 4.15 release
Updated to the branch point for 4.16 development.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-18 20:19:23 -04:00
Christopher Clark
ade44e12ad xen, xen-tools: add recipes for new stable Xen 4.15 release
The recipes are introduced as the non-default version by adding an
expressed PREFERRED_VERSION for 4.14 in:
    conf/distro/include/meta-virt-default-versions.inc

to keep the Xen 4.14 recipes as default for the Hardknott release.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-18 20:19:22 -04:00
Christopher Clark
1c0d8a026d xen-tools: fix 32-bit x86 build by setting pvshim configure flags
Enable building the PV shim for x86_64 only.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-18 20:19:18 -04:00
Martin Jansa
27f8c49f8c dev86: fix ldflags QA issue by passing LDFLAGS
ERROR: dev86-0.16.21-r0 do_package_qa: QA Issue: File /usr/lib/bcc/unproto in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/lib/bcc/bcc-cpp in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/lib/bcc/copt in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/lib/bcc/bcc-cc1 in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/bin/ld86 in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/bin/ar86 in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/bin/size86 in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/bin/nm86 in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/bin/as86 in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/bin/objdump86 in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /usr/bin/bcc in package dev86 doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]
ERROR: dev86-0.16.21-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-06 20:36:34 -04:00
Martin Jansa
f108906d2b dev86: upgrade to 0.16.21 and fix SRC_URI
* don't use github archives
* upgrade to fix build with security-flags.inc enabled, fixed upstream in:
  537e806f8c

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-06 20:36:34 -04:00
Martin Jansa
8f06d92095 ipxe: force using ld.bfd even when ld-is-gold is in DISTRO_FEATURES
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-06 20:34:26 -04:00
Martin Jansa
b7dba4e73f ipxe: fix SRC_URI
* git.ipxe.org is gone:
  fatal: unable to access 'https://git.ipxe.org/ipxe.git/': Couldn't connect to server

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-06 20:34:26 -04:00
Martin Jansa
4c07340275 ipxe: add the same COMPATIBLE_HOST restriction as syslinux
* this depends on syslinux

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-06 20:34:26 -04:00
Martin Jansa
32267ea487 nagios-*: add conditional PNBLACKLIST, because of the dependency on meta-webserver
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-06 20:34:26 -04:00
Zqiang
2e5f311548 ceph: uprev from 15.2.8 to 15.2.9
Notable Changes:
1. progress module can now be turned on/off, using the
commands: ceph progress on and ceph progress off.
2. PG removal has been optimized in this release.

Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-03-30 16:42:52 -04:00
Zqiang
31a5facbef libvmi: uprev from 0.12 to 0.14
Bump version to 0.14.
This upgrade is mainly to fix some BUG.

Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-03-30 16:42:07 -04:00
Bruce Ashfield
6cae8b8adf k3s: import version locked upx dependency
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-03-15 23:15:42 -04:00
Yanfei Xu
69c9ed9a1d irqbalance: upgrade 1.6.0 -> 1.7.0
Miscellaneous bug fix release, consisting of:

  Strlen checking for IRQBALANCE_BANNED_CPU env var
  Typo cleanup in SOCKET_TMPFS
  consolidation of numa node creation on non-numa systems
  fix uninitialized use of package_mask in affinity setup
  use num_online_cpus instead of core_count
  fix a null ptr crash in do_one_cpu
  make list searching common from glib
  fix a calloc parameter bug
  remove some unused variables
  use g_list_free_full
  remove redundant call to free_cl_opts
  fix some resource leaks in main()
  fix some use after free issues in check_for_irq_ban
  fix resource leaks in irqballance-ui, and in add_one_node

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-03-09 22:36:36 -05:00
Bertrand Marquis
e7a6b73133 seabios: upgrade to version 1.14.0
Upgrade version of seabios to the latest one.
This is solving compilation errors happening with newer version of gcc
introduced in poky which in the following error after some warnings:
"x86_64-poky-linux-ld: cannot use executable file 'out/rom16.strip.o' as
input to a link"

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-03-09 22:36:09 -05:00
Changqing Li
2238294987 nagios-core: update RDEPENDS
fix following error during do_rootfs:
nothing provides php needed by nagios-core-4.4.6-r0.corei7_64
(try to add '--skip-broken' to skip uninstallable packages)

Since commit c4ffcaa2 [php: split out phpdbg into a separate package],
package php is empty.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-03-09 22:35:41 -05:00
Bertrand Marquis
8b32646875 xen: Bump SRCREV to 4.14.1 and current master
Bump SRCREV version of xen recipes to use the latest 4.14 release
(4.14.1) and the current status of master.

This allows to remove some patches related to gcc 10 support which have
now been merged in Xen.

Xen-tools is modified to include the latest tools installed with Xen:
- a rename of the bash-completion,
- a new xl example,
- xen-access,
- xen-memshare (only available on x86).

A new patch to fix python and pygrub is added as the makefiles have been
deeply modified in 4.15 which require a new patch (but doing the same).

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-03-04 22:40:57 -05:00
Martin Jansa
7094239a63 libvirt-python: inherit python3targetconfig
* otherwise libvirt build will incorrectly use host's gcc and fail with:
  gcc: error: unrecognized command line option "-fmacro-prefix-map=/OE/libvirt/6.1.0-r0=/usr/src/debug/libvirt/6.1.0-r0"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-09 08:21:36 -05:00
Martin Jansa
211925d7f4 Revert "libvirt: fix host gcc can't recognized option -fmacro-prefix-map"
This reverts commit 08b5de42f9.

libvirt shouldn't be using host's gcc to build python module, this issue
is caused by missing inherit of python3targetconfig instead added in:
https://git.openembedded.org/openembedded-core/commit/?id=5a118d4e7985fa88f04c3611f8db813f0dafce75

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-09 08:21:36 -05:00
Yi Fan Yu
e7a0ea3e0f nagios-nsca: blacklist recipe due to unsupported libmcrypt
nagios-nsca depends on libmcrypt...
However, libmcrypt is considered as abandonware
The last release was in 2007.

libmcrypt might not be building properly with
the upgrade of autoconf to 2.71.

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-07 08:48:39 -05:00
Bruce Ashfield
436b60e582 kvmtool: refresh to 5.10 version
Grabbing the latest kvmtool sources. These follow kernel numbering,
so we bump that to 5.10 to match.

We also drop one patch that is part of the main repo now, and
refresh the others to avoid fuzz warnings.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-07 08:43:53 -05:00
sakib.sajal@windriver.com
b8aa31c8c9 ceph: uprev v15.2.0 -> v15.2.8
Removed patches that are contained in newer version.
Contains fixes to CVES:
CVE-2020-27781
CVE 2020-25660
CVE-2020-10753
CVE-2020-10736
CVE-2020-1759
CVE-2020-1760

Built and run tested.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-12-28 22:54:19 -05:00
Naveen Saini
08b5de42f9 libvirt: fix host gcc can't recognized option -fmacro-prefix-map
libvirt-python picks host gcc (instead of cross gcc) to build shared
library in absense of LD*SHARED flags.

Instead of inherit distutils3-base.class, taking SHARED flags to create
libvirt-python package.

Ref: https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/distutils-common-base.bbclass

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-19 11:05:48 -05:00
sakib.sajal@windriver.com
968e4116a8 nagios-core: fix do_install during cross builds
Upstream started stripping built binaries by default, using
HOSTTOOLS install to strip binaries that are different in
architecture from the host, raising errors:

strip: Unable to recognise the format of the input file
TOPDIR/tmp-glibc/hosttools/install: strip process terminated abnormally

Hence, build unstripped binaries and let oe build system
strip the binaries during do_package.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-19 11:05:44 -05:00
Yanfei Xu
9fe997733d ceph: add support for python3.9
Add support for python3.9, or it will do_configure failed.

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-14 23:07:20 -05:00
sakib.sajal@windriver.com
6687be2233 ceph: add missing include for atomic<bool>
ceph do_compile failed with error:
src/tools/rbd/action/Bench.cc:20:26: error: aggregate 'std::atomic<bool>
terminating' has incomplete type and cannot be defined

Add missing include to fix it.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-14 23:07:13 -05:00
Bertrand Marquis
f7687c8b22 xen: Fix xenpmd compilation error on arm32
Add patch merged in current Xen master to solve compilation errors on
xenmpd when Xen is compiled for arm32.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Change-Id: Ifd94aa30e1b3a1016156ead395688f594ad2711d
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-14 22:59:03 -05:00
Bertrand Marquis
17660b5e8f xen: Fix python libraries installation on multilib
Fix install path for xen python libraries when multilib configuration is
activated (which is mandatory to compile xen for x86_64).
Depending on the version of Xen, the libraries are installed on lib or
on the nonarch lib directory so add both.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Change-Id: I1f7f81a4e9e1420bce55d1e4bfe03d98ac2c93a3
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-14 22:59:03 -05:00
Martin Jansa
82bca23d6a xvisor: fix build with gcc-10
* with gcc-10 (which doesn't include -fcommon by default) it fails like this:
  aarch64-oe-linux-ld: error: TOPDIR/BUILD/work/raspberrypi3_64-oe-linux/xvisor/git-r0/git/build/drivers/mmc/core/mmc.o: multiple definition of 'sdio_func_type'
  aarch64-oe-linux-ld: error: TOPDIR/BUILD/work/raspberrypi3_64-oe-linux/xvisor/git-r0/git/build/drivers/mmc/core/sdio_bus.o: multiple definition of 'sdio_func_type'
  aarch64-oe-linux-ld: error: TOPDIR/BUILD/work/raspberrypi3_64-oe-linux/xvisor/git-r0/git/build/drivers/mmc/core/sdio_io.o: multiple definition of 'sdio_func_type'
  aarch64-oe-linux-ld: error: TOPDIR/BUILD/work/raspberrypi3_64-oe-linux/xvisor/git-r0/git/build/drivers/mmc/core/sdio.o: multiple definition of 'sdio_func_type'
  aarch64-oe-linux-ld: TOPDIR/BUILD/work/raspberrypi3_64-oe-linux/xvisor/git-r0/git/build/drivers/mmc/core/core.o: previous definition here

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-09 23:03:58 -05:00
Martin Jansa
8e4b1e39a2 xvisor: skip QA checks ldflags and textrel
* feel free to fix it properly, I don't use xvisor at all
  it just shown these 2 errors in my aarch64 world builds
  and this recipe needs more love than just these 2 issues
  like setting PV to something better than "git"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-09 23:03:58 -05:00
Martin Jansa
8afc0b32da cloud-init: fix usrmerge QA error:
* respect udevdir variable
* with usrmerge cloud-init triggers QA error:
  ERROR: cloud-init-20.3-r0 do_package_qa: QA Issue: cloud-init package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge]
  ERROR: cloud-init-20.3-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
  because of:
  /lib/udev/rules.d/66-azure-ephemeral.rules

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-09 23:03:55 -05:00
Martin Jansa
19c3d8bab4 cloud-init: add dependency on systemd to fix installed-vs-shipped QA issue
* without systemd in RSS, setup.py will fail to call:
  "pkg-config systemd --variable=systemdsystemunitdir"
  and then clound-init might fail with:
  ERROR: cloud-init-20.3-r0 do_package: QA Issue: cloud-init: Files/directories were installed but not shipped in any package:
    /lib/systemd
    /lib/systemd/system-generators
    /lib/systemd/system
    /lib/systemd/system-generators/cloud-init-generator
    /lib/systemd/system/cloud-final.service
    /lib/systemd/system/cloud-init.service
    /lib/systemd/system/cloud-config.target
    /lib/systemd/system/cloud-init.target
    /lib/systemd/system/cloud-init-local.service
    /lib/systemd/system/cloud-config.service
  Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
  cloud-init: 10 installed and not shipped files. [installed-vs-shipped]

  when systemd on host or in the systemd fallback uses
  different systemdsystemunitdir value than what OE packages with:
  FILES_${PN}-systemd += "${systemd_unitdir}/*"

  setup.py fallback:
  def pkg_config_read(library, var):
    fallbacks = {
        'systemd': {
            'systemdsystemunitdir': '/lib/systemd/system',
            'systemdsystemgeneratordir': '/lib/systemd/system-generators',
        }
    }
    ..

  ubuntu:
  meta-virtualization$ pkg-config systemd --variable=systemdsystemunitdir
  /lib/systemd/system

  OE (with usrmerge in DISTRO_FEATURES):
  cloud-init/20.3-r0$ pkg-config systemd --variable=systemdsystemunitdir
  /usr/lib/systemd/system

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-09 23:03:55 -05:00
Bruce Ashfield
515f39e453 guest: import cloud-init from meta-openstack
Bringing cloud-init from meta-openstack into meta-virtualization to make
it more visible/obvious for use with Xen and k*s images.

Not only is this an import, it is a significant update to the package
and the way it is built.

Out of the box, it installs either systemd or sysvinit startup services,
templates and the main script/binary.

It is not expected that this will be useful out of the box, but will
need to be bbappended and have variables added to the main recipe to
make it flexible for more use cases.

But we can't gather those use cases, without the package being
available, so we integrate this as a starting point.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-05 14:39:32 -05:00
Bruce Ashfield
afef7f0635 container-base: make CONTAINER_SHELL a conditional image install
In some scenarios (and package managers), packages post install
scripts may have references to /bin/sh.

The package manager doesn't know if the scripts will run on the
build host or target, so we get a calculated redepnds on /bin/sh

base-files and base-passwd fall into this category of having
post installs, but no need for /bin/sh on the target.

If you know what you are installing, and want the smallest
container possible, this package will satisfy the dependency when
assembling the rootfs.

To enable it, put the following in a configuration file (local.conf
or otherwise):

    PACKAGE_EXTRA_ARCHS_append = " container-dummy-provides"

This image will detect if the dummy provides arch is set, and will
automatically install the providing recipe, otherwise, busybox is
installed.

If you have a custom shell or want a different behaviour, the
CONTAINER_SHELL variable can be overriden.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-05 14:39:32 -05:00
sakib.sajal@windriver.com
af5ed18c97 nagios-core: uprev v4.4.3 -> v4.4.6
Minor upgrade including bug and CVE fixes namely CVE-2020-13977

Testing:
Built, booted and started nagios-core service without any errors.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-03 16:29:42 -05:00
Diego Sueiro
cc99031c0b xen: extend SYSROOT_DIRS to include installed binaries
If a recipe DEPENDS on xen we should include its binaries in the sysroot.
The do_install task also ships files to /boot and /usr/lib64. Hence, extend
SYSROOT_DIRS to include these paths.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-03 16:28:25 -05:00
Diego Sueiro
3620511fad xen: run do_deploy after do_compile and do_populate_sysroot
When having rm_work and bitbake needs to re-run do_deploy, we need to ensure
that the ${B} is re-generated, otherwise the deploy-xen will be empty.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-03 16:28:24 -05:00
Chen Qi
d47e7143e0 nagios-core: use /run instead of /var/run in systemd service file
/var/run has been deprecated by systemd, so use /run instead,
as suggested by systemd.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-10-27 23:24:47 -04:00
Chen Qi
3f8f47e31e nagios-nsca: use /run instead of /var/run in systemd service file
/var/run has been deprecated by systemd, so use /run instead,
as suggested by systemd.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-10-27 23:24:47 -04:00
Bertrand Marquis
7a8167fa82 xen: Fix x86_64 xen-tools installation
Python related things are installed in /usr/lib and not /usr/lib64 even
if xen-tools is built for x86_64 with multilib activated.
Use nonarch_libdir variable for all python related files.

Change-Id: I24e4336aaac4477efc5dc7426a6d9e909c98a6af
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-10-15 10:57:16 -04:00
Bertrand Marquis
1d86197846 ipxe: Fix gcc10 compilation
Add ipxe patch to pass -fcommon flag to gcc during compilation.
This patch is required to have ipxe compiling properly with gcc10.

Without it the following error occur (and multiple others of the same
kind:
bin/blib.a(epic100.o):(.bss+0x0): multiple definition of `_shared_bss';
  bin/blib.a(davicom.o):(.bss+0x0): first defined here

Change-Id: Id9aed4cfe6bec9c0cbdb0b99271ddff472f1f0c3
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-10-14 20:34:04 -04:00
Bruce Ashfield
6f7475a1e2 hyperstart: update to latest commit
Although it appears abandoned, and has some build issues, updating
hyperstart to its newest commit to be a base for future work, or
simply be removed.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-10-08 10:50:28 -04:00
Bruce Ashfield
baf30af86f xen: make kernel modules an override possible variable
Sometimes Xen is built with different mixes of kernel modules and
built-in values. If we put our expected/default modules in a
variable, they can be overriden by a different kernel provider
as required

Signed-off-by: Bruce Ashfield <bruce.ashfield@xilinx.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-09-22 15:51:10 -04:00
Yanfei Xu
58765bd2c9 libvirt: Use /run in replace of /var/run in libvirt
To avoid systemd complains that the libvirt unit files use legacy
directory, we configure the libvirt with '--with-runstatedir=/run'
and do some minor changes.

------------------cut here----------------------
014: systemd[1]: /lib/systemd/system/virtlogd.socket:6: ListenStream=
references a path below legacy directory /var/run/, updating
/var/run/libvirt/virtlogd-sock → /run/libvirt/virtlogd-sock; please
update the unit file accordingly.
014: systemd[1]: /lib/systemd/system/virtlogd-admin.socket:8:
ListenStream= references a path below legacy directory /var/run/,
updating /var/run/libvirt/virtlogd-admin-sock →
/run/libvirt/virtlogd-admin-sock; please update the unit file
accordingly.
014: systemd[1]: /lib/systemd/system/virtlockd.socket:6: ListenStream=
references a path below legacy directory /var/run/, updating
/var/run/libvirt/virtlockd-sock → /run/libvirt/virtlockd-sock; please
update the unit file accordingly.
014: systemd[1]: /lib/systemd/system/virtlockd-admin.socket:8:
ListenStream= references a path below legacy directory /var/run/,
updating /var/run/libvirt/virtlockd-admin-sock →
/run/libvirt/virtlockd-admin-sock; please update the unit file
accordingly.
014: systemd[1]: /lib/systemd/system/libvirtd.socket:9: ListenStream=
references a path below legacy directory /var/run/, updating
/var/run/libvirt/libvirt-sock → /run/libvirt/libvirt-sock; please update
the unit file accordingly.
014: systemd[1]: /lib/systemd/system/libvirtd-ro.socket:11:
ListenStream= references a path below legacy directory /var/run/,
updating /var/run/libvirt/libvirt-sock-ro →
/run/libvirt/libvirt-sock-ro; please update the unit file accordingly.
......

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-09-21 17:32:39 -04:00
Bruce Ashfield
2f22425222 xen: make QB_ assignments weak
runqemu is looking for the QB_DEFAULT_KERNEL to be set to "none"
to trigger special processing. The current set of QB_DEFAULT_KERNEL=""
won't trigger that behaviour .. so we change the default.

We also make the assignments weak, to allow easier overrides in
specific implementations.

We also need a patch to qemuboot.bbclass to make the defaults ??=,
and when that is done, our ?= here will work properly.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-09-16 14:16:48 -04:00
Chen Qi
4d7eadcf5b nagios-core: fix build failure for gcc-10
gcc-10 uses '-fno-common' by default, which results in build
error complaining multiple definition.

Use '-fcommon' to fix this problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-09-02 16:30:40 -04:00
Bruce Ashfield
681ccdb175 xen: remove fuzz from ncurses patch
The ncurses patch was slightly mangled by email, so we devtool
refresh it to fix the fuzz warning.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-09-02 11:46:08 -04:00
Diego Sueiro
b2cd5f340e xen: Fix menuconfig and add support for config fragments and diffconfig
This patch introduces the following changes:

1. When building in OE environment the linker path needs to be passed when
   buildind the Kconfig tool in order to get the menuconfig task properly
   working.

2. By inheriting cml1.bbclass we can drop some environment variables
   settings in xen-hypervisor.inc for the menuconfig task, and also be
   able to search for config fragmens and use the diffconfig task. Also,
   there is no need to have a custom do_menuconfig task anymore.

Change-Id: I8d61ec76d92de7d1613b79edf55b4868fe712334
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-27 16:28:58 -04:00
sakib.sajal@windriver.com
83a75c6410 ceph: fix do_compile error: 'sys_siglist' was not declared
glibc 2.32 has deprecated sys_siglist, oe-core commit
7c19f30849e9a73a7497d8e6c4719a2e57017086, causing ceph
build to fail with error:

ceph-15.2.0/src/global/signal_handler.h:24:26: error: 'sys_siglist' was
not declared

ceph has support for using reentrant strsignal, hence use it.
See commit 82c40b67f5843162a93ebb2c1a006572d8f256a5 in upstream ceph.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-16 21:20:12 -04:00
Alistair Francis
3d27b83998 xvisor: Add support for building AArch64
Add support for building for AArch64, also remove the requirement to
specify a platform.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-16 21:18:21 -04:00
Alistair Francis
8ffc613d12 xvisor-image-minimal: Initial commit of a Xvisor image
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-16 21:18:21 -04:00
Alistair Francis
cc9572a7d6 xvisor: Bump to a git release
Bump the Xvisor SHA to a git release with RISC-V 0.5.0 Hypversior
extension support.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-16 21:18:21 -04:00
Joe Slater
cbf47a093d libvirt: specify location of dmidecode
We should tell configure where dmidecode is rather than
have it search the host for it.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-07 22:21:22 -04:00
Lavocat, Nicolas
ba6143a680 libvirt: fix install error without qemu
An error occurs during the install step of libvirt when the variable
PACKAGECONFIG does not contain qemu.

Indeed, in this case, the operation "chown -R qemu:qemu
${D}/${localstatedir}/lib/libvirt/qemu" fails, since the folder
${D}/${localstatedir}/lib/libvirt/qemu has not been created.

The fix consist in doing this operation only if
the variable “PACKAGECONFIG” contains “qemu”.
remark: issue present since the Warrior release of yocto.

Upstream-Status: Pending

Signed-off-by: Nicolas Lavocat <nicolas.lavocat@harman.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-07 22:19:43 -04:00
Christopher Clark
0db3901a48 xen, xen-tools: move tools-specific EXTRA_OECONF to xen-tools.inc
Since the hypervisor recipe does not install init scripts, it does not
include update-rc.d.bbclass, which defines INIT_D_DIR; so move the use
of that and systemd and qemu tools-specific configure settings over into
the tools include file. Fix a hardcoded bindir while at it.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-02 20:24:07 -04:00
Christopher Clark
27759eff63 ipxe: fix build with gcc 10.1.0
Apply two upstream patches to fix compiler warnings.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-02 20:24:07 -04:00
Christopher Clark
f84f789e96 xen: upgrade to Xen 4.14 as default and advance the git recipe version
Release announcement for Xen 4.14:
https://lists.xenproject.org/archives/html/xen-devel/2020-07/msg01263.html

Make the 4.14 recipe the default preference and advance the git recipe
onto the current 4.15 development branch. Retire the patches for the
earlier versions.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-08-02 20:24:07 -04:00
Christopher Clark
ee94ad466c xen, arm32: filter out unwanted tune flags from CPP as per CC
Avoids passing the wrong floating point ABI flags to the linker.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-20 14:47:15 -04:00
Christopher Clark
5f0ded3423 xen, xen-tools: add recipes for Xen 4.14
Add a versioned-suffix pair of recipes for Xen 4.14, allowing selection
of which Xen version to build via setting PREFERRED_VERSION.

4.14 is currently still pre-release, so the new recipes for it set
DEFAULT_PREFERENCE to -1, and the default for now remains the existing
stable version. Forward ports of patches needed for 4.14 are included.

Implementation note: since both this version and the git recipe are
built from git branches -- important for Xen since significant updates
are made available there inbetween point releases -- the recipe includes
'stable' as a string in PV so as to distinguish it from 'git' in the git
recipe, and thereby allow PREFERRED_VERSION to select the correct recipe
in the situation where both happen to be configured with the same XEN_REL.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-20 14:47:15 -04:00
Christopher Clark
5524c6d0fb xen-tools: packaging for new files in Xen 4.14
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-20 14:47:15 -04:00
Christopher Clark
16ec6ab62c xen-tools: apply kdd tool patch
Apply an upstream Xen Release-acked patch to fix kdd debugger
and remove the temporary inhibit of Werror on building that tool.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-08 22:44:48 -04:00
Christopher Clark
596d98b559 xen, xen-tools: configure: install defconfig to ${S} not ${B}
Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-08 22:44:48 -04:00
jason.lau
3bfea241d0 ceph: fix CVE-2020-10736
An authorization bypass vulnerability was found in Ceph versions 15.2.0 before 15.2.2,
where the ceph-mon and ceph-mgr daemons do not properly restrict access, resulting in
gaining access to unauthorized resources. This flaw allows an authenticated client to
modify the configuration and possibly conduct further attacks.

Upstream patches:

[master] c7e7009a69
[v15.2.2] f2cf2ce1bd

CVE: CVE-2020-10736

Signed-off-by: Liu Haitao <haitao.liu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-06 16:28:54 -04:00
Christopher Clark
5bf7fae581 xen: add patch to fix build on ARM64 with gcc 10.1.0
The newer gcc toolchain won't link due to a missing builtin:
__sync_fetch_and_add. Xen is built with -fno-builtin, so add a
patch to implement the one required function.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-06 16:25:56 -04:00
Christopher Clark
345505989c xen, xen-tools: update revision to Xen 4.13
Pull to the current tip of the stable 4.13 branch and apply an upstream
4.14-release-acked patch to xen-tools for a compiler warning in kdd.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-06 16:25:56 -04:00
Christopher Clark
8af29790ee xen-tools: use non-busybox ifupdown tool if available
Adds: RSUGGESTS_${PN}-scripts-network = "ifupdown"

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Suggested-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-06 16:25:55 -04:00
Christopher Clark
1e6d9f67ff xen-tools: add RRECOMENDS qemu on ARM and x86 when HVM is enabled
Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-07-06 16:25:55 -04:00
Bruce Ashfield
13b554261e xen: temporarily inhibit werror
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-06-22 09:34:13 -04:00
sakib.sajal@windriver.com
4ba3d8daad libvirt: fix patch fuzz warning
Refreshed patches to fix:
"WARNING: libvirt-6.3.0-r0 do_patch: Fuzz detected"

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-06-01 22:30:39 -04:00
sakib.sajal@windriver.com
7b002ac180 libvirt: uprev v6.1.0 -> v6.3.0
Minor update bringing in new features, improvements
and bug fixes.
Most notable changes:
- vbox: removed support for version 5.0 and 5.1 APIs
- vbox: added support for version 6.0 and 6.1 APIs
- qemu: Various embed driver fixes
- qemu: Add virtiofs support
- qemu: support disabling hotplug/unplug of PCIe devices
- xen: Add support for 'passthrough' hypervisor feature

Straightforward uprev, requiring patch refreshes to
remove fuzz.

Build and runtime behaviour is identical to older
version v6.1.0.

ptest summary:
===================================
Testsuite summary for libvirt 6.3.0
===================================
- TOTAL: 129
- PASS:  123
- SKIP:  1
- XFAIL: 0
- FAIL:  5
- XPASS: 0
- ERROR: 0

Failed test:
- virschematest
- domaincapstest
- qemuxml2argvtest
- qemuhotplugtest
- virsh-auth

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-05-19 17:24:41 -04:00
sakib.sajal@windriver.com
22e3282ee2 nagios-nrpe: Fix CVE-2020-6581
Backport fix for CVE-2020-6581

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-05-02 11:04:48 -04:00
sakib.sajal@windriver.com
3b217da980 ceph: backport CVE fixes
Fix CVE-2020-1759 and CVE-2020-1760
PR for fix: https://github.com/ceph/ceph/pull/34482

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-05-02 11:02:58 -04:00
Corey Minyard
ff5608b874 xen-hypervisor: Check for the right image in uncompressed deploy
The deploy for the uncompressed image was checking if a .gz file exists,
it should instead check for a straight xen file.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-04-26 21:48:28 -04:00
sakib.sajal@windriver.com
b24e0b8cda nagios-nrpe: uprev v3.2.1 => v4.0.2
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-04-15 15:26:54 -04:00
hongxu
d5953299e2 ceph: fix host library paths were used
...
|ERROR: ceph-15.2.0-r0 do_package_qa: QA Issue: ceph: The compile
log indicates that host include and/or library paths were used.
|         Please check the log 'tmp-glibc/work/corei7-64-wrs-linux/
ceph/15.2.0-r0/temp/log.do_compile' for more information. [compile-host-path]
|ERROR: ceph-15.2.0-r0 do_package_qa: QA Issue: ceph: The install
log indicates that host include and/or library paths were used.
|         Please check the log 'tmp-glibc/work/corei7-64-wrs-linux/
ceph/15.2.0-r0/temp/log.do_install' for more information. [install-host-path]
...

While python setup, test var-LIBPL contains recipe-sysrooot prefix,
add it back if lost

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-04-14 17:05:54 -04:00
hongxu
f5a31e3ecd ceph: fix installed-vs-shipped QA issue
...
|ERROR: ceph-15.2.0-r0 do_package: QA Issue: ceph: Files/directories
were installed but not shipped in any package:
|  /lib/systemd/system/ceph-immutable-object-cache@.service
|  /lib/systemd/system/ceph-immutable-object-cache.target
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-04-14 17:05:54 -04:00
sakib.sajal@windriver.com
40f79e8d17 ceph: uprev ceph from 14.2.7 to 15.2.0
ceph uprev to v15.2.0

Refreshed oe-specific patch:
	ceph/0001-ceph-fix-build-errors-for-cross-compile.patch

Removed merged patches:
	ceph/0001-common-rgw-workaround-for-boost-1.72.patch
	ceph/0001-rgw-add-executor-type-for-basic_waitable_timers.patch
	ceph/0001-rgw-beast-handle_connection-takes-io_context.patch

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-04-08 23:06:09 -04:00
He Zhe
420479e0fc libvirt: Add setuid permission to virt-login-shell
virt-login-shell asks for setuid permission as follow.
"virt-login-shell: must be run as setuid root"

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-04-05 22:17:10 -04:00
hongxu
2bba10be28 libvirt: Workaround mips assembler crash on target
While enabling multilib on qemumips64, lib32 assembler ends up
crashing on target sometimes due to branch out of range,
therefore using -O2 for now

[snip]
|../../libvirt-6.1.0/tests/qemuxml2argvtest.c: In function 'mymain':
|../../libvirt-6.1.0/tests/qemuxml2argvtest.c:608:1: note: variable
tracking size limit exceeded with '-fvar-tracking-assignments', retrying without
|  608 | mymain(void)
|      | ^~~~~~
|/tmp/ccXJSwZR.s: Assembler messages:
|/tmp/ccXJSwZR.s:43943: Error: branch out of range
[snip]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-04-01 22:30:18 -04:00
Christopher Clark
e57cf80d54 xen, xen-tools: reproducible build compiler flags
The change to the method of passing compiler flags into the Xen build
system in 6b697676 omitted passing the compiler flags for improving
build reproducibility, so this commit returns them and includes a change
to use the -ffile-prefix-map compiler option to remove host filesystem
artefacts instead of the prior method of redefining the __FILE__ builtin
macro.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-13 21:53:20 -04:00
Bruce Ashfield
7a8ee8e986 libvirt: uprev to v6.1.0
Updating libvirt to the next major release series. With this, brings
some changes to the build:

 - add python3-docutils-native to DEPENDS, since it is needed for doc
   building
 - remove a reference to libgnu.la from the Makefiles, since it is not
   needed or provided in the build dependencies
 - remove obselete packageconfig options: xenapi and phyp
 - add an explicit do_compile rule (versus the autotools bbclass
   variant), so we can create some directories before compilation
   starts
 - add ${B}/src to the PKG_CONFIG_PATH to the libvirt.pc file can be
   found during build, as it is queried by libvirt-python
 - with the ability to find the libvirt.pc file, we can also drop the
   manipulations for libvirt_api_xml_path, as it is returned from
   pkg-config queries.
 - clear PKG_CONFIG_SYSROOT_DIR during libvirt-python builds, since
   the libvirt.pc file already provides cflags/includes that are
   contained to the build/src directory structure.

And finally, existing patches are refreshed to remove fuzz.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-08 14:34:03 -04:00
Martin Jansa
ec7c1b229b xen-python2: add the same COMPATIBLE_HOST restriction as xen-tools
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-03 20:03:52 -05:00
Martin Jansa
d53fd491d9 xen-tools: fix COMPATIBLE_HOST restriction for i686
* let TARGET_VENDOR to be set to something else than the default:
  meta/conf/bitbake.conf:TARGET_VENDOR = "-oe"
  like other architectures use

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-03 20:03:52 -05:00
Martin Jansa
cf6d398d51 hyperstart: refresh 0001-container.c-Fix-compiler-errors-that-gcc-8.1.0-repor.patch to apply cleanly
ERROR: hyperstart-v0.2+gitAUTOINC+15bb718ad3-r0 do_patch: Fuzz detected:

Applying patch 0001-container.c-Fix-compiler-errors-that-gcc-8.1.0-repor.patch
patching file src/container.c
Hunk #2 succeeded at 118 with fuzz 1 (offset 17 lines).
Hunk #3 succeeded at 148 (offset 18 lines).
Hunk #4 succeeded at 158 (offset 18 lines).
Hunk #5 succeeded at 167 with fuzz 1 (offset 18 lines).
Hunk #6 succeeded at 197 (offset 20 lines).
Hunk #7 succeeded at 222 (offset 20 lines).
Hunk #8 succeeded at 240 (offset 20 lines).
Hunk #9 succeeded at 277 (offset 20 lines).
Hunk #10 succeeded at 285 (offset 20 lines).
Hunk #11 succeeded at 325 (offset 27 lines).
Hunk #12 succeeded at 583 (offset 30 lines).
Hunk #13 succeeded at 646 (offset 30 lines).
Hunk #14 succeeded at 664 (offset 30 lines).
Hunk #15 succeeded at 749 (offset 30 lines).
Hunk #16 succeeded at 769 (offset 30 lines).
Hunk #17 succeeded at 778 (offset 30 lines).

The context lines in the patches can be updated with devtool:

    devtool modify hyperstart
    devtool finish --force-patch-refresh hyperstart <layer_path>

Don't forget to review changes done by devtool!

ERROR: hyperstart-v0.2+gitAUTOINC+15bb718ad3-r0 do_patch: QA Issue: Patch log indicates that patches do not apply cleanly. [patch-fuzz]

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-03 19:59:18 -05:00
Piotr Król
a200d2be21 dev86: update SRC_URI and associated checksums
SRC_URI no longer works, server return 503. Replace server with github
address.

Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-02 15:04:42 -05:00
Christopher Clark
c925905e38 xen-image-minimal: enable runqemu for x86-64
Booting this Xen image with QEMU works when launching from the
wic-generated pcbios disk image with the directdisk-xen.wks kickstart
file, so add the variable settings to make doing it simple -- eg:

    runqemu xen-image-minimal nographic slirp

Tested with MACHINEs: qemux86-64 and genericx86-64

Memory allocated to qemu is increased slightly over the default to allow
for running Xen and the Linux dom0 and guest VMs.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-02 15:04:28 -05:00
Christopher Clark
62afe452c2 uxen-guest-tools, image: package the Linux VM tools for uXen hypervisor
uXen is a type-2 Open Source hypervisor from Bromium/HP.
    https://www.bromium.com/opensource/

This adds packaging for the Linux guest support software, enabling OE
to produce VM images to run on the uXen hypervisor.

    uxen-guest-tools: in-guest software device drivers
    uxen-guest-image-minimal : minimal core image with uXen drivers

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 17:00:09 -05:00
Christopher Clark
5591f772fe xen, xen-tools: updates to the deploy task
Amend addtask for deploy in both recipes: add deploy before do_build to
ensure that it completes before the build step stamp is written.
Suggested-by: Bertrand Marquis <bertrand.marquis@arm.com>

Add comments explaining the scheduling of the deploy task to
both the hypervisor and tools recipes.

In the hypervisor build, change deploy to obtain files from ${B} rather
than ${D}, since it allows a bbappend to modify boot binary file
destinations in do_install without breaking do_deploy.

To ensure that a deployed hypervisor has matching tools in any image
being built, add a dependency to make sure that the tools have built and
been staged first:
    do_deploy[depends] += "xen-tools:do_populate_sysroot"

Also add a dependency to ensure that anything that the tools recipe
deploys, such as a XSM policy file, has been deployed first:
    do_deploy[depends] += "xen-tools:do_deploy"

Schedule deploy tasks after populate_sysroot to ensure that deployed
binaries match those staged for inclusion in the image rootfs.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
1d99ae2bcf xen: add menuconfig instructions to the README
bitbake xen -c menuconfig

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
50669e428f xen-image-minimal: add a build dependency on the xen hypervisor
The hypervisor may not be within the dom0 filesystem image itself,
so add a task dependency to ensure that it is deployable:
    do_build[depends] += "xen:do_deploy"

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
e9b2d92954 xen: add contact to recipe README file
Add myself as a contact for the Xen recipes.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
d08cf62af0 xen, xen-tools: bug fix to post_patch task
Patch needs to be applied to tree in ${S}.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
ea94bfc344 xen, xen-tools: remove stubs task and use multilib when necessary
The stubs task was MACHINE-specific due to the OE variables it accessed
which had forced unnecessary rebuild work in OpenXT's multi-MACHINE
builds.

The stubs task was generating a 32-bit header file to satisfy the Xen
tools firmware build to generate the hvmloader binary, which is only
needed on x86-64 targets where HVM-mode guests are enabled.

Remove this header file generation logic and similar in the configure
task, and in the cases where hvmloader is to be built use multilib to
provide a 32-bit sysroot and allow the build to obtain the needed 32-bit
materials from their source: glibc.

Building Xen tools for x86-64 with HVM-guest support enabled now
requires the following to be added to a build conf file
(eg. distro.conf, or local.conf) :

    require conf/multilib.conf
    MULTILIBS = "multilib:lib32"
    DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
a0964e2044 xen, xen-tools: separate COMPATIBLE_HOST for hypervisor and tools
The tools have broader platform compatibility than the hypervisor.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
f4eec68635 xen, xen-tools: update recipes for python3
Adds patches for packaged scripts to enable deployment with python3
where they have been ported to python 3 upstream.

setuptools3 inherits distutils3 which modifies ${B}, so cd ${S} is
needed in the do_configure, do_compile and do_install steps.

Remove python 2 dependency from the Xen recipes by adding a new
separate recipe, xen-python2, for packaging the remaining optional
scripts which are yet to be ported to python 3. Package naming in
the separate recipe is chosen to support transition back into the
xen-tools recipe if the scripts are ported later.

Use RSUGGESTS to support inclusion of the xen-python2 scripts in
images that include python 2.

Drop the remus package python dependency since the script was removed
in 2014: commit 5b66f84e37a45038f9e5dae7a5768a5525d1e6ba

Add python3 RDEPENDS needed to run xenmon.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
593df044c6 xen-tools: change globbing to fix syntax highlighting
A text editor can interpret /* as the beginning of a comment
and then fail to find the matching */ it expects as a terminator.
This causes it to mishighlight the rest of the file. Avoid this
by using a different matching pattern.

Fixes an annoyance when editing the file. No functional change intended.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
19b45a9fed xen-image-minimal: add kernel-module-tun for HVM guest networking
Xen HVM guests are only on x86 platforms so add the module via overrides.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
fc69b5553a xen: add seabios to RRECOMMENDS of xen-tools when HVM-enabled
Launching HVM guest VMs requires a BIOS firmware binary.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
96e287c4b5 xen-tools: move xentrace_setmask into the xentrace package
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
Christopher Clark
545461ba2f xen: separate recipes for hypervisor and tools; switch to git as source
This change changes the names of many packages produced: the
xen-tools recipe now builds packages previous built by the xen
recipe, so the package prefix changes from "xen-" to "xen-tools-".
A temporary bbappend is provided for qemu to ease the transition.

Multiple motivations for recipe separation:
- improves efficiency of incremental build and development
- supports building the hypervisor and tools with different toolchains
  and for different architectures

Switch to using a git recipe on the Xen stable branch:
- enables easier tracking of critical XSA security updates applied
  upstream by just advancing SRCREV along the branch
Revision has been set to the tip of the stable-4.12 branch, which
has the one XSA-312 patch applied on top of RELEASE-4.12.2.

The recipe refactor externalizes the block tap components, to enable optional
building of blktap in a separate recipe outside xen-tools, needed by OpenXT.

xenstored is made a virtual package to support switching between
alternative implementations (several exist).

Update xen-image-minimal to install the xen-tools package, which
replaces what was previously xen-base.

Determine the flask policy filename, which is Xen-version specific,
using the same method as the Xen build system.

qemu: update PACKAGECONFIG[xen] for xen package renaming: allows builds
to continue correctly in the meantime while openembedded core and poky
are updated.

OpenXT ticket reference: OXT-1694

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-27 16:59:23 -05:00
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
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
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
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
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
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
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
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
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
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
Chen Qi
0e01ab3f52 ceph: backport patch to fix compilation failure of boost 1.72
Backport a patch to fix compliation failure caused by boost upgrading
to 1.72.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-08 16:20:32 -05:00
Kai Kang
30e3de60e7 nagios-nrpe: fix compile error when packageconfig ssl enabled
It fails to compile nagios-nrpe when packageconfig ssl enabled:

| ./nrpe.c:45:12: fatal error: ../include/dh.h: No such file or directory
|    45 | #  include "../include/dh.h"
|       |            ^~~~~~~~~~~~~~~~~
| compilation terminated.

Header file include/dh.h is created by native openssl called by
configure script. If no native openssl exists, no header file is
created. Add openssl-native to dependency for packageconfig ssl.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-12-29 22:09:03 -05:00
Ming Liu
e32dad4ff9 xen-guest-image-minimal: do not inherit distro_features_check
Change to inherit features_check, since distro_features_check has been
deprecated in OE.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-11-25 16:04:23 -05:00
Stefan Agner
f58133be1f fuse-overlayfs: add FUSE implementation of overlayfs
Add recipe for the FUSE implementation of overlayfs. This is useful
to improve startup time for podman rootless containers.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-10-13 11:16:40 -04:00
Mark Asselstine
8a43b4f1b7 libvirt: fixup multiple shlib providers
Build libvirt results in the follow warning:
ERROR: libvirt-5.5.0-r0 do_package: libvirt-ptest: Multiple shlib providers for libvirt-admin.so.0: libvirt, libvirt-ptest
(used by files: ./tmp/work/aarch64-overc-linux/libvirt/5.5.0-r0/packages-split/libvirt-ptest/usr/lib/libvirt/ptest/tools/virt-admin)
ERROR: libvirt-5.5.0-r0 do_package: libvirt: Multiple shlib providers for libvirt-admin.so.0: libvirt, libvirt-ptest
(used by files: ./tmp/work/aarch64-overc-linux/libvirt/5.5.0-r0/packages-split/libvirt/usr/bin/virt-admin)

This is caused by the introduction of a shlib provider check added to
openembedded-core (commit 61c413690034 [package: Multiple
shlib_providers for the same file should error]). You can see the
issue and solution discussed more here
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4628

Since the ptest version of the shared library will only be used by the
ptest package so we can use PRIVATE_LIBS to have the shlib providers
list.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-10-02 14:12:39 -04:00
Hongzhi.Song
85f7376fa4 ceph: fix ceph-crash failed with /var/lib/ceph/crash/posted not found
root@intelx86-64: journalctl -xe
ceph-crash[854]: ERROR:_main_:directory /var/lib/ceph/crash/posted does
not exist; please create

Create the directory for both of systemd and sysvinit

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-09-14 23:51:10 -04:00
He Zhe
624c5a0621 ceph: Upgrade to 14.2.3
Upgrade to the latest stable version and backport two patches from master branch
to fix the following two build failures which are introduce by upgrading boost
to 1.71.0.

f1651b8c509d ("rgw: add executor type for basic_waitable_timers") for:

src/rgw/rgw_dmclock_async_scheduler.h:45:30: error: could not convert
'boost::asio::basic_waitable_timer<Clock, WaitTraits, Executor>::get_executor()

064f142746ae ("rgw: beast handle_connection() takes io_context") for:

src/rgw/rgw_asio_frontend.cc:155:38: error:
'class boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::executor>'
has no member named 'get_io_context'; did you mean 'io_control'?

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-09-09 13:29:47 -04:00
Changqing Li
ac0b214d5f diod: support usrmerge
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-09-03 15:59:40 -04:00
Chen Qi
e87e6fdcbc ceph: remove fuse related services as WITH_FUSE is OFF
We have WITH_FUSE to set to OFF. We should not install any ceph-fuse
units as they are using ceph-fuse.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-08-30 00:28:36 -04:00
Yuan Chao
3e3ab10faa irqbalance: upgrade 1.5.0 -> 1.6.0
Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-08-12 11:02:31 -04:00
Changqing Li
91c23e6a9c nagios-core/nagios-nrpe: use update-alternatives for /var/nagios
fix below error:
Error: Transaction check error:
  file /var/nagios from install of nagios-core-4.4.3-r0.core2_64 conflicts with file from package nagios-nrpe-daemon-3.2.1-r0.core2_64

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-08-06 23:13:58 -04:00
He Zhe
fc129dccd3 libvirt: Remove numactl from PACKAGECONFIG for arm
b5b5def ("libvirt: add hook support") introduces a wrong check against KARCH
which is not defined.

This patch use TARGET_ARCH overrides to remove numactl from PACKAGECONFIG for
32-bit arm arches.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-07-31 22:15:23 -04:00
He Zhe
1bd526d9fe libvirt: Do not change /var/lib/libvirt/qemu for mips and mips64 in do_install
qemu does not support mips and mips64 and thus /var/lib/libvirt/qemu is not
generated. Do not change it.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-07-25 14:25:59 -04:00
He Zhe
37a554a249 libvirt: libvirtd: Facilitate using tls connection mode
tls is the default network connection mode of libvirtd upstream, though we use
tcp mode as default.

tls requires necessary keys and certificates of certificate authority, server
and client to be properly generated and deployed. Otherwise servers and clients
cannot be connected.

This patch,
 - integrates sample keys and certificats of certificate authority, server and
   client for users to be able to use tls mode out of box.
 - sets default server IP address to 127.0.0.1 for users to use local client out
   of box.
 - integrates certtool and provides gnutls-help.py for users to generate keys
   and certificates on targets in their own ways.
 - adds a PACKAGECONFIG option "gnutls" to control all of the above integration
   but disables it to keep the same default behavior as before.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-07-16 19:41:05 +00:00
Mingli Yu
990d6d8d2b libvirt: Only add polkit to PACKAGECONFIG if polkit is in DISTRO_FEATURES
At first, the polkit support is always enabled in
PACKAGECONFIG and since Feb 27 2014, use x11
DISTRO_FEATURES to control the polkit support
with below commit.
=========================================================
commit ce991a62d5
Author: Jonas Eriksson <jonas.eriksson@enea.com>
Date:   Thu Feb 27 17:10:09 2014 +0100

    libvirt: Disable polkit driver when there is no x11

    To avoid having the default build of libvirt depend on virtual/x11
    through polkit and consolekit, check for x11 in DISTRO_FEATURES before
    enabling the polkit support in the default PKG_CONFIG.

    Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
    Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>

 diff --git a/recipes-extended/libvirt/libvirt_1.2.1.bb b/recipes-extended/libvirt/libvirt_1.2.1.bb
 index 5365b8d..4c9cf36 100644
 --- a/recipes-extended/libvirt/libvirt_1.2.1.bb
 +++ b/recipes-extended/libvirt/libvirt_1.2.1.bb
 @@ -109,10 +109,11 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72"
  #PACKAGECONFIG ??= "xen libxl xen-inotify test remote libvirtd"

  # full config
 -PACKAGECONFIG ??= "qemu yajl uml openvz vmware vbox esx iproute2 polkit lxc test \
 +PACKAGECONFIG ??= "qemu yajl uml openvz vmware vbox esx iproute2 lxc test \
                    remote macvtap libvirtd netcf udev python ebtables \
                    ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
                    ${@base_contains('DISTRO_FEATURES', 'xen', 'xen libxl xen-inotify', '', d)} \
 +                   ${@base_contains('DISTRO_FEATURES', 'x11', 'polkit', '', d)} \
                   "
=========================================================

After below commits to add polkit as a required distro feature
in meta-oe, we should unify altogether to enable polkit if
polkit distro feature is set.
97a1a55 polkit: add polkit as a required distro
feature c049e02 polkit: inherit distro_features_check

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-07-16 19:40:49 +00:00
Bruce Ashfield
cd3767f0b0 libvirt: uprev to 5.5.x
Upgrading to 5.5.x for libvirt.

One pach refresh is required, but otherwise, build and runtime behaviour
is identical to 5.3.x.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-07-12 14:50:34 +00:00
Joe Slater
ee9a745a73 irqbalance: use git repo for source
Avoid src-uri-bad qa warning when getting source from github.com/../archive.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-06-27 23:31:23 -04:00
Cevat Bostancioglu
9cb299d384 kvmtool: Werror Disabled Patch
Couple of compile time warnings(sizeof-pointer-memaccess, format-truncation) turned into errors before with Werror command, this patch disables this feature.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-06-25 00:11:58 -04:00
Changqing Li
39443a1f93 nagios-nrpe: fix systemd service start failed
Jun 06 01:44:51 qemux86 systemd[1]: Started Nagios nrpe plugin.
Jun 06 01:44:51 qemux86 nrpe[1263]: Starting up daemon
Jun 06 01:44:51 qemux86 nrpe[1263]: Cannot write to pidfile '/var/nagios/nrpe.pid' - check your privileges.
Jun 06 01:44:51 qemux86 systemd[1]: nagios-nrpe.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 06 01:44:51 qemux86 systemd[1]: nagios-nrpe.service: Failed with result 'exit-code'

In configuration file /etc/nagios/nrpe.cfg, the pidfile is under /var/nagios.

fix by stop rm the /var/nagios, and include it into daemon packages

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-06-10 09:55:27 -04:00
Christopher Clark
a7e7310b68 xen: update packaging for pkgconfig files in libdir
Xen commit a0f98145 changed the installation directory for pkgconfig
files, so update recipe to include the .pc files at their new location.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-05-21 10:42:14 -04:00
Dengke Du
8e634ac487 libvirt: upgrade to 5.3.0
1. remove the uml configure option because new version libvirt drop it
2. rebase three patches for new source codes

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-05-10 16:42:06 -04:00
Chen Qi
3c80794f80 nagios-core: add CVE_PRODUCT
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-05-10 16:41:52 -04:00
Chen Qi
2c6f451aa2 ceph: set CVE_PRODUCT
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-05-06 15:47:02 -04:00
Christopher Clark
3038a912be xen: make the dev86-native dependency specific to x86-64 target
Remove the requirement for x86 tools when building for ARM platforms.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-04-18 09:33:24 -04:00
Christopher Clark
9168b0ce83 xen: upgrade to 4.12.0
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-04-18 09:32:40 -04:00