]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
3 years agoell: upgrade 0.52 -> 0.53
Richard Purdie [Thu, 15 Sep 2022 06:47:14 +0000 (06:47 +0000)] 
ell: upgrade 0.52 -> 0.53

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogit: upgrade 2.37.2 -> 2.37.3
Richard Purdie [Thu, 15 Sep 2022 08:21:21 +0000 (08:21 +0000)] 
git: upgrade 2.37.2 -> 2.37.3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodnf: upgrade 4.13.0 -> 4.14.0
Richard Purdie [Thu, 15 Sep 2022 08:00:28 +0000 (08:00 +0000)] 
dnf: upgrade 4.13.0 -> 4.14.0

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobtrfs-tools: upgrade 5.19 -> 5.19.1
Richard Purdie [Thu, 15 Sep 2022 07:07:59 +0000 (07:07 +0000)] 
btrfs-tools: upgrade 5.19 -> 5.19.1

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoccache: upgrade 4.6.2 -> 4.6.3
Richard Purdie [Thu, 15 Sep 2022 07:14:37 +0000 (07:14 +0000)] 
ccache: upgrade 4.6.2 -> 4.6.3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoofono: upgrade 1.34 -> 2.0
Richard Purdie [Thu, 15 Sep 2022 06:42:25 +0000 (06:42 +0000)] 
ofono: upgrade 1.34 -> 2.0

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoautoconf-archive: upgrade 2022.02.11 -> 2022.09.03
Richard Purdie [Thu, 15 Sep 2022 07:01:02 +0000 (07:01 +0000)] 
autoconf-archive: upgrade 2022.02.11 -> 2022.09.03

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/utils/decorators: Drop getResults
Richard Purdie [Fri, 16 Sep 2022 12:21:12 +0000 (13:21 +0100)] 
oeqa/utils/decorators: Drop getResults

Now there are no users of getResults, drop it. The code doesn't work with
python 3.8 onwards and is pretty horrible with internal python knowledge.
We don't need this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/utils/decorators: Drop unused decorators
Richard Purdie [Fri, 16 Sep 2022 12:19:07 +0000 (13:19 +0100)] 
oeqa/utils/decorators: Drop unused decorators

These decorators aren't used anywhere in core and broke from python 3.8
onwards. The code implementing them (in getResults) is pretty horrible
and I'm happy to see them and it removed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooetest: Drop getResults usage from oeRuntimeTest
Richard Purdie [Fri, 16 Sep 2022 12:16:40 +0000 (13:16 +0100)] 
oetest: Drop getResults usage from oeRuntimeTest

Despite the name, this code is only used from testexport and the function
in question is broken on python 3.8 onwards. Since nobody is using it
and the failure log handling here is of questionable benefit anyway, drop it.
We should be using the same code for normal test runs and testexport,
not having two different codepaths.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooetest: Drop unused variable
Richard Purdie [Fri, 16 Sep 2022 12:14:45 +0000 (13:14 +0100)] 
oetest: Drop unused variable

The pscmd variable appears unused, drop it and the code which then
isn't needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoopkg: add option for zstd support
Etienne Cordonnier [Wed, 14 Sep 2022 09:59:45 +0000 (11:59 +0200)] 
opkg: add option for zstd support

This allows the use of zstd for opkg packages by using OPKGBUILDCMD:
OPKGBUILDCMD = "opkg-build -Z zstd"

Signed-off-by: Alex Feinman <afeinman@snap.com>
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3: add PACKAGECONFIG[editline]
Etienne Cordonnier [Tue, 13 Sep 2022 15:25:53 +0000 (17:25 +0200)] 
python3: add PACKAGECONFIG[editline]

editline is a BSD alternative for readline which is GPLv3.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoelfutils: Enable ptests on musl targets
Khem Raj [Tue, 13 Sep 2022 20:56:25 +0000 (13:56 -0700)] 
elfutils: Enable ptests on musl targets

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoicecc.bbclass: fix filename of recipe in comment
Ulrich Ölmann [Wed, 14 Sep 2022 11:19:45 +0000 (13:19 +0200)] 
icecc.bbclass: fix filename of recipe in comment

The character '%' is not a valid part of a recipe filename and has been used
here only to suggest a wildcard regarding the recipe's version, see reply [1] in
a companioned thread. Correct that by using the current recipe version instead.

[1] https://lists.yoctoproject.org/g/docs/message/3165

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorootfs.py: Drop FAKEROOT support in exec function
Andrei Gherzan [Wed, 14 Sep 2022 12:08:35 +0000 (14:08 +0200)] 
rootfs.py: Drop FAKEROOT support in exec function

The _exec_shell_cmd function is used by a couple of other functions that
are ultimatelly called from the create_rootfs function. The latter is
used in image bbclass' do_rootfs which is running using the fakeroot
support in bitbake. This makes the fakeroot support in _exec_shell_cmd
redundant and never actually used.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinit-system-helpers: exclude experimental tags from version check
Alexander Kanavin [Thu, 15 Sep 2022 09:46:21 +0000 (11:46 +0200)] 
init-system-helpers: exclude experimental tags from version check

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocurl: Add missing perl modules in ptest rdepends
Khem Raj [Wed, 14 Sep 2022 23:40:38 +0000 (16:40 -0700)] 
curl: Add missing perl modules in ptest rdepends

These modules outside of perl-modules are necessary to run curl-ptests

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogcc-cross-canadian: add default plugin linker
Samuli Piippo [Fri, 16 Sep 2022 07:41:05 +0000 (07:41 +0000)] 
gcc-cross-canadian: add default plugin linker

Fix multilib sdk issue where gcc is unable to find linker. Previous
fix was in cdd86896c8d29135f937968e9aa07f919cf543d3 using real-ld
symlink, but that prevented switching between bfd and gold linkers.

Running compiler with debug arguments shows that collect2 tries and
fails to find linker using the multilib triples:

  $ $CC -v -Wl,-debug
  ...
  Looking for 'real-ld'
  Looking for 'collect-ld'
  Looking for 'mips-oemllib32-linux-ld'
  Looking for 'mips-oe-linux-mips-oemllib32-linux-ld'
  ...
  collect2 version 12.2.0
  ld_file_name        = not found
  ...
  collect2: fatal error: cannot find ‘ld’

Using --with-plugin-ld=ld in gcc-cross-canadian builds to set default
linker name for collect2, lets it find the linker correctly:

  Looking for 'real-ld'
  Looking for 'collect-ld'
  Looking for 'ld'
  ...
  collect2 version 12.2.0
  ld_file_name        = /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/libexec/mips-oe-linux/gcc/mips-oe-linux/12.2.0/ld

Swith between bfd and gold linker works as expected now:

  $ $CC -v -Wl,-debug -fuse-ld=gold
  ...
  Looking for 'real-ld'
  Looking for 'collect-ld'
  Looking for 'ld.gold'
  ...
  collect2 version 12.2.0
  ld_file_name        = /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/libexec/i686-oe-linux/gcc/i686-oe-linux/12.2.0/ld.gold

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoRevert "gcc-cross-canadian: Add symlink to real-ld alongside other symlinks"
Samuli Piippo [Fri, 16 Sep 2022 07:41:04 +0000 (07:41 +0000)] 
Revert "gcc-cross-canadian: Add symlink to real-ld alongside other symlinks"

This reverts commit cdd86896c8d29135f937968e9aa07f919cf543d3.

real-ld is always used if that is found, which means you cannot
switch between bfd and gold linkers using -fuse-ld gcc option.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-firmware: package new Qualcomm firmware
Dmitry Baryshkov [Thu, 15 Sep 2022 20:45:23 +0000 (23:45 +0300)] 
linux-firmware: package new Qualcomm firmware

Add packages for the new Qualcomm firmware released for Lenovo X13s
laptop.

The INSANE_SKIP:${PN} has to be provided to silent following warnings:

WARNING: File '/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qcadsp8280.mbn' from linux-firmware was already stripped, this will prevent future debugging!
WARNING: File '/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn' from linux-firmware was already stripped, this will prevent future debugging!
WARNING: File '/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qccdsp8280.mbn' from linux-firmware was already stripped, this will prevent future debugging!
WARNING: File '/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qcslpi8280.mbn' from linux-firmware was already stripped, this will prevent future debugging!

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-firmware: upgrade 20220708 -> 20220913
Dmitry Baryshkov [Thu, 15 Sep 2022 20:45:22 +0000 (23:45 +0300)] 
linux-firmware: upgrade 20220708 -> 20220913

License-Update: additional files
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinetutils: Fix remote DoS vulnerability in inetutils-telnetd
Khem Raj [Tue, 13 Sep 2022 01:37:45 +0000 (18:37 -0700)] 
inetutils: Fix remote DoS vulnerability in inetutils-telnetd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobinutils: Ignore CVE-2022-38126 CVE-2022-38127
Khem Raj [Tue, 13 Sep 2022 00:51:32 +0000 (17:51 -0700)] 
binutils: Ignore CVE-2022-38126 CVE-2022-38127

They are already part of backports to 2_36 branch
as noted

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc: Upgrade to tip of 2.36 branch
Khem Raj [Tue, 13 Sep 2022 00:51:31 +0000 (17:51 -0700)] 
glibc: Upgrade to tip of 2.36 branch

Adresses CVE-2022-39046

Brings in following changeset

c399271c10 nscd: Fix netlink cache invalidation if epoll is used [BZ #29415]
b46412fb17 Add NEWS entry for CVE-2022-39046
645d94808a syslog: Remove extra whitespace between timestamp and message (BZ#29544)
b3736d1a3c elf: Restore how vDSO dependency is printed with LD_TRACE_LOADED_OBJECTS (BZ #29539)
3c791f2031 Apply asm redirections in wchar.h before first use
924e4f3eaa elf: Call __libc_early_init for reused namespaces (bug 29528)
b0e7888d1f syslog: Fix large messages (BZ#29536)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest/qemurunner: Work around possible control character contamination
Richard Purdie [Tue, 13 Sep 2022 09:29:01 +0000 (10:29 +0100)] 
selftest/qemurunner: Work around possible control character contamination

Using a binary string as the login banner search expression is fraught with
risks. We've seen cases on the autobuilder where "login:" is clearly shown
but the code hasn't triggered. The most likely cause is hidden control characters
in the output causing the search to fail.

Take the opportunity to remove the horrible binary string search, at the expense of
decoding the bootlog multiple times.

Tweak the logging so we can know which log was printed (self.msg or bootlog)
just in case this isn't the issue and we need more information in future.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovim: Upgrade 9.0.0341 -> 9.0.0453
Richard Purdie [Mon, 12 Sep 2022 22:37:43 +0000 (23:37 +0100)] 
vim: Upgrade 9.0.0341 -> 9.0.0453

Includes fixes for CVE-2022-3099 and CVE-2022-3134.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibubootenv: upgrade 0.3.2 -> 0.3.3
Stefano Babic [Fri, 9 Sep 2022 10:07:07 +0000 (12:07 +0200)] 
libubootenv: upgrade 0.3.2 -> 0.3.3

This includes the following changes:

1081006 Prepare 0.3.3
5d3e33c CMakeLists.txt: fix some inconsistent coding style
0e8f45c fw_printenv: dont hard-code configuration/environment files
44ecc1c fw_setenv: fix bug when SPI flash write size != sector size
9ddccfc uboot_env: fix fileprotect for Android
066bec4 CI: add REUSE compatibility check
5cd7022 Android.bp: add missing copyright
73d0ded Android.bp: initial addition
629c5bc uboot_env: remove unused function
2dab85e uboot_env: remove unused parameters
82730b4 uboot_env: remove unused variables
2736ff3 uboot_env: fix pointer-sign warnings
f5d9292 uboot_env: switch to strchr/strrchr
369121e Add description of the fw_setenv script syntax
10c9a57 Include cstddef in the header for C++
471cdd5 Correct type of conversion of HEX .flags
7dbfffa Fix parsing multiple .flags variables
de31f3d Add REUSE badge
6390c1c Make libubootenv REUSE compliant
0573071 doxygen: fix libuboot_open/close return value description
0d12468 Add documentation for the configuration file
b1178c1 Add configuration for disabling MTD lock
5dadcb3 main: Remove duplicated code about '=' in variable name.
e085e37 libubootenv: Forbid to give empty variable name to fw_setenv.
42f919e main: Check libuboot_set_env() result.
1bc91d1 CI: add gitlab config

Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-hello-world: move to recipes-extended
Otavio Salvador [Sat, 10 Sep 2022 20:24:31 +0000 (17:24 -0300)] 
rust-hello-world: move to recipes-extended

There is no need to have a single recipe in recipes-example; moving it
to recipes-extended put it with other recipes.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorootfs.py: Run depmod(wrapper) against each compiled kernel
Andrei Gherzan [Fri, 9 Sep 2022 22:04:25 +0000 (00:04 +0200)] 
rootfs.py: Run depmod(wrapper) against each compiled kernel

We run depmod (through depmodwrapper) at the end of the rootfs
generation process. This part of the process assumes in its current
implementation that the kernel package name is always 'kernel' and that
there is only one set of kernel modules for which we need to generate
the modules.dep and map files.

The kernel package name can be configured via a variable
(KERNEL_PACKAGE_NAME) and becomes a namespace that enables the build
system to deal with multiple compiled kernel recipes. This patch checks
for all the depmod pkgdata and runs depmod for each of the detected
kernel versions/kernel package name.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-module-split.bbclass: Pass the kernel package name to depmodwrapper
Andrei Gherzan [Fri, 9 Sep 2022 22:04:24 +0000 (00:04 +0200)] 
kernel-module-split.bbclass: Pass the kernel package name to depmodwrapper

This makes sure that the postrm script it using the right kernel paths.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel.bbclass: Pass the kernel package name to depmodwrapper
Andrei Gherzan [Fri, 9 Sep 2022 22:04:23 +0000 (00:04 +0200)] 
kernel.bbclass: Pass the kernel package name to depmodwrapper

This makes sure that the postinstall script it using the right kernel
paths.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodepmodwrapper-cross: Take into consideration kernel package name
Andrei Gherzan [Fri, 9 Sep 2022 22:04:22 +0000 (00:04 +0200)] 
depmodwrapper-cross: Take into consideration kernel package name

depmodwrapper assumes that the kernel package name is "kernel". Since
this is configurable via KERNEL_PACKAGE_NAME variable, the wrapper can
easily look in the wrong place. This change adds an optional positional
argument that can be used to provide the kernel package name - when not
provided, it defaults to "kernel" (current behaviour).

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowatchdog: Remove unneeded tirpc dependency
Paulo Neves [Mon, 12 Sep 2022 09:21:22 +0000 (11:21 +0200)] 
watchdog: Remove unneeded tirpc dependency

watchdog code does not have any dependency on rpc code,
therefore the dependency and flags to try to use it are
removed.

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-libc-headers: switch from SRC_URI:append to SRC_URI +=
Mikko Rapeli [Mon, 12 Sep 2022 07:32:21 +0000 (10:32 +0300)] 
linux-libc-headers: switch from SRC_URI:append to SRC_URI +=

The :append can not be removed via bbappends in custom layers so it's
better to use += appends when ever possible.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-rfc3986-validator: switch from SRC_URI:append to SRC_URI +=
Mikko Rapeli [Mon, 12 Sep 2022 07:32:20 +0000 (10:32 +0300)] 
python3-rfc3986-validator: switch from SRC_URI:append to SRC_URI +=

The :append can not be removed via bbappends if needed. Thus it's better
for open source layers to use += append if possible.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo-native: switch from SRC_URI:append to SRC_URI +=
Mikko Rapeli [Mon, 12 Sep 2022 07:32:19 +0000 (10:32 +0300)] 
go-native: switch from SRC_URI:append to SRC_URI +=

The :append can not be removed if needed in other layers.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc-tests: use += instead of :append
Mikko Rapeli [Mon, 12 Sep 2022 07:32:18 +0000 (10:32 +0300)] 
glibc-tests: use += instead of :append

:append can not be modified in bbappends and thus += is
better in re-usable, generic layers and recipes.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: switch from append to += in SRC_URI
Mikko Rapeli [Mon, 12 Sep 2022 07:32:17 +0000 (10:32 +0300)] 
u-boot: switch from append to += in SRC_URI

+= allows custom layers to change the SRC_URI e.g. when
updating the whole recipe to newer u-boot version.
With :append, there is no way to change the variable
from a bbappend.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Mon, 12 Sep 2022 07:39:50 +0000 (08:39 +0100)] 
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust: Use libc++ runtime when using clang with llvm runtime
Khem Raj [Sun, 11 Sep 2022 23:28:44 +0000 (16:28 -0700)] 
rust: Use libc++ runtime when using clang with llvm runtime

meta-clang has options when it comes to C++ runtime, default is to use
gnu runtime, other options are llvm runtime and android runtime. This
patch helps when a distro is using llvm runtime for C/C++ runtime. It
informs the rust build system about right C++ runtime to configure for
when such a setting is used.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibxml2: don't override XML_CATALOG_FILES in xmllint wrapper if already set
Ross Burton [Fri, 9 Sep 2022 16:36:40 +0000 (17:36 +0100)] 
libxml2: don't override XML_CATALOG_FILES in xmllint wrapper if already set

The KDE build uses custom catalogs by setting XML_CATALOG_FILES, so this
wrapper should not override that value if it has already been set.

[RP: Add vardepsexclude since bitbake stores the expanded version of the variable
name in the siginfo data which would expand to a full build path in the native
case]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobitbake.conf: Define TC_CXX_RUNTIME
Khem Raj [Fri, 9 Sep 2022 16:52:04 +0000 (09:52 -0700)] 
bitbake.conf: Define TC_CXX_RUNTIME

This variable is used to denote the C/C++ compiler runtime to use.
Right now there are few alternatives out of the core which could
use this variable to define this property, the values it can take
are 'gnu' for gcc runtime. 'llvm' for using compiler-rt+libc++ and
'android' to use android runtime. Default settings is to use gnu
which is current silent default also.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorunqemu: display host uptime when starting
Alexandre Belloni [Fri, 9 Sep 2022 15:57:34 +0000 (17:57 +0200)] 
runqemu: display host uptime when starting

In order to be able to debug issues on the host that have an impact on the
guest, it is useful to get the uptime of the host while starting so we can
match with the events in dmesg. Also include the uptime when cleaning up.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-lxml: Add recipe
Khem Raj [Sat, 3 Sep 2022 17:45:58 +0000 (10:45 -0700)] 
python3-lxml: Add recipe

Import this recipe from meta-python, as it is needed by many recipes
from different layers e.g. wireplumber from meta-multimedia,
opengl-es-cts and vulkan-cts in meta-oe, yelp-tools in meta-gnome to
name a few, the real issue is that newer vulkan-cts has added this
dependency which is in meta-oe, and meta-oe can not depend on
meta-python

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa: qemurunner: Report UNIX Epoch timestamp on login
Joshua Watt [Fri, 9 Sep 2022 14:33:01 +0000 (09:33 -0500)] 
oeqa: qemurunner: Report UNIX Epoch timestamp on login

Updates the log message printed when login banner is seen in QEMU to
report the UNIX Epoch time in addition to the human readable time. This
makes it much easier and accurate to correlate logs with the guest, in
particular with the guest journalctl which prints log timestamps in
human readable format and the oeqa SSH debug logging which prints the
UNIX Epoch.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibgcrypt: disable bench-slope test case
Ross Burton [Fri, 9 Sep 2022 10:13:37 +0000 (11:13 +0100)] 
libgcrypt: disable bench-slope test case

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoexternalsrc: Don't wipe out src dir when EXPORT_FUNCTIONS is used.
Kristian Amlie [Thu, 8 Sep 2022 12:16:06 +0000 (14:16 +0200)] 
externalsrc: Don't wipe out src dir when EXPORT_FUNCTIONS is used.

When 73fa855f6af5ef9c3 was introduced, the "cleandirs" variable flag
started applying to functions exported using EXPORT_FUNCTIONS.
The externalsrc class is supposed to remove cleandirs in order to
prevent wiping out an external src folder (home directory?), but
doesn't take the previous point into account. The result is that
cleandirs is still in effect.

To fix this, apply the cleandirs manipulation to all variables, not
just predefined ones. This is expensive, but since it executes inside
an `if externalsrc` clause, and EXTERNALSRC is usually only set for
specific single recipes, it won't affect most recipes.

Richard Purdie <richard.purdie@linuxfoundation.org> is the original
author of this patch. I just submitted it under my name for blame
purposes, and also we have been testing it a lot in my company.

This is the original discussion:
https://lists.openembedded.org/g/openembedded-core/topic/91374926

Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorootfs.py: dont try to list installed packages for baremetal images
Alejandro Hernandez Samaniego [Fri, 9 Sep 2022 00:06:55 +0000 (18:06 -0600)] 
rootfs.py: dont try to list installed packages for baremetal images

Theres not a rootfs for baremetal images, hence we should avoid
trying to list rootfs packages for them.

This fixes an issue where some classes (e.g. license_image) rely on
rootfs functionality when included for baremetal images even if its
nonexistent

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowebkitgtk: Fix build on 32bit arm
Khem Raj [Thu, 8 Sep 2022 21:45:54 +0000 (14:45 -0700)] 
webkitgtk: Fix build on 32bit arm

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobinutils-cross-canadian: Do not package gprofng.rc
Khem Raj [Thu, 8 Sep 2022 18:48:36 +0000 (11:48 -0700)] 
binutils-cross-canadian: Do not package gprofng.rc

This file is already packaged via nativesdk-gprofng and can cause
populate SDK conflicts

Also delete the etc directory if its empty it can still cause packaging
QA errors

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoqemurunner: Update to match qmp changes
Richard Purdie [Fri, 9 Sep 2022 08:15:55 +0000 (09:15 +0100)] 
qemurunner: Update to match qmp changes

Upstream made changes to the qmp module. We need to use the legacy one
for now since that matches the interface we use, ultimately we likely
need to update our code.

Also fix the generic exception handler to show the actual exception
which helps debugging when something does break.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoqemu: Upgrade 7.0.0 -> 7.1.0
Richard Purdie [Thu, 8 Sep 2022 20:59:22 +0000 (21:59 +0100)] 
qemu: Upgrade 7.0.0 -> 7.1.0

Drop CVE backports and backported patch for pvrdma which was also applied upstream.
Refresh cross.patch.
Drop vnc-png option removed upstream.
Update ptest path manipulations for target.
qmp now has consists of multiple files so install them all as a python module.

The upgrade contains fixes for virtio block devices which we hope will
address vda device tracebacks on the autobuilder from qemu.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogobject-introspection: Do not hardcode objdump name
Khem Raj [Thu, 8 Sep 2022 21:09:20 +0000 (14:09 -0700)] 
gobject-introspection: Do not hardcode objdump name

Use OBJDUMP variable in the script, this helps in using the lddwrapper
with recipes which maybe using different objdump tools e.g.l
llvm-objdump or vice-versa

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoboost: Refrain bjam from poking into host includes
Khem Raj [Thu, 8 Sep 2022 18:42:59 +0000 (11:42 -0700)] 
boost: Refrain bjam from poking into host includes

bjam's logic to find icu during build time tries to poke at /usr/ for
various files and it succeeds for 32bit target build on my host and it adds
-I/usr/inclue to search paths because I do have icu installed on build
host in /usr/lib and /usr/include but does not succeed
for 64-bit target builds because its searching for same in /usr/lib64

on 32-bit log_dompile shows

    - icu                      : yes [5]
on 64 bit

    - icu                      : no [2]

On 64bit its getting lucky because the test is failing due to mismatches
in size of 'uintptr_t' since its reading half the headers from build
host and remaining from target C++ library.

In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/boost/1.80.0-r0/boost_1_80_0/libs/locale/build/has_icu_test.cpp:7:
In file included from /usr/include/unicode/locid.h:38:
In file included from /usr/include/unicode/bytestream.h:45:
In file included from /usr/include/unicode/std_string.h:37:
In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/boost/1.80.0-r0/recipe-sysroot/usr/include/c++/v1/string:549:
In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/boost/1.80.0-r0/recipe-sysroot/usr/include/c++/v1/memory:853:
In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/boost/1.80.0-r0/recipe-sysroot/usr/include/c++/v1/__memory/compressed_pair.h:16:
In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/boost/1.80.0-r0/recipe-sysroot/usr/include/c++/v1/tuple:226:
/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/boost/1.80.0-r0/recipe-sysroot/usr/include/c++/v1/typeinfo:247:14: error: cast from pointer to smaller type 'std::__type_info_implementations::__non_unique_arm_rtti_bit_impl::__type_name_t' (aka 'unsigned int') loses information
      return reinterpret_cast<__type_name_t>(__v);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Therefore, help bjam avoid peeking into build system includes entirely.
now if ICU is staged in sysroot it will look there for all headers.

Look into libs/locale/build/Jamfile.v2 after 'Xlocale' section if
you seek further information

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust: Use variable to specify extra tools to install
Khem Raj [Thu, 8 Sep 2022 18:42:42 +0000 (11:42 -0700)] 
rust: Use variable to specify extra tools to install

All architectures may not support same set of tools, therefore use a
variable to specify this. E.g. on riscv32 rustfmt is not buildable
right now.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/selftest/debuginfod: don't re-use the database
Ross Burton [Thu, 8 Sep 2022 11:54:15 +0000 (12:54 +0100)] 
oeqa/selftest/debuginfod: don't re-use the database

debuginfod writes the files it scans to a database in $HOME, which isn't
ideal when the build trees that get scanned typically are deleted after
the test has finished. This can result in debuginfod trying to return
objects that no longer exist on disk:

libc error: stat /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-1032306/tmp/deploy/rpm/core2_64/elfutils-dbg-0.187-r0.core2_64.rpm: No such file or directory
libc error: stat /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-1113320/tmp/deploy/rpm/core2_64/elfutils-dbg-0.187-r0.core2_64.rpm: No such file or directory
libc error: stat /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-1113320/tmp/deploy/rpm/core2_64/elfutils-dbg-0.187-r0.core2_64.rpm: No such file or directory

Solve this, and save writing a database on disk at all, by using the
special database path :memory: which keeps the database in memory only,
so state can't leak between tests.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogcc: remove obsolete MinGW patch
Ross Burton [Thu, 8 Sep 2022 10:45:31 +0000 (11:45 +0100)] 
gcc: remove obsolete MinGW patch

This patch appears to be obsoleted by 217d5be, in GCC 11.1 onwards.

    libstdc++: Test errno macros directly for all targets [PR 93151]

    This applies the same changes to the djgpp and mingw versions of
    error_constants.h as r11-6137 did for the generic version.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogcc: remove obsolete poisoned calloc workaround
Ross Burton [Thu, 8 Sep 2022 10:45:30 +0000 (11:45 +0100)] 
gcc: remove obsolete poisoned calloc workaround

This was fixed upstream in de6f402a, as part of 12.2.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe-setup-builddir: do not suggest local.conf as a source of examples
Alexander Kanavin [Wed, 7 Sep 2022 08:55:52 +0000 (10:55 +0200)] 
oe-setup-builddir: do not suggest local.conf as a source of examples

This holds true for the default core/poky template, but not
anything else. Eventually there will be fragments and associated
tooling.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/selftest: Add lower layer test for overlayfs-etc
Vyacheslav Yurkov [Wed, 7 Sep 2022 19:51:39 +0000 (21:51 +0200)] 
oeqa/selftest: Add lower layer test for overlayfs-etc

Place a test file on the /etc by means of overlayfs-user recipe.
Perform QA checks to make sure that:
- When lower layer is exposed, that it's read-only to avoid undefined behavior
- By default lower layer is not exposed

Signed-off-by: Vyacheslav Yurkov <v.yurkov@precitec.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses: files: Extend overlayfs-etc class
Vyacheslav Yurkov [Wed, 7 Sep 2022 19:51:38 +0000 (21:51 +0200)] 
classes: files: Extend overlayfs-etc class

Add the ability to expose the lower layer of /etc when mounting overlay.
This is the similar to what overlayroot script from initramfs-framework does.

By default, this option is turned off to keep an old behavior intact.

Signed-off-by: Vyacheslav Yurkov <v.yurkov@precitec.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agofiles: overlayfs-etc: refactor preinit template
Vyacheslav Yurkov [Wed, 7 Sep 2022 19:51:37 +0000 (21:51 +0200)] 
files: overlayfs-etc: refactor preinit template

Signed-off-by: Vyacheslav Yurkov <v.yurkov@precitec.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses: Update overlayfs classes to use new bitbake functionality
Vyacheslav Yurkov [Wed, 7 Sep 2022 19:51:36 +0000 (21:51 +0200)] 
classes: Update overlayfs classes to use new bitbake functionality

OverlayFS classes belong to a recipe scope

Signed-off-by: Vyacheslav Yurkov <v.yurkov@precitec.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/selftest: drop image_feature test from overlayfs
Vyacheslav Yurkov [Wed, 7 Sep 2022 19:51:35 +0000 (21:51 +0200)] 
oeqa/selftest: drop image_feature test from overlayfs

The test checked the incorrect class use with INHERIT. This
functionality is now covered by bitbake

Signed-off-by: Vyacheslav Yurkov <v.yurkov@precitec.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconnman: Drop redundant nfsroot handling
Tom Hochstein [Wed, 7 Sep 2022 18:38:33 +0000 (13:38 -0500)] 
connman: Drop redundant nfsroot handling

connman has nfsroot support built in since version 1.34 [1], so the
nfsroot handling in the init script is redundant.

[1] https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=ef0d26e6ef2b883193469f016117d8238c1c9658

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocmake: Fix CMAKE_SYSTEM_PROCESSOR setting for SDK
Tom Hochstein [Wed, 7 Sep 2022 22:38:51 +0000 (17:38 -0500)] 
cmake: Fix CMAKE_SYSTEM_PROCESSOR setting for SDK

When building using an SDK, cmake complains that the target
architecture 'cortexa53-crypto' is unknown. The same build in bitbake
uses the target architecture 'aarch64'.

Set CMAKE_SYSTEM_PROCESSOR the same as for bitbake.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe-setup-builddir: Always update templateconf.cfg
Peter Kjellerstedt [Tue, 6 Sep 2022 16:43:35 +0000 (18:43 +0200)] 
oe-setup-builddir: Always update templateconf.cfg

The intent of the templateconf.cfg file is to cache the value of
$TEMPLATECONF. To do this, it needs to be updated in case TEMPLATECONF
is manually specified.

Before, the following commands:

  TEMPLATECONF=foo . oe-init-build-env
  TEMPLATECONF=bar . oe-init-build-env
  . oe-init-build-env

would cause the templates in foo to be used for the last source of
oe-init-build-env, while afterwards, bar is used as expected.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe-setup-builddir: Keep templateconf.cfg relative if $TEMPLATECONF is
Peter Kjellerstedt [Tue, 6 Sep 2022 16:43:34 +0000 (18:43 +0200)] 
oe-setup-builddir: Keep templateconf.cfg relative if $TEMPLATECONF is

Before commit 7b96dc80 (scripts/oe-setup-builddir: write to
conf/templateconf.cfg after the build is set up), the path written to
templateconf.cfg was relative if $TEMPLATECONF was relative, but
afterwards it became absolute.

Restore the original behavior of saving the relative path to
templateconf.cfg.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe-setup-builddir: Avoid shellcheck warnings
Peter Kjellerstedt [Tue, 6 Sep 2022 14:58:53 +0000 (16:58 +0200)] 
oe-setup-builddir: Avoid shellcheck warnings

This avoid the following warnings:

* SC2086: Double quote to prevent globbing and word splitting.
* SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
* SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
* SC2236: Use -n instead of ! -z.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe-setup-builddir: Simplify error handling
Peter Kjellerstedt [Tue, 6 Sep 2022 14:58:52 +0000 (16:58 +0200)] 
oe-setup-builddir: Simplify error handling

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe-setup-builddir: Correct when validation of the templates dir is run
Peter Kjellerstedt [Tue, 6 Sep 2022 14:58:51 +0000 (16:58 +0200)] 
oe-setup-builddir: Correct when validation of the templates dir is run

The validation of the templates directory is supposed to be run as long
as $TEMPLATECONF is defined, but it was only done if the directory did
not exist.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocairo: Adapt the license information based on what is being built
Peter Kjellerstedt [Tue, 6 Sep 2022 13:33:54 +0000 (15:33 +0200)] 
cairo: Adapt the license information based on what is being built

If the "trace" PACKAGECONFIG is removed to disable cairo-trace (the
only part of the code licensed as GPL-3.0), we can adapt the licenses
for cairo-dbg and cairo-src so that they do not include
"GPL-3.0-or-later" and thus they can be used also when, e.g., GPL-3.0
is blacklisted in INCOMPATIBLE_LICENSE. Also drop the GPL-3.0 license
text from LIC_FILES_CHKSUM in this case.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibsdl2: update 2.0.22 -> 2.24.0
Markus Volk [Tue, 6 Sep 2022 10:59:29 +0000 (12:59 +0200)] 
libsdl2: update 2.0.22 -> 2.24.0

In addition to lots of bug fixes, here are the major changes in this release:

General:

New version numbering scheme, similar to GLib and Flatpak.
An even number in the minor version (second component) indicates a production-ready stable release such as 2.24.0, which would have been 2.0.24 under the old system.
The patchlevel (micro version, third component) indicates a bugfix-only update: for example, 2.24.1 would be a bugfix-only release to fix bugs in 2.24.0, without adding new features.
An odd number in the minor version indicates a prerelease such as 2.23.0. Stable distributions should not use these prereleases.
The patchlevel indicates successive prereleases, for example 2.23.1 and 2.23.2 would be prereleases during development of the SDL 2.24.0 stable release.
Added SDL_GetPointDisplayIndex() and SDL_GetRectDisplayIndex() to get the display associated with a point and rectangle in screen space
Added SDL_bsearch(), SDL_crc16(), and SDL_utf8strnlen() to the stdlib routines
Added SDL_CPUPauseInstruction() as a macro in SDL_atomic.h
Added SDL_size_mul_overflow() and SDL_size_add_overflow() for better size overflow protection
Added SDL_ResetHint() to reset a hint to the default value
Added SDL_ResetKeyboard() to reset SDL's internal keyboard state, generating key up events for all currently pressed keys
Added the hint SDL_HINT_MOUSE_RELATIVE_WARP_MOTION to control whether mouse warping generates motion events in relative mode. This hint defaults off.
Added the hint SDL_HINT_TRACKPAD_IS_TOUCH_ONLY to control whether trackpads are treated as touch devices or mice. By default touchpads are treated as mouse input.
The hint SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS now defaults on
Added support for mini-gamepad mode for Nintendo Joy-Con controllers using the HIDAPI driver
Added the hint SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS to control whether Joy-Con controllers are automatically merged into a unified gamepad when using the HIDAPI driver. This hint defaults on.
The hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED can be set to a floating point value to set the brightness of the Home LED on Nintendo Switch controllers
Added the hint SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED to set the Home LED brightness for the Nintendo Joy-Con controllers. By default the Home LED is not modified.
Added the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED to control whether the player LED should be lit on the Nintendo Joy-Con controllers
Added support for Nintendo Online classic controllers using the HIDAPI driver
Added the hint SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC to control whether the HIDAPI driver for Nintendo Online classic controllers should be used
Added support for the NVIDIA Shield Controller to the HIDAPI driver, supporting rumble and battery status
Added support for NVIDIA SHIELD controller to the HIDAPI driver, and a hint SDL_HINT_JOYSTICK_HIDAPI_SHIELD to control whether this is used
Added functions to get the platform dependent name for a joystick or game controller:
SDL_JoystickPathForIndex()
SDL_JoystickPath()
SDL_GameControllerPathForIndex()
SDL_GameControllerPath()
Added SDL_GameControllerGetFirmwareVersion() and SDL_JoystickGetFirmwareVersion(), currently implemented for DualSense(tm) Wireless Controllers using HIDAPI
Added SDL_JoystickAttachVirtualEx() for extended virtual controller support
Added joystick event SDL_JOYBATTERYUPDATED for when battery status changes
Added SDL_GUIDToString() and SDL_GUIDFromString() to convert between SDL GUID and string
Added SDL_HasLSX() and SDL_HasLASX() to detect LoongArch SIMD support
Added SDL_GetOriginalMemoryFunctions()
Added SDL_GetDefaultAudioInfo() to get the name and format of the default audio device, currently implemented for PipeWire, PulseAudio, WASAPI, and DirectSound
Added HIDAPI driver for the NVIDIA SHIELD controller (2017 model) to enable support for battery status and rumble
Added support for opening audio devices with 3 or 5 channels (2.1, 4.1). All channel counts from Mono to 7.1 are now supported.
Rewrote audio channel converters used by SDL_AudioCVT, based on the channel matrix coefficients used as the default for FAudio voices
SDL log messages are no longer limited to 4K and can be any length
Fixed a long-standing calling convention issue with dynapi affecting OpenWatcom or OS/2 builds
Windows:

Added initial support for building for Windows and Xbox with Microsoft's Game Development Kit (GDK), see docs/README-gdk.md for details
Added a D3D12 renderer implementation and SDL_RenderGetD3D12Device() to retrieve the D3D12 device associated with it
Added the hint SDL_HINT_WINDOWS_DPI_AWARENESS to set whether the application is DPI-aware. This hint must be set before initializing the video subsystem
Added the hint SDL_HINT_WINDOWS_DPI_SCALING to control whether the SDL coordinates are in DPI-scaled points or pixels
Added the hint SDL_HINT_DIRECTINPUT_ENABLED to control whether the DirectInput driver should be used
Added support for SDL_GetAudioDeviceSpec to the DirectSound backend
Linux:

Support for XVidMode has been removed, mode changes are only supported using the XRandR extension
Added the hint SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION to control whether to expose a set of emulated modes in addition to the native resolution modes available on Wayland
Added the hint SDL_HINT_KMSDRM_DEVICE_INDEX to specify which KMSDRM device to use if the default is not desired
Added the hint SDL_HINT_LINUX_DIGITAL_HATS to control whether to treat hats as digital rather than checking to see if they may be analog
Added the hint SDL_HINT_LINUX_HAT_DEADZONES to control whether to use deadzones on analog hats
macOS:

Bumped minimum OS deployment version to macOS 10.9
Added SDL_GL_FLOATBUFFERS to allow Cocoa GL contexts to use EDR
Added the hint SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH to control whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing. This hint defaults to blocking, which is the safer option on modern macOS.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovala: upgrade 0.56.2 -> 0.56.3
wangmy [Mon, 5 Sep 2022 09:06:22 +0000 (17:06 +0800)] 
vala: upgrade 0.56.2 -> 0.56.3

Changelog:
==========
 * Various improvements and bug fixes:
  - vala: Don't unconditionally expect ObjectType of Class [#1341]
  - vala: Make try-statement parsing more resilient [#1304]
  - vala: Avoid problems with '\' in #line directives on Windows [#1353]
  - gidlparser: Set source reference of parameters

 * Bindings:
  - atspi-2: Fix a few binding errors
  - glib-2.0: Use g_abort for GLib.Process.abort() beginning with 2.50 [#1350]
  - gtk+-3.0: Correctly unhide BindingSet.by_class to avoid Version attribute

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pytest: upgrade 7.1.2 -> 7.1.3
wangmy [Mon, 5 Sep 2022 09:06:21 +0000 (17:06 +0800)] 
python3-pytest: upgrade 7.1.2 -> 7.1.3

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pathspec: upgrade 0.9.0 -> 0.10.1
wangmy [Mon, 5 Sep 2022 09:06:20 +0000 (17:06 +0800)] 
python3-pathspec: upgrade 0.9.0 -> 0.10.1

Changelog:
==========
Bug fixes:
------------
Fix documentation on pathspec.pattern.RegexPattern.match_file().
Issue #60: Remove redundant wheel dep from pyproject.toml.
Issue #61: Dist failure for Fedora, CentOS, EPEL.
Issue #62: Since version 0.10.0 pure wildcard does not work in some cases.

Improvements:
-------------
Restore support for legacy installations using setup.py. See Issue #61.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-mako: upgrade 1.2.1 -> 1.2.2
wangmy [Mon, 5 Sep 2022 09:06:19 +0000 (17:06 +0800)] 
python3-mako: upgrade 1.2.1 -> 1.2.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-dtschema: upgrade 2022.8.1 -> 2022.8.3
wangmy [Mon, 5 Sep 2022 09:03:21 +0000 (17:03 +0800)] 
python3-dtschema: upgrade 2022.8.1 -> 2022.8.3

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopiglit: upgrade to latest revision
wangmy [Mon, 5 Sep 2022 09:03:20 +0000 (17:03 +0800)] 
piglit: upgrade to latest revision

0004-CMakeLists.txt-add-missing-endian.h-check.patch
removed sinct it's included in new version.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokmscube: upgrade to latest revision
wangmy [Mon, 5 Sep 2022 09:03:18 +0000 (17:03 +0800)] 
kmscube: upgrade to latest revision

0001-drm-common.c-do-not-use-invalid-modifier.patch
0001-texturator-Use-correct-GL-extension-header.patch
removed since they're included in new version.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocracklib: upgrade 2.9.7 -> 2.9.8
wangmy [Mon, 5 Sep 2022 09:03:17 +0000 (17:03 +0800)] 
cracklib: upgrade 2.9.7 -> 2.9.8

0001-rules-Drop-using-register-keyword.patch
0002-rules-Correct-parameter-types-to-Debug-calls.patch
removed since they're included in 2.9.8

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorootfs-postcommands.bbclass: avoid moving ssh host keys if etc is writable
Peter Bergin [Mon, 5 Sep 2022 18:40:40 +0000 (20:40 +0200)] 
rootfs-postcommands.bbclass: avoid moving ssh host keys if etc is writable

When using IMAGE_FEATURE read-only-rootfs ssh host keys are moved to volatile
storage. If the feature overlayfs-etc is used in addition to read-only-rootfs
/etc is writable and the move is not wanted. But in the case also the IMAGE_FEATURE
stateless-rootfs is used the keys will be moved as storage of keys should not
be wanted in a stateless-rootfs.

This change only takes effect in the case IMAGE_FEATURE contains read-only-rootfs.
In adddition the following cases are handled:

  IMAGE_FEATURES = "read-only-rootfs" --> ssh keys/config handled as ro root
  IMAGE_FEATURES = "read-only-rootfs overlayfs-etc" --> ssh keys/config handled as rw root
  IMAGE_FEATURES = "read-only-rootfs stateless-rootfs" --> ssh keys/config handled as ro root
  IMAGE_FEATURES = "read-only-rootfs overlayfs-etc stateless-rootfs" --> ssh keys/config handled as ro root

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocore-image.bbclass: Exclude openssh complementary packages
Pavel Zhukov [Mon, 5 Sep 2022 16:24:48 +0000 (18:24 +0200)] 
core-image.bbclass: Exclude openssh complementary packages

Openssh (main) package may be marked for installation via complementary
packages mechanism if sftp-server is installed
and this causes conflict with dropbear [Yocto #14858] [1].
Excluding openssh complementary packages if packagegroup-core-ssh-dropbear
is in PACKAGE_INSTALL fixes this issue.
To install openssh complementary packages in the images with
ssh-server-dropbear they may be added manually into the list because
they will be excluded from the installation even if corresonding class
(dev-pkg or dbg-pkgs) inherited.

[1]
Error:
 Problem: problem with installed package dropbear-2020.81-r0.core2_64
  - package dropbear-2020.81-r0.core2_64 conflicts with openssh provided by openssh-8.9p1-r0.core2_64
  - package openssh-8.9p1-r0.core2_64 conflicts with dropbear provided by dropbear-2020.81-r0.core2_64
  - package openssh-ptest-8.9p1-r0.core2_64 requires openssh, but none of the providers can be installed
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: Fix unwritable /var/lock when no sysvinit handling
niko.mauno@vaisala.com [Mon, 5 Sep 2022 12:26:11 +0000 (12:26 +0000)] 
systemd: Fix unwritable /var/lock when no sysvinit handling

Commit 8089cefed8e83c0348037768c292058f1bcbbbe5 ("systemd: Add
PACKAGECONFIG for sysvinit") decoupled enabling of systemd's sysvinit
handling behavior behind a distinct PACKAGECONFIG feature.

This new option affects among other things the installing of
tmpfiles.d/legacy.conf, which is responsible for creating /run/lock
directory, which is pointed to by /var/lock symlink provided by
base-files package.

In case the option is not enabled, then base-files provided /var/lock
is a dangling symlink on resulting rootfs, causing problems with
certain Linux userspace components that rely on existence of writable
/var/lock directory. As an example:

  # fw_printenv
  Error opening lock file /var/lock/fw_printenv.lock

Since Filesystem Hierarchy Standard Version 3.0 states in
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s09.html that

  Lock files should be stored within the /var/lock directory structure.

Ensure the /run/lock directory is always created, so that lock files
can be stored under /var/lock also when 'sysvinit' handling is
disabled.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobinutils : CVE-2022-38533
pgowda [Mon, 5 Sep 2022 15:20:28 +0000 (20:50 +0530)] 
binutils : CVE-2022-38533

Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ef186fe54aa6d281a3ff8a9528417e5cc614c797]

Signed-off-by: pgowda <pgowda.cve@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest/cases/bblayers.py: build python3-jsonschema only once
Alexander Kanavin [Mon, 5 Sep 2022 18:21:41 +0000 (20:21 +0200)] 
selftest/cases/bblayers.py: build python3-jsonschema only once

setUpLocal runs before every testcase, setUpClass runs only once in
the beginning.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotiff: backport fix for CVE-2022-2953
Ross Burton [Mon, 5 Sep 2022 11:28:13 +0000 (12:28 +0100)] 
tiff: backport fix for CVE-2022-2953

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoxmlto: remove redundant patches
Ross Burton [Mon, 5 Sep 2022 10:19:53 +0000 (11:19 +0100)] 
xmlto: remove redundant patches

0001-Skip-validating-xmlto-output isn't needed as xmllint will use the
local catalogues correctly now[1].

configure.in-drop-the-test-of-xmllint-and-xsltproc can be dropped if we
pre-load the result of AC_PATH_PROG with ac_cv_path_XMLLINT.

[1] oe-core 8159b47e7ddddaca57ade2ecf24d8ff9a0abf26a

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosstate: Fix sstate file mirroring checksum issue
Richard Purdie [Wed, 7 Sep 2022 11:02:22 +0000 (12:02 +0100)] 
sstate: Fix sstate file mirroring checksum issue

After a recent fix in bitbake, the checksums may be checked for local file
fetches at an earlier code point. The underlying recipe checksums won't
match sstate values so ensure these aren't set via SRC_URI flags when
reconfiguring the fetch for sstate.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoicecc.bbclass: delete 'rm' command
Ulrich Ölmann [Wed, 7 Sep 2022 10:57:51 +0000 (12:57 +0200)] 
icecc.bbclass: delete 'rm' command

The removed command was explicitly marked as transitional in commit [1] roughly
three years ago, so finally clean up.

[1] 40d74cb1d0dd ("icecc: Export ICECC_CC and friends via wrapper-script")

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoicecc.bbclass: fix typos
Ulrich Ölmann [Wed, 7 Sep 2022 10:57:50 +0000 (12:57 +0200)] 
icecc.bbclass: fix typos

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: Add 'no-dns-fallback' PACKAGECONFIG option
niko.mauno@vaisala.com [Wed, 7 Sep 2022 09:23:33 +0000 (09:23 +0000)] 
systemd: Add 'no-dns-fallback' PACKAGECONFIG option

systemd defines a default set of fallback DNS servers in
https://github.com/systemd/systemd/blob/v251/meson_options.txt#L328-L330

By adding a PACKAGECONFIG knob providing a convenient way to opt out,
and then adding that value to systemd's PACKAGECONFIG, the output from
runtime 'resolvectl status' command no longer contains the following
line:

  Fallback DNS Servers: 1.1.1.1#cloudflare-dns.com 8.8.8.8#dns.google 1.0.0.1#cloudflare-dns.com 8.8.4.4#dns.google 2606:4700:4700::1111#cloudflare-dns.com 2001:4860:4860::8888#dns.google 2606:4700:4700::1001#cloudflare-dns.com 2001:4860:4860::8844#dns.google

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogcc: remove obsolete 0012-export-CPP.patch
Ross Burton [Wed, 7 Sep 2022 13:02:07 +0000 (14:02 +0100)] 
gcc: remove obsolete 0012-export-CPP.patch

This patch is no longer needed, the upstream Makefile exports CPP from
CPP_FOR_BUILD since 12.1.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogcc-cross: pass -Werror=poison-system-directories to compiler stages
Ross Burton [Wed, 7 Sep 2022 13:02:06 +0000 (14:02 +0100)] 
gcc-cross: pass -Werror=poison-system-directories to compiler stages

The -Werror=poison-system-directories argument was being passed to runs
where _just_ CPP was being invoked, so it wasn't passed to runs which
also compile.  Add the options to cc1_options so that compile runs also
have fatal poisoning errors.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agometa-selftest/poison: improve sysroot poisoning test case
Ross Burton [Wed, 7 Sep 2022 13:02:05 +0000 (14:02 +0100)] 
meta-selftest/poison: improve sysroot poisoning test case

It was discovered by Martin Jansa that the sysroot poisoning errors are
not functioning as they should. Due to either a bug from day 1 or a
bad rebase, -Werror=poison-system-directories is only passed when GCC
is invoking _just_ the preprocessor, not the compiler.

Demonstrate this by expanding the test case to exercise not just $CPP,
but also $CC for both C and C++ languages. This improved test case now
fails.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibxml2: Port gentest.py to Python-3
Martin Jansa [Wed, 7 Sep 2022 12:30:52 +0000 (14:30 +0200)] 
libxml2: Port gentest.py to Python-3

* but it still won't work well on hosts without libxml2, make
  sure to use pre-generated testapi.c in do_compile_ptest

* this is reproducible with SOURCE_DATE_EPOCH set to 0 which
  e.g. meta-updater still sets by default for DISTROs which
  use it :(, see https://github.com/uptane/meta-updater/pull/35

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowebkitgtk: fix gstreamer include paths
Martin Jansa [Wed, 7 Sep 2022 12:30:51 +0000 (14:30 +0200)] 
webkitgtk: fix gstreamer include paths

* fixes:
  http://errors.yoctoproject.org/Errors/Details/671441/

  cc1plus: error: include location "/usr/include/gstreamer-1.0" is unsafe for cross-compilation [-Werror=poison-system-directories]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 7 Sep 2022 09:32:11 +0000 (10:32 +0100)] 
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-cross-canadian: Fix for the issue caused by using sdk shell
Sundeep KOKKONDA [Wed, 7 Sep 2022 02:18:17 +0000 (07:48 +0530)] 
rust-cross-canadian: Fix for the issue caused by using sdk shell

This is a fix for the fix in YOCTO #14878. When the shebang is more than
128 characters the default shell /bin/sh is used instead of SDK shell as
a fallback, which causes problems with LD_LIBRARY_PATH. With this patch
shell usage is avoided as we use a C wrapper and unset LD_LIBRARY_PATH
that way.

[YOCTO #14892]

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>