]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
3 years agopatchelf: upgrade 0.13 -> 0.14.1
wangmy [Mon, 29 Nov 2021 15:00:54 +0000 (23:00 +0800)]
patchelf: upgrade 0.13 -> 0.14.1

refresh handle-read-only-files.patch

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomtools: upgrade 4.0.35 -> 4.0.36
wangmy [Mon, 29 Nov 2021 15:00:53 +0000 (23:00 +0800)]
mtools: upgrade 4.0.35 -> 4.0.36

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibexif: upgrade 0.6.23 -> 0.6.24
wangmy [Mon, 29 Nov 2021 14:59:49 +0000 (22:59 +0800)]
libexif: upgrade 0.6.23 -> 0.6.24

libexif-0.6.24 Changelog:

Translation updates: sr, vi, pl, uk, french
fixed regression in exif_data_load_data which could not load EXIF in JPEG data anymore
Decode lots of Canon tag names
removed empty strings from translation (empty string would translate to the PO info header)
various warning removals and code improvements
added sample "persistent" afl fuzzer (100x faster than normal afl fuzzer)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibunwind: upgrade 1.5.0 -> 1.6.0
wangmy [Mon, 29 Nov 2021 14:59:51 +0000 (22:59 +0800)]
libunwind: upgrade 1.5.0 -> 1.6.0

0001-Add-AO_REQUIRE_CAS-to-fix-build-on-ARM-v6.patch
0001-configure-Do-not-enforce-libdir-for-ppc64.patch
removed since they're included in 1.6.0

refresh the following patches:
0003-x86-Stub-out-x86_local_resume.patch
0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch
0006-Fix-for-X32.patch

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibsoup-2.4: upgrade 2.74.1 -> 2.74.2
wangmy [Mon, 29 Nov 2021 14:59:50 +0000 (22:59 +0800)]
libsoup-2.4: upgrade 2.74.1 -> 2.74.2

Changes in libsoup from 2.74.1 to 2.74.2:

    * Error when libsoup3 is already loaded before libsoup2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibdrm: upgrade 2.4.108 -> 2.4.109
wangmy [Mon, 29 Nov 2021 14:59:48 +0000 (22:59 +0800)]
libdrm: upgrade 2.4.108 -> 2.4.109

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinsane.bbclass: add a check that Upstream-Status patch tag is present and correctly...
Alexander Kanavin [Wed, 17 Nov 2021 15:35:21 +0000 (16:35 +0100)]
insane.bbclass: add a check that Upstream-Status patch tag is present and correctly formed

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoovmf: remove patch merged upstream
Alexander Kanavin [Fri, 19 Nov 2021 16:54:04 +0000 (17:54 +0100)]
ovmf: remove patch merged upstream

See here:
https://github.com/tianocore/edk2/pull/1513/files

The change was thus applied twice to the same file.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
3 years agogo: update 1.16.10 -> 1.17.3
Alexander Kanavin [Sat, 27 Nov 2021 09:53:56 +0000 (10:53 +0100)]
go: update 1.16.10 -> 1.17.3

This was additionally verified with meta-virtualization:
$ bitbake packagegroup-container packagegroup-kubernetes
$ bitbake container-base kvm-image-minimal xen-guest-image-minimal

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-rfc3339/3986-validator: correct upstream version check
Alexander Kanavin [Sat, 27 Nov 2021 09:53:57 +0000 (10:53 +0100)]
python3-rfc3339/3986-validator: correct upstream version check

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo-helloworld: test at runtime
Alexander Kanavin [Sat, 27 Nov 2021 09:53:55 +0000 (10:53 +0100)]
go-helloworld: test at runtime

This adds a smoke check for whether the Go toolchain actually
produces working executables across a range of architectures.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo-helloworld: update to latest revision
Alexander Kanavin [Sat, 27 Nov 2021 09:53:54 +0000 (10:53 +0100)]
go-helloworld: update to latest revision

Adjust SRC_URI, github is only a mirror.

Adjust GO_IMPORT, as it does not match either github
or the official repo.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotestimage.bbclass: request the use of kvm by default
Alexander Kanavin [Sat, 27 Nov 2021 09:53:53 +0000 (10:53 +0100)]
testimage.bbclass: request the use of kvm by default

In almost all cases there is no need to explicitly ask for it via local.conf
or similar custom config:
it is enabled in qemu_use_kvm() if target_arch == build_arch or both of them are x86 archs,
and QEMU_USE_KVM is set.

If that heuristic doesn't work, QEMU_USE_KVM = "" will do the disabling.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoperl: submitted patch upstream
Alexander Kanavin [Sat, 27 Nov 2021 09:53:52 +0000 (10:53 +0100)]
perl: submitted patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoperl-cross: submit patches upstream
Alexander Kanavin [Sat, 27 Nov 2021 09:53:51 +0000 (10:53 +0100)]
perl-cross: submit patches upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomeson: submit patch upstream
Alexander Kanavin [Sat, 27 Nov 2021 09:53:50 +0000 (10:53 +0100)]
meson: submit patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibdnf: submit patches upstream
Alexander Kanavin [Sat, 27 Nov 2021 09:53:49 +0000 (10:53 +0100)]
libdnf: submit patches upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibcomps: remove unneeded patch
Alexander Kanavin [Sat, 27 Nov 2021 09:53:48 +0000 (10:53 +0100)]
libcomps: remove unneeded patch

Somewhere along the way the issue was fixed upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoweston-init: Pass --continue-without-input when launching weston
Khem Raj [Sat, 27 Nov 2021 09:22:39 +0000 (01:22 -0800)]
weston-init: Pass --continue-without-input when launching weston

This ensures that we do not need keyboard/mouse or other input system
Weston's default behavior is to not open if input devices are not
found, but we may not always have input devices connected for systems
running weston in field

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosanity/lib: Replace usage of LooseVersion() with bb.utils.vercmp_string_op()
Richard Purdie [Fri, 26 Nov 2021 16:31:17 +0000 (16:31 +0000)]
sanity/lib: Replace usage of LooseVersion() with bb.utils.vercmp_string_op()

distutils is going away and we have functionality in bitbake which can
handle these comparisions so switch to the bb.utils function.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/parselogs: Fix quoting
Richard Purdie [Fri, 26 Nov 2021 15:45:29 +0000 (15:45 +0000)]
oeqa/parselogs: Fix quoting

Fix deprecation warnings about invalid escape sequences.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/utils/dump: Fix typo
Richard Purdie [Fri, 26 Nov 2021 15:46:13 +0000 (15:46 +0000)]
oeqa/utils/dump: Fix typo

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogcc: Drop further unneeded precompiled header patch
Richard Purdie [Thu, 25 Nov 2021 22:07:24 +0000 (22:07 +0000)]
gcc: Drop further unneeded precompiled header patch

According to comments on the bug report from gcc developers, we
no longer need to do this post gcc 10. Lets therefore drop the patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobase.bbclass: Add sysroot deps for repo fetcher
Jasper Orschulko [Wed, 24 Nov 2021 23:37:02 +0000 (00:37 +0100)]
base.bbclass: Add sysroot deps for repo fetcher

Add repo-native as prerequisite for the repo fetcher.

Signed-off-by: Jasper Orschulko <Jasper.Orschulko@iris-sensing.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorepo: Add recipe for 2.17.3
Jasper Orschulko [Wed, 24 Nov 2021 23:37:01 +0000 (00:37 +0100)]
repo: Add recipe for 2.17.3

Add a recipe for repo 2.17.3, prerequisite for the repo fetcher.

Signed-off-by: Jasper Orschulko <Jasper.Orschulko@iris-sensing.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonative/cross: Add ar wrapper for determinism
Jacob Kroon [Wed, 24 Nov 2021 05:31:10 +0000 (06:31 +0100)]
native/cross: Add ar wrapper for determinism

Add a wrapper around ar calls for native/cross recipes. This wrapper adds
the -D option so that deterministic archives are built for native/cross
output. This improves the changes of hash equivalence matches and hence
build artefact reuse.

We don't need this in the target case since we compile binutils-cross
with an option making this the default. We need a wrapper since we need
to remove the "u" option and replace it with "D" but also allow things like
"--version" to continue to work too.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogcc: Drop mips default ABI patch
Richard Purdie [Thu, 25 Nov 2021 15:18:48 +0000 (15:18 +0000)]
gcc: Drop mips default ABI patch

gcc-configure-common.inc already sets --with-abi=64 for our mips64
targets so this patch is no longer needed.

[YOCTO #14639]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonativesdk: Handle chown/chgrp calls in nativesdk do_install tasks
Richard Purdie [Mon, 22 Nov 2021 16:11:45 +0000 (16:11 +0000)]
nativesdk: Handle chown/chgrp calls in nativesdk do_install tasks

We disable the useradd code for nativesdk targets since we don't support
postinstalls or multiple users in those cases. This means any usage
of chown/chgrp inside do_install tasks won't work and would have to be
conditional. Rather than require all recipes to do that, add intercepts
of the calls and map those to root/root user/groups. We can't just ignore
them as some calls are used to remove host contamination from the host
user ID so they need to be made, just as root.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoperf: sort-pmuevents: allow for additional type qualifiers and storage class
Max Krummenacher [Mon, 22 Nov 2021 16:34:59 +0000 (17:34 +0100)]
perf: sort-pmuevents: allow for additional type qualifiers and storage class

With kernel 5.16 some structs in pmu-events do get a const qualifier, some
a static const storage class and qualifier.

The current sort-pmuevents cannot cope with that and drops all struct
arrays with such additional elements. This then leads to compiler errors.

Allow '^struct', '^const struct', '^static struct', '^static const struct'.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agoperf: sort-pmuevents: don't drop elements
Max Krummenacher [Mon, 22 Nov 2021 16:34:58 +0000 (17:34 +0100)]
perf: sort-pmuevents: don't drop elements

If a struct element neither has an element cpuid or name it gets silenty
dropped.
Kernel 5.15 for some ARCHs have at least one array of structs matching
this.
e.g. for arm pmu-events.c:

|#include "pmu-events/pmu-events.h"
struct pmu_events_map pmu_events_map[] = {
{
.cpuid = 0,
.version = 0,
.type = 0,
.table = 0,
},
};

struct pmu_sys_events pmu_sys_event_tables[] = {
{
.table = 0
},
};

Before this patch the second struct is translated to an empty array::

struct pmu_sys_events pmu_sys_event_tables[] = {
};

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agolinux-yocto-dev: introduce dt-validation PACKAGECONFIG
Bruce Ashfield [Tue, 23 Nov 2021 21:28:33 +0000 (16:28 -0500)]
linux-yocto-dev: introduce dt-validation PACKAGECONFIG

Add a PACKAGECONFIG to control which type of dt-validation
is installed (full, or wrapped).

This is currently in linux-yocto-dev, as 5.16 introduces
the functionality of required dt schema validation.

Other v5.16 providing recipes can use the base functionality
as they desire (with or without PACKAGECONFIG).

Over time, we can migrate the support the the core
kernel classes .. in particular when more providers are at
v5.16+

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agokernel: introduce python3-dtschema-wrapper
Bruce Ashfield [Tue, 23 Nov 2021 21:23:43 +0000 (16:23 -0500)]
kernel: introduce python3-dtschema-wrapper

The 5.16 kernel introduced mandatory schema checking on any dtb file
built through the kernel.

That funcionality is provided via python3-dt-schema.

The dependencies to enable that functionality is not small, and may
not always be desired (in particular on architectures that do not
support dtbs, or in development cycles). It may also be useful for
allowing a non-conformant dts to be compiled.

This commit introduces a set of wrapper scripts that when added
as a depenency to the kernel, can pass both the validation testing
and validation steps of a dts.

We use the wrapper by default, while more dts file are brought up
to spec and the dt-validation matures upstream.

To enable valiation, simply add 'dt-valiation' to the PACKAGECONFIG
variable and the full dt-schema package will be selected and
validation will occur.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agolinux-yocto: export pkgconfig variables to devshell
Bruce Ashfield [Tue, 23 Nov 2021 04:15:16 +0000 (23:15 -0500)]
linux-yocto: export pkgconfig variables to devshell

Not all of the kernel host/build Makefiles allow pkg-config
to be overriden to pkg-config-native. Exporting these variables
allow us to debug host tool issues with the kernel build.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython3: Add missing HOMEPAGE entries
Richard Purdie [Thu, 25 Nov 2021 08:37:48 +0000 (08:37 +0000)]
python3: Add missing HOMEPAGE entries

Add missing HOMEPAGE entries to new python recipes from meta-python.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomaintainers: update for kernel dtschema checking dependencies
Bruce Ashfield [Tue, 23 Nov 2021 16:56:52 +0000 (11:56 -0500)]
maintainers: update for kernel dtschema checking dependencies

These packages are required for dtschema checking in the
kernel build. Adding myself as the maintainer.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import vcversioner from meta-python
Bruce Ashfield [Wed, 24 Nov 2021 14:47:16 +0000 (09:47 -0500)]
python: import vcversioner from meta-python

vcversioner is a dependency of jsonschema, which is being
imported to support kernel device tree validation.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import strict-rfc3339 from meta-python
Bruce Ashfield [Wed, 24 Nov 2021 14:46:09 +0000 (09:46 -0500)]
python: import strict-rfc3339 from meta-python

strict-rfc3339 is a dependency of jsonschema, which is being
imported to support kernel device tree valiation.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import rfc3987 from meta-pyton
Bruce Ashfield [Wed, 24 Nov 2021 14:39:03 +0000 (09:39 -0500)]
python: import rfc3987 from meta-pyton

rfc3987 is a depenency of jsonschema and dtschema, which are being
added to support kernel device tree validation.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import pyrsistent from meta-python
Bruce Ashfield [Wed, 24 Nov 2021 14:32:40 +0000 (09:32 -0500)]
python: import pyrsistent from meta-python

pyrsistent is a dependency of python3-jsonschema, which is being
imported to support kernel device tree validation.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import ruamel-yaml from meta-python
Bruce Ashfield [Tue, 23 Nov 2021 03:59:48 +0000 (22:59 -0500)]
python: import ruamel-yaml from meta-python

Importing ruamel-yaml from meta-python. This package is a
dependency of python3-dtschema, which is required to validate
kernel devicetrees.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import webcolors from meta-python
Bruce Ashfield [Tue, 23 Nov 2021 03:54:28 +0000 (22:54 -0500)]
python: import webcolors from meta-python

Importing webcolors, which is a dependency of
python3-jsonschema. These packges are required to support
the validation of kernel device trees.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import rfc3986-validator from meta-python
Bruce Ashfield [Tue, 23 Nov 2021 03:54:28 +0000 (22:54 -0500)]
python: import rfc3986-validator from meta-python

Importing rfc3986-validator, which is a dependency of
python3-jsonschema. These packges are required to support
the validation of kernel device trees.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import rfc3339-validator from meta-python
Bruce Ashfield [Tue, 23 Nov 2021 03:54:28 +0000 (22:54 -0500)]
python: import rfc3339-validator from meta-python

Importing rfc3339-validator from meta-python, which is a dependency of
python3-jsonschema. These packges are required to support
the validation of kernel device trees.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import idna from meta-python
Bruce Ashfield [Tue, 23 Nov 2021 03:54:28 +0000 (22:54 -0500)]
python: import idna from meta-python

Importing idna from meta-python, which is a dependency of
python3-jsonschema. These packges are required to support
the validation of kernel device trees.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: import jsonschema from meta-python
Bruce Ashfield [Tue, 23 Nov 2021 03:50:12 +0000 (22:50 -0500)]
python: import jsonschema from meta-python

Importing this package as a dependency to python3-dt-schema,
which is required for kernel device tree validation.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agoptest-packagelists: Add missing python3-jsonpointer entry
Richard Purdie [Fri, 26 Nov 2021 15:46:33 +0000 (15:46 +0000)]
ptest-packagelists: Add missing python3-jsonpointer entry

Resolves:

WARNING: python3-jsonpointer-2.2-r0 do_package_qa: QA Issue: supports ptests but is not included in oe-core's ptest-packagelists.inc [missing-ptest]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-jsonpointer: Update 2.1 to 2.2
Bruce Ashfield [Thu, 25 Nov 2021 16:20:37 +0000 (11:20 -0500)]
python3-jsonpointer: Update 2.1 to 2.2

The import from meta-python was slightly out of date, and the
2.1 version was grabbed. We bump the oe-core version to 2.2
to match the latest meta-oe version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython: import jsonpointer from meta-python
Bruce Ashfield [Tue, 23 Nov 2021 03:50:12 +0000 (22:50 -0500)]
python: import jsonpointer from meta-python

required to support python3-json, which is required for python3-dtschema
and device tree checking by the kernel.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agopython: introduce python3-dtschema
Bruce Ashfield [Tue, 23 Nov 2021 03:40:04 +0000 (22:40 -0500)]
python: introduce python3-dtschema

kernel commit 53182e81f47d [kbuild: Enable DT schema checks for %.dtb
targets], which is part of v5.16+, makes the checking of dtb schemas
manditory.

To support the checking, we introduce this new recipe dtschema.

Dependencies will be imported in subsequent commits, so we can
track the dependency need on a per-import basis.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agokernel: export native PKGCONFIG variables
Bruce Ashfield [Tue, 23 Nov 2021 04:22:55 +0000 (23:22 -0500)]
kernel: export native PKGCONFIG variables

In a similar manner to cml1.bbclass, we export the pkg-config
variables to allow a direct call to pkg-config access to the
native sysroot versus the target sysroot.

The kernel doesn't use pkg-config for target configuration,
and has many explicit calls to pkg-config, without the
possibility of easy override to pkg-config-native.

The calls to pkg-config could be made cross friendly via
replacement with make variables, but until that effort is
undertaken upstream, we need a bridge approach.

In particular, this is required for dtschema validation,
which is a requirement in kernel 5.16+

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agolinux-yocto-dev: bump to v5.16+
Bruce Ashfield [Tue, 23 Nov 2021 04:17:09 +0000 (23:17 -0500)]
linux-yocto-dev: bump to v5.16+

Bumping the version of -dev ot 5.16. We also pickup two new
dependencies to support kernel dtschema validation. This
requirement was introduced by kernel commit:

   commit 53182e81f47d4ea0c727c49ad23cb782173ab849
   Author: Rob Herring <robh@kernel.org>
   Date:   Mon Sep 13 09:51:46 2021 -0500

       kbuild: Enable DT schema checks for %.dtb targets

       It is possible to build a single dtb, but not with DT schema validation
       enabled. Enable the schema validation to run for %.dtb and %.dtbo
       targets. Anyone building a dtb for a specific platform *should* pay
       attention to schema warnings.

       This could be supported with a separate %.dt.yaml target instead.
       However, the .dt.yaml format is considered an intermediate format and
       could possibly go away at some point if schema checking is integrated
       into dtc. Also, the plan is to enable the schema checks by default once
       platforms are free of warnings, and this is a move in that direction.

Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210913145146.766080-1-robh@kernel.org
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
3 years agogcc: Drop no longer needed patch
Richard Purdie [Thu, 25 Nov 2021 08:33:40 +0000 (08:33 +0000)]
gcc: Drop no longer needed patch

This patch was mentioned upstream a long time ago:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47256

Changes from gcc 10 onward mean it is no longer needed as mentioned in the
above bug report. Drop the patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agometa-skeleton: fix warnings for append operators combined with +=
Yi Zhao [Thu, 25 Nov 2021 03:01:48 +0000 (11:01 +0800)]
meta-skeleton: fix warnings for append operators combined with +=

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe/utils: by default cap cpu_count() to 64 cores
Ross Burton [Wed, 24 Nov 2021 17:15:29 +0000 (17:15 +0000)]
oe/utils: by default cap cpu_count() to 64 cores

Larger systems may have large numbers of cores, but beyond a certain
point they can't all be used for compiling: whilst purely
compute-intensive jobs can be parallelised to hundreds of cores,
operations such as compressing (needs lots of RAM) or compiling (lots of
I/O) don't scale linearly.

For example, the Marvel ThunderX2 has 32 cores, each capable of
executing four threads, and can be configured with two sockets, making
256 CPUs according to Linux. Zstd using 256 threads has been seen to
fail to allocate memory during even small recipes such as iso-codes.

Add a default cap of 64 CPUs to the cpu_count() method so that extreme
parallisation is limited.  64 is high enough that meaningful gains
beyond it are unlikely, but high enough that most systems won't be
effected.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosstate: explicitly name the checkhashes thread pool
Ross Burton [Wed, 24 Nov 2021 17:15:28 +0000 (17:15 +0000)]
sstate: explicitly name the checkhashes thread pool

Give this thread pool a name for clarity.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe/utils: allow naming threads in ThreadedPool
Ross Burton [Wed, 24 Nov 2021 17:15:27 +0000 (17:15 +0000)]
oe/utils: allow naming threads in ThreadedPool

When looking at logs involving thread pools it is useful if the threads
can be named.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-setuptools: update 58.5.3 -> 59.2.0
Alexander Kanavin [Wed, 24 Nov 2021 08:08:28 +0000 (09:08 +0100)]
python3-setuptools: update 58.5.3 -> 59.2.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-packaging: update 21.2 -> 21.3
Alexander Kanavin [Wed, 24 Nov 2021 08:08:27 +0000 (09:08 +0100)]
python3-packaging: update 21.2 -> 21.3

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobind: update 9.16.22 -> 9.16.23
Alexander Kanavin [Wed, 24 Nov 2021 08:08:26 +0000 (09:08 +0100)]
bind: update 9.16.22 -> 9.16.23

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovulkan: update 1.2.191.0 -> 1.2.198.0
Alexander Kanavin [Wed, 24 Nov 2021 08:08:25 +0000 (09:08 +0100)]
vulkan: update 1.2.191.0 -> 1.2.198.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: update 249.6 -> 249.7
Alexander Kanavin [Wed, 24 Nov 2021 08:08:24 +0000 (09:08 +0100)]
systemd: update 249.6 -> 249.7

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocmake: update 3.21.4 -> 3.22.0
Alexander Kanavin [Wed, 24 Nov 2021 08:08:23 +0000 (09:08 +0100)]
cmake: update 3.21.4 -> 3.22.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogit: update 2.33.1 -> 2.34.0
Alexander Kanavin [Wed, 24 Nov 2021 08:08:22 +0000 (09:08 +0100)]
git: update 2.33.1 -> 2.34.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogptfdisk: submit patch upstream
Alexander Kanavin [Wed, 24 Nov 2021 08:08:21 +0000 (09:08 +0100)]
gptfdisk: submit patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoweston: mark patch as denied
Alexander Kanavin [Wed, 24 Nov 2021 08:08:20 +0000 (09:08 +0100)]
weston: mark patch as denied

upstream has explained in the patch submisstion how the issue should be solved differently;
we should work towards that.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoelfutils: submit patch upstream
Alexander Kanavin [Wed, 24 Nov 2021 08:08:19 +0000 (09:08 +0100)]
elfutils: submit patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoelfutils: update 0.185 -> 0.186
Alexander Kanavin [Wed, 24 Nov 2021 08:08:10 +0000 (09:08 +0100)]
elfutils: update 0.185 -> 0.186

Drop glibc-2.34-fix.patch merged upstream.

Rework support for error() on non-glibc targets:
upstream now provides its own implementation, so we can drop
the patch that adds ours; said implementation isn't
build-tested with tests, so ptest has to be disabled on musl.
This, in turns, allows dropping 0004-Fix-error-on-musl.patch.

License-Update: copyright years
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodpkg: replace a patch with a tweak to an already existing sed fixup
Alexander Kanavin [Wed, 24 Nov 2021 08:08:18 +0000 (09:08 +0100)]
dpkg: replace a patch with a tweak to an already existing sed fixup

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodiffstat: remove unneeded patch
Alexander Kanavin [Wed, 24 Nov 2021 08:08:17 +0000 (09:08 +0100)]
diffstat: remove unneeded patch

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoapt: drop unneeded chunk from a musl patch, submit the rest upstream
Alexander Kanavin [Wed, 24 Nov 2021 08:08:16 +0000 (09:08 +0100)]
apt: drop unneeded chunk from a musl patch, submit the rest upstream

Upstream has inserted guards around the use of offending constant.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoell: remove unneeded patch
Alexander Kanavin [Wed, 24 Nov 2021 08:08:13 +0000 (09:08 +0100)]
ell: remove unneeded patch

Upstream added internal implementation shortly after the patch was added.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglib-2.0: submit patch upstream
Alexander Kanavin [Wed, 24 Nov 2021 08:08:12 +0000 (09:08 +0100)]
glib-2.0: submit patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agologrotate: add a link to upstream review for one of the patch
Alexander Kanavin [Wed, 17 Nov 2021 15:34:52 +0000 (16:34 +0100)]
logrotate: add a link to upstream review for one of the patch

The patch author (Robert Yang) has been asked by email
to rework the patch.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogroff: include references to corresponding upstream commits in a patch
Alexander Kanavin [Wed, 17 Nov 2021 15:34:51 +0000 (16:34 +0100)]
groff: include references to corresponding upstream commits in a patch

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-yocto: conditionally enable stack protection checking on x86-64
Bruce Ashfield [Tue, 23 Nov 2021 21:57:31 +0000 (16:57 -0500)]
kernel-yocto: conditionally enable stack protection checking on x86-64

The kernel Makfile uses pkgconfig to check for libelf when enabling
CONFIG_STACK_VALIDATION. We already have libelf in our DEPENDS, but
the kernel Makefiles hardcode 'pkgconfig', so fail to pick up our
pkgconfig-native binary that would report the correct flags and paths
for libelf support.

Rather than patching the kernel Makefile's to use pkgconfig-native,
we can use the KERNEL_EXTRA_ARGS variable to pass the definition of
HOST_LIBELF_LIBS via the kernel build commmand line.

We conditionally set HOST_LIBELF_LIBS based on "stack" being in
a newly introduced variable KERNEL_DEBUG_OPTIONS. The value of
HOST_LIBELF_LIBS is the same as pkgconfig-native would set in a
kernel build (but we cannot call pkgconfig at the point this
variable is set).

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.10: update to v5.10.79
Bruce Ashfield [Tue, 23 Nov 2021 21:57:30 +0000 (16:57 -0500)]
linux-yocto/5.10: update to v5.10.79

Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:

    bd816c278316 Linux 5.10.79
    62424fe4c2cf rsi: fix control-message timeout
    8971158af1e0 media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init
    1cf43e928954 staging: rtl8192u: fix control-message timeouts
    9963ba5b9d49 staging: r8712u: fix control-message timeout
    844b02496eac comedi: vmk80xx: fix bulk and interrupt message timeouts
    b7fd7f3387f0 comedi: vmk80xx: fix bulk-buffer overflow
    33d7a470730d comedi: vmk80xx: fix transfer-buffer overflows
    ef143dc0c3de comedi: ni_usb6501: fix NULL-deref in command paths
    786f5b034504 comedi: dt9812: fix DMA buffers on stack
    86d4aedcbc69 isofs: Fix out of bound access for corrupted isofs image
    c430094541a8 staging: rtl8712: fix use-after-free in rtl8712_dl_fw
    ab4af56ae250 printk/console: Allow to disable console output by using console="" or console=null
    07d1db141e47 binder: don't detect sender/target during buffer cleanup
    42681b90c4db usb-storage: Add compatibility quirk flags for iODD 2531/2541
    1309753b7841 usb: musb: Balance list entry in musb_gadget_queue
    27409143122f usb: gadget: Mark USB_FSL_QE broken on 64-bit
    94e5305a3816 usb: ehci: handshake CMD_RUN instead of STS_HALT
    a8db6fd04d58 Revert "x86/kvm: fix vcpu-id indexed array sizes"
    ecf58653f1e4 KVM: x86: avoid warning with -Wbitwise-instead-of-logical

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.14: update to v5.14.18
Bruce Ashfield [Tue, 23 Nov 2021 21:57:29 +0000 (16:57 -0500)]
linux-yocto/5.14: update to v5.14.18

Updating linux-yocto/5.14 to the latest korg -stable release that comprises
the following commits:

    a0265dd8262d Linux 5.14.18
    1379769b0b46 rsi: fix control-message timeout
    eda57a310234 media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init
    5013f2aaf959 staging: rtl8192u: fix control-message timeouts
    f3422d1fceba staging: r8712u: fix control-message timeout
    373ac8c59414 comedi: vmk80xx: fix bulk and interrupt message timeouts
    7b0e35618932 comedi: vmk80xx: fix bulk-buffer overflow
    278484ae9329 comedi: vmk80xx: fix transfer-buffer overflows
    4a9d43cb5d5f comedi: ni_usb6501: fix NULL-deref in command paths
    3ac273d154d6 comedi: dt9812: fix DMA buffers on stack
    b2fa1f52d22c isofs: Fix out of bound access for corrupted isofs image
    befd23bd3b17 staging: rtl8712: fix use-after-free in rtl8712_dl_fw
    bec32c40e438 binder: don't detect sender/target during buffer cleanup
    68abe9aefc40 binder: use cred instead of task for getsecid
    46088365bab7 binder: use cred instead of task for selinux checks
    fbb106e79524 binder: use euid from cred instead of using task
    f9b4ef2504bb Revert "proc/wchan: use printk format instead of lookup_symbol_name()"
    4674de4e2734 usb-storage: Add compatibility quirk flags for iODD 2531/2541
    6be11f54f5d4 usb: musb: Balance list entry in musb_gadget_queue
    d7f4ffba71d0 usb: gadget: Mark USB_FSL_QE broken on 64-bit
    d3c7daab289d usb: ehci: handshake CMD_RUN instead of STS_HALT
    a4cdb4c9c453 Revert "x86/kvm: fix vcpu-id indexed array sizes"
    2f63111ab86f KVM: x86: avoid warning with -Wbitwise-instead-of-logical
    f468cbedb2a7 ALSA: pci: cs46xx: Fix set up buffer type properly
    186155ac272e ALSA: pcm: Check mmap capability of runtime dma buffer at first

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.15: update to v5.15.2
Bruce Ashfield [Tue, 23 Nov 2021 21:57:28 +0000 (16:57 -0500)]
linux-yocto/5.15: update to v5.15.2

Updating linux-yocto/5.15 to the latest korg -stable release that comprises
the following commits:

    7cc36c3e14ae Linux 5.15.2
    5dbe126056fb rsi: fix control-message timeout
    7d6f8d3bab72 media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init
    4787caef521c staging: r8188eu: fix memleak in rtw_wx_set_enc_ext
    8f60f9f6ee24 staging: rtl8192u: fix control-message timeouts
    9033490a3fef staging: r8712u: fix control-message timeout
    3a66e8a661a4 comedi: vmk80xx: fix bulk and interrupt message timeouts
    47b4636ebdbe comedi: vmk80xx: fix bulk-buffer overflow
    06ac746d57e6 comedi: vmk80xx: fix transfer-buffer overflows
    d6a727a681a3 comedi: ni_usb6501: fix NULL-deref in command paths
    20cebb8b620d comedi: dt9812: fix DMA buffers on stack
    e7fb722586a2 isofs: Fix out of bound access for corrupted isofs image
    a65c9afe9f2f staging: rtl8712: fix use-after-free in rtl8712_dl_fw
    a0041453ff9e btrfs: fix lzo_decompress_bio() kmap leakage
    d5dd3b44488b kfence: default to dynamic branch instead of static keys mode
    93ce7441001f kfence: always use static branches to guard kfence_alloc()
    5e57d171e2e6 binder: don't detect sender/target during buffer cleanup
    6e8813eadf8b binder: use cred instead of task for getsecid
    3f3c31dd0f8c binder: use cred instead of task for selinux checks
    ff1bd01f490b binder: use euid from cred instead of using task
    ec7c20d41714 Revert "proc/wchan: use printk format instead of lookup_symbol_name()"
    2e93afda0520 usb-storage: Add compatibility quirk flags for iODD 2531/2541
    ad5df979295b usb: musb: Balance list entry in musb_gadget_queue
    72a9bf9bb16a usb: gadget: Mark USB_FSL_QE broken on 64-bit
    adb1902a1246 usb: ehci: handshake CMD_RUN instead of STS_HALT
    aa8a82d6db0b Revert "x86/kvm: fix vcpu-id indexed array sizes"
    26ac7dec7ff0 KVM: x86: avoid warning with -Wbitwise-instead-of-logical

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowayland-protocols: upgrade 1.23 -> 1.24
Denys Dmytriyenko [Tue, 23 Nov 2021 20:36:59 +0000 (15:36 -0500)]
wayland-protocols: upgrade 1.23 -> 1.24

wayland-protocols 1.24 is now available.

This release adds feedback to the DMA buffer protocol, allowing smarter and
more dynamic DMA buffer allocation semantics. Other changes include
documentation improvements and improved testing infrastructure.

This is also the first release of wayland-protocols that do not include a
autotools build description.

https://lists.freedesktop.org/archives/wayland-devel/2021-November/042039.html

Disable build-time tests as they want to cross-compile in an allarch package:

| # Check buildability
| add_languages('c', 'cpp', native: false)

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc: Fix i586/c3 support
Richard Purdie [Tue, 23 Nov 2021 16:52:33 +0000 (16:52 +0000)]
glibc: Fix i586/c3 support

CET can't be enabled on i586 or c3 for x86, adjust the configuration accordingly
to fix those builds.

[YOCTO #14632]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo: upgrade 1.16.8 -> 1.16.10
Pavel Zhukov [Tue, 23 Nov 2021 15:38:42 +0000 (16:38 +0100)]
go: upgrade 1.16.8 -> 1.16.10

The release includes fixes for CVE-2021-41771 and CVE-2021-41772

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoimage: Include psplash only when screen machine feature is enabled
Khem Raj [Mon, 22 Nov 2021 22:27:59 +0000 (14:27 -0800)]
image: Include psplash only when screen machine feature is enabled

base-image boots in degraded mode when using systems without display
system since there is no fb device detected and pslash service would
fail to start. Removing this image feature means that core-image-base is
complete for headless devices

[RP: tweak the false case so it builds]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowic: support rootdev identified by partition label
Schmidt, Adriaan [Tue, 23 Nov 2021 08:33:29 +0000 (08:33 +0000)]
wic: support rootdev identified by partition label

We already support specifying the rootfs by PARTUUID. This adds general
support for letting the kernel find the rootfs by PARTLABEL.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobitbake.conf: Pass -D option to ranlib for determisim
Richard Purdie [Mon, 22 Nov 2021 16:08:16 +0000 (16:08 +0000)]
bitbake.conf: Pass -D option to ranlib for determisim

Add the -D option to BUILD_RANLIB so that deterministic archives
are built for native/cross output. This improves the changes of hash
equivalence matches and hence build artefact reuse.

We don't need this in the target case since we compile binutils-cross
with an option making this the default.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildhistory: Fix do_package race issues
Richard Purdie [Tue, 23 Nov 2021 13:14:35 +0000 (13:14 +0000)]
buildhistory: Fix do_package race issues

The buildhistory_list_pkg_files function uses data from do_package, not
do_packagedata. Usally the two are restored together but it may see
a half complete directory or other races issues depending on timing.

Rework the function so that it uses the correct task dependencies. This
should avoid races but means the data is only restored to buildhistory
if the do_package or do_package_setscene tasks are restored.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc-tests: Do not set SYSTEMD_SERVICE
Khem Raj [Thu, 18 Nov 2021 22:43:01 +0000 (14:43 -0800)]
glibc-tests: Do not set SYSTEMD_SERVICE

These are glibc specific which comes from glibc packaging class

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoptest-packagelists: Handle glibc vs musl for ptest
Richard Purdie [Thu, 11 Nov 2021 17:22:41 +0000 (17:22 +0000)]
ptest-packagelists: Handle glibc vs musl for ptest

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc: ptest: Add running glibc time related test suite (Y2038) with ptest
Lukasz Majewski [Tue, 9 Nov 2021 15:28:51 +0000 (16:28 +0100)]
glibc: ptest: Add running glibc time related test suite (Y2038) with ptest

This patch introduces new recipe - namely 'glibc-tests', which
builds and installs time related (to check if Y2038 support works) glibc
test suite to OE/Yocto built image.

It reuses code from already available 'glibc-testsuite' recipe,
which is run with 'bitbake glibc-testsuite -c check' and uses qemu
to execute remotely (via SSH) tests on some emulated machine.

This recipe installs time related glibc tests on some rootfs image.
Afterwards, those tests can be executed on the real hardware, to
facilitate validation of it with Y2038 problem compliance.

To test time related subset - one needs to call:
ptest-runner glibc-tests
then change the date after Y2038 threshold for 32 bit systems:
date -s "20 JAN 2038 18:00:00"
and then run ptest-runner again.

To facilitate debugging, source files are provided by default with
the unstripped debugging symbols. Such approach would reduce the
already complex recipe (as it inherits base glibc one), so there
is no need to also install *-dbg and *-src packages.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogmp: fix CVE-2021-43618
Ross Burton [Mon, 22 Nov 2021 11:40:56 +0000 (11:40 +0000)]
gmp: fix CVE-2021-43618

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibjpeg-turbo: upgrade 2.1.1 -> 2.1.2
wangmy [Mon, 22 Nov 2021 14:58:31 +0000 (22:58 +0800)]
libjpeg-turbo: upgrade 2.1.1 -> 2.1.2

Significant changes relative to 2.1.1:
Fixed a regression introduced by 2.1 beta1[13] that caused the remaining
GAS implementations of AArch64 (Arm 64-bit) Neon SIMD functions
(which are used by default with GCC for performance reasons) to be placed in
the .rodata section rather than in the .text section.
This caused the GNU linker to automatically place the .rodata section in
an executable segment, which prevented libjpeg-turbo from working properly
with other linkers and also represented a potential security risk.

Fixed an issue whereby the tjTransform() function incorrectly computed the
MCU block size for 4:4:4 JPEG images with non-unary sampling factors and
thus unduly rejected some cropping regions, even though those regions aligned
with 8x8 MCU block boundaries.

Fixed a regression introduced by 2.1 beta1[13] that caused the build system
to enable the Arm Neon SIMD extensions when targetting Armv6 and other legacy
architectures that do not support Neon instructions.

libjpeg-turbo now performs run-time detection of AltiVec instructions on
FreeBSD/PowerPC systems if AltiVec instructions are not enabled at compile time.
This allows both AltiVec-equipped and non-AltiVec-equipped CPUs to be supported
using the same build of libjpeg-turbo.

cjpeg now accepts a -strict argument similar to that of djpeg and jpegtran,
which causes the compressor to abort if an LZW-compressed GIF input image
contains incomplete or corrupt image data.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-mako: upgrade 1.1.5 -> 1.1.6
wangmy [Mon, 22 Nov 2021 14:58:33 +0000 (22:58 +0800)]
python3-mako: upgrade 1.1.5 -> 1.1.6

Fixed issue where control statements on multi lines with a backslash would
not parse correctly if the template itself contained CR/LF pairs as on
Windows.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: upgrade 21.2.5 -> 21.3.0
wangmy [Mon, 22 Nov 2021 14:58:32 +0000 (22:58 +0800)]
mesa: upgrade 21.2.5 -> 21.3.0

New features:
VK_EXT_color_write_enable on lavapipe
GL_ARB_texture_filter_anisotropic in llvmpipe
Anisotropic texture filtering in lavapipe
VK_EXT_shader_atomic_float2 on Intel and RADV.
VK_EXT_vertex_input_dynamic_state on RADV.
VK_KHR_timeline_semaphore on lavapipe
VK_EXT_external_memory_host on lavapipe
GL_AMD_pinned_memory on llvmpipe
GL 4.5 compatibility on llvmpipe
VK_EXT_primitive_topology_list_restart on RADV and lavapipe.
ES 3.2 on zink
VK_KHR_depth_stencil_resolve on lavapipe
VK_KHR_shader_integer_dot_product on RADV.
OpenGL FP16 support on llvmpipe
VK_KHR_shader_float16_int8 on lavapipe
VK_KHR_spirv_1_4 on lavapipe
Experimental raytracing support on RADV
VK_KHR_synchronization2 on Intel
NGG shader based culling is now enabled by default on GFX10.3 on RADV.
VK_KHR_maintenance4 on RADV
VK_KHR_format_feature_flags2 on RADV.
EGL_EXT_present_opaque on wayland

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibcap: upgrade 2.60 -> 2.61
wangmy [Mon, 22 Nov 2021 14:58:30 +0000 (22:58 +0800)]
libcap: upgrade 2.60 -> 2.61

better number parsing in capsh and setcap;
fixed segfaulting in .so executables;
added example of capable shared library object.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-scons: upgrade 4.2.0 -> 4.3.0
wangmy [Mon, 22 Nov 2021 14:59:34 +0000 (22:59 +0800)]
python3-scons: upgrade 4.2.0 -> 4.3.0

NOTE: 4.3.0 now requires Python 3.6.0 and above. Python 3.5.x is no longer supported

Changelog:
- Default hash algorithm check updated for SCons FIPS compliance. Now checks for hash viability
  first and then walks the tree to use the first viable hash as the default one. This typically
  selects SHA1 on FIPS-enabled systems less than Python 3.9 as the new default instead of MD5,
  unless SHA1 has also been disabled by security policy, at which point SCons selects SHA256
  as the default. For systems running Python 3.9 and later, the hashlib bug has been fixed,
  and SCons will once again default to MD5 as the preferred algorithm.
- Fix MSVS tests (vs-N.N-exec.py) for MSVS 6.0, 7.0, and 7.1 (import missing module).
- Add support for Visual Studio 2022.
- Fix reproducible builds. Restore logic respecting SOURCE_DATE_EPOCH when set.
- Fix version tests to work with updated scons --version output. (Date format changed)
- Fix issue #4021.  Change the way subst() is used in Textfile() to not evaluate '$$(' -> '$',
  but instead it should yield '$('.
- Change SCons.Platform.win32.get_architecture() to return platform.platform() when run in an
  environment where neither: PROCESSOR_ARCHITEW6432 nor PROCESSOR_ARCHITECTURE is set.
  This should fix platform tests which started failing when HOST_OS/HOST_ARCH changes
  introduced by Aaron Franke (listed below) were merged.
- Further PCH updates. It's now recommended that env['PCH'] should always be a File node.
  Either via return value from env.PCH() or by explicitly using File('StdAfx.pch').
- Added --no-ignore-skips to runtest.py. Changed default to ignore skips when setting
  runtest.py's exit status. Previously would exit 2 if any tests were skipped.
  Now will only exit 2 if user specifies --no-ignore-skips and some tests were skipped.
- Small fix to ensure CLVar default value is an empty list.
  See MongoDB bug report: https://jira.mongodb.org/browse/SERVER-59656
  Code contributed by MongoDB.
- Ninja - Fixed an issue where if you control-c and/or killed ninja while it was running scons to
  regenerate build.ninja you would end up with no build.ninja file and have to rerun scons from scratch.
  Code contributed by MongoDB.
- Define HOST_OS and HOST_ARCH in the environment for all platforms.
  Before this change, these were only defined for Win32 and OS/2.
- Fix ninja tool to never use for_sig substitution because ninja does not use signatures. This
  issue affected CommandGeneratorAction function actions specifically.
- Expanded ninja Mkdir to also support Mkdir actions.
- Added support for the PCH environment variable to support subst generators.
- Fix command line escaping for ninja dollar sign escape. Without escaping ninja properly,
  the ninja file scons regenerate and callback invocations will lose the $ characters used in
  the scons command line which ninja uses itself for escaping. For Example:
      scons BUILD=xyz OTHERVAR=$BUILD
  Prior to this fix, it would cause ninja to fail to escape the dollar sign, leading to the
  single dollar sign being used as a ninja escape character in the ninja file.
- Added ninja API 'NINJA_FORCE_SCONS_BUILD' to force a node to callback to scons.
- Two small Python 3.10 fixes: one more docstring turned into raw
  because it contained an escape; updated "helpful" syntax error message
  from 3.10 was not expected by SubstTests.py and test/Subst/Syntax.py
- EmitterProxy rich comparison set is completed (checker warning).
  Added __le__, __gt__, __ge__.
- Fix gcc/g++ tool failing if "gcc --version" returns text which fails
  to_String conversion (i.e., not UTF-8) - failure happens when tool
  initialization checks version. For gcc, the initial version string is
  not translated, for the rest, don't convert, just consume raw and discard.
- Maintenance and doc: modernize some usage in Scanner package,
  calling super(), switching some imitialization to comprehensions,
  and code formatting.  Docstring for scanner Base moved from
  init-method to class-level so it's picked up by Sphinx.
  Added new sconsign filenames to skip_entry_list in Scanner/Dir.py
- Change SCons.Scanner.Base to ScannerBase. Old name kept as an alias
  but is now unused in SCons itself.
- Call Variables option converter consistently - the converter should
  have access to the env if it needs to (issue #2064).
- Fixed the variables Add() method to accept a tuple for the variable
  name the same way AddVariables() does (issue #3869).
- The premade validator PathIsDirCreate for for PathVariable now catches
  the case where the directory could not be created due to permission
  problems, allowing a more helpful error to be emitted (issue #2828)
- Maintenance: Python thread.setDaemon is deprecated in favor of
  directly updating daemon attribute - update SCons to do this.
- Make sure when subst'ing a callable, the callable is called with
  the correct for_signature value, previously it would be true even
  if doing SUBST_RAW (issue #4037)
- Update Util/NodeList implementation to get rid of a workaround for
  early Python 3 slicing issue that is no longer a problem.
- Rework some Java tests to skip rather than fail on CI systems, where
  the working java is > v9, but a 1.8 or 9 was also found.
- Java updates: on Windows, detect more default JDK install locations.
  On all platforms, more Java versions (up to 17.0 now).  Add more information
  on version selection to docs.
  Update docs on JavaH tool in light of javah command dropped since 10.0.
  Try to be better about preserving user's passed-in JAVA* construction vars.
- Start the deprecation of the qt tool, which refers to Qt3 (usupported
  since around 2006). There's a deprecation warning added, initially
  defaulting to disabled.
- Fix crash when scons is run from a python environement where a signal
  is set from outside Python.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemtap: upgrade 4.5 -> 4.6
wangmy [Mon, 22 Nov 2021 14:59:33 +0000 (22:59 +0800)]
systemtap: upgrade 4.5 -> 4.6

support for 64-bit RISC-V architecture, liveness analysis for guru-mode write operations,
bpf syscall_any and abort() tapsets, bpf foreach iteration of multi-key arrays,
return of inter-cpu output ordering

Changelog is as follows:
= SystemTap frontend (stap) changes
- stap-prep now tries to download the main kernel debuginfo file from
  a debuginfod server, if configured.

= SystemTap backend changes
- SystemTap has added support for the 64-bit RISC-V architecture.
- SystemTap now uses DynInst to perform a liveness analysis on
  target variables and warn when a guru-mode modification to a variable
  will have no effect. The liveness analysis is currently done on
  x86_64, PowerPC, and AArch64.
- The kernel-user relayfs transport again sorts messages into a total
  time order across CPUs.  High output-volume scripts may need a
  larger "-s BUF" parameter to reliably transfer.  "-b" bulk mode
  is also available again as an alternative.
- The bpf backend now supports foreach iteration in multi-key associative arrays.

= SystemTap tapset changes
- Updated syscall_any tapset mapping to include newer syscalls.
- syscall_any tapset can be used by the bpf backend.
- abort() tapset can be used by the bpf backend.

= Known issues with this release
- There are known issues on kernel 5.10+ after adapting to set_fs()
  removal, with some memory accesses that previously returned valid data
  instead returning -EFAULT (see PR26811).
- An sdt probe cannot parse a parameter that uses a segment register.
  (PR13429)
- The presence of a line such as
      *CFLAGS += $(call cc-option, -fno-var-tracking-assignments)
  in older linux kernel Makefile unnecessarily reduces debuginfo quality,
  consider removing that line if you build kernels.  Linux 5.10+ fixes this.

= Bugs fixed for this release <https://sourceware.org/PR#####>
6562     $SYSTEMTAP_DEBUGINFO_PATH does not work
15724     stapdyn looking for libdyninstAPI_RT.a
26839     Systemtap build failures with clang
27820     abort() tapset not implemented in the bpf mode
27829     support for floating point values passed through sdt.h markers
27864     loc2stap.cxx assertion failure on loc_unavailable type location, rawhide
27881     failed to extend vma mapped entry when the address is adjacent
27903     handle f33 glibc $$parms
27932     List Python as a prerequisite in README
27933     Use of unitialized functioncall synthetic field in
27934     failure to attach statement
27940     The /* pc=0x... */ is no longer printed by "stap -v -L 'kernel.function("*")'
27942     testsuite/systemtap.base/perf.sh drop bashism
27984     stap skipping partially-inlined instance, but it is not inline function actually
28070     extend vma end address to the different module
28079     adapt to kernel 5.14 task_struct.__state change
28084     autoconf-x86-uniregs.c compile failled with -Werror cause STAPCONF_X86_UNIREGS missing
28140     kernel panic on tracepoint activation in stap module
28184     task_fd_lookup failed on linux 5.11
28244     linux objtool imposes symbol length limits on generated function names
28384     finish nfs_proc tapset port 4.3 string server_ip
28443     Provide syscall_any tapset for bpf
28449     loss of cross-cpu output ordering
28544     procfs_bpf.exp regression due to string handling error
28557     module kprobe insertion on modern kernels

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agostress-ng: upgrade 0.13.06 -> 0.13.07
wangmy [Mon, 22 Nov 2021 14:59:32 +0000 (22:59 +0800)]
stress-ng: upgrade 0.13.06 -> 0.13.07

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildhistory: Fix srcrevs output
Richard Purdie [Mon, 22 Nov 2021 15:32:36 +0000 (15:32 +0000)]
buildhistory: Fix srcrevs output

The code was assuming that the a recipe with only one srcrev wouldn't "name"
it. This isn't the case as the glibc or bzip2 recipes show, you can have
a single srcrev which is named.

We can pull the data from the fetcher and in fact we already have it, we just
need to handle the "default" case and make that code the default for all srcrev
regardless of length.

[YOCTO #14017]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildhistory: Drop support for older bitbakes
Richard Purdie [Mon, 22 Nov 2021 15:21:49 +0000 (15:21 +0000)]
buildhistory: Drop support for older bitbakes

We've bumped the minimum bitbake version past the point this fallback code
was needed, drop it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/crate-fetch: Ensure crate fetcher is available
Joshua Watt [Fri, 19 Nov 2021 02:12:49 +0000 (20:12 -0600)]
classes/crate-fetch: Ensure crate fetcher is available

Reworks the crate fetcher class to have it install the fetcher at recipe
finalization so that it is always available before SRC_URI is expanded.
In addition, override the value of SRCPV to also install the fetcher
when SRCPV is expanded so that AUTOREV works.

[YOCTO #10867]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorootfs-postcommands: update systemd_create_users
Vyacheslav Yurkov [Fri, 19 Nov 2021 21:05:39 +0000 (22:05 +0100)]
rootfs-postcommands: update systemd_create_users

Process all systemd-sysusers configuration files in order to create
users/groups at build time. systemd-sysusers would try to create them at
run-time, but for read-only rootfs that's not possible and results in
warnings from different services:

systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:39 Unknown group 'render', ignoring
systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:40 Unknown group 'render', ignoring
systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:42 Unknown group 'sgx', ignoring

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>