]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
6 months agobusybox: Correct SPDX license reference
Bastian Germann [Fri, 24 Jan 2025 20:07:23 +0000 (21:07 +0100)] 
busybox: Correct SPDX license reference

Commit 6238ee3ecd (recipes-core/busybox: fixup licensing information)
claims that there is no applicable license identifier in SPDX, so a
bzip2-1.0.4 is made up.

There is no bzip2-1.0.4 license defined in SPDX. However, bzip2-1.0.6 is
the same license.

License-Update: wrong SPDX identifier

Signed-off-by: Bastian Germann <bage@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agobase-files: Drop /bin/sh dependency
Marek Vasut [Fri, 24 Jan 2025 23:21:47 +0000 (00:21 +0100)] 
base-files: Drop /bin/sh dependency

Remove /bin/sh from bash RPROVIDES as this has a side-effect which
confuses rpm package manager when also busybox provides /bin/sh and
base-files depend on /bin/sh . The problem is broken down below.

First, bash depends on base-files and bash pkg_postinst must run
after base-files was installed, because it requires /etc/shells
provided by base-files to be in place.

Second, base-files depends on /bin/sh, which is provided by either
bash or busybox in this case. This is the actual problem here, if
bash is selected as /bin/sh provider, then there is cyclic dependency
between bash and base-files, and that confuses dnf which may install
the packages in the wrong order, bash first and base-files second .

To make this worse, if busybox is also /bin/sh provider, it can and
does happen that some systems pick busybox as the /bin/sh provider,
while others pick bash as the /bin/sh provider, and that cyclic
dependency does not always appear.

Attempt to break this dependency, remove pre-inst script from the
base-files recipe, which removes its dependency on /bin/sh and
allows it to be installed very early, and always before bash.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoutil-linux: Document more specific BSD-4-Clause-UC
Bastian Germann [Fri, 24 Jan 2025 16:17:51 +0000 (17:17 +0100)] 
util-linux: Document more specific BSD-4-Clause-UC

LIC_FILES_CHKSUM in the util-linux recipe already contains the more
specific license reference BSD-4-Clause-UC that takes a copyright
addendum by University of California into account.

License-Update: reference can be more specific

Signed-off-by: Bastian Germann <bage@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoman-pages: Document more specific BSD-4-Clause-UC
Bastian Germann [Fri, 24 Jan 2025 16:17:50 +0000 (17:17 +0100)] 
man-pages: Document more specific BSD-4-Clause-UC

LIC_FILES_CHKSUM in the man-pages recipe already contains the more
specific license reference BSD-4-Clause-UC that takes a copyright
addendum by University of California into account.

License-Update: reference can be more specific

Signed-off-by: Bastian Germann <bage@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolibxfont2: Document more specific BSD-4-Clause-UC
Bastian Germann [Fri, 24 Jan 2025 16:17:49 +0000 (17:17 +0100)] 
libxfont2: Document more specific BSD-4-Clause-UC

COPYING in libxfont2 upstream contains only one BSD-4-Clause text variant,
which is explicitly covered by the copyright addendum by University of
California. Change the SPDX license reference to BSD-4-Clause-UC.

License-Update: reference can be more specific

Signed-off-by: Bastian Germann <bage@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolibbsd: Drop licenses that were removed upstream
Bastian Germann [Fri, 24 Jan 2025 16:17:48 +0000 (17:17 +0100)] 
libbsd: Drop licenses that were removed upstream

The libbsd project has gotten rid of BSD-4-Clause licensed material.
Version 0.11.8 is the first not to contain any such material anymore.

License-Update: removed upstream

Signed-off-by: Bastian Germann <bage@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agofont-util: Correct SPDX expression
Bastian Germann [Fri, 24 Jan 2025 16:17:47 +0000 (17:17 +0100)] 
font-util: Correct SPDX expression

The BSD-4-Clause license is not contained in version 1.4.1.
But MIT and X11 are listed in the COPYING file.

License-Update: upstream has changed

Signed-off-by: Bastian Germann <bage@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agogdb: Upgrade 15.2 -> 16.1
Yash Shinde [Thu, 23 Jan 2025 10:31:00 +0000 (02:31 -0800)] 
gdb: Upgrade 15.2 -> 16.1

* Drop 0001-Fix-Wenum-constexpr-conversion-in-enum-flags.h.patch, its already applied to gdb 16.1

Detailed release notes:

https://sourceware.org/pipermail/gdb-announce/2025/000143.html
https://sourceware.org/gdb/news/
https://lwn.net/Articles/1005562/
https://www.sourceware.org/gdb/download/ANNOUNCEMENT

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agogo: upgrade 1.22.10 -> 1.22.11
Peter Marko [Thu, 23 Jan 2025 18:44:40 +0000 (19:44 +0100)] 
go: upgrade 1.22.10 -> 1.22.11

Upgrade to latest 1.22.x release [1]:

$ git --no-pager log --oneline go1.22.10..go1.22.11
f072884354 (tag: go1.22.11) [release-branch.go1.22] go1.22.11
b72d56f98d [release-branch.go1.22] net/http: persist header stripping across repeated redirects
19d2103415 [release-branch.go1.22] crypto/x509: properly check for IPv6 hosts in URIs
ae9996f965 [release-branch.go1.22] runtime: hold traceAcquire across casgstatus in injectglist
223260bc63 [release-branch.go1.22] crypto/tls: fix Config.Time in tests using expired certificates

Fixes CVE-2024-45336 and CVE-2024-45341

[1] https://github.com/golang/go/compare/go1.22.10...go1.22.11

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agogo: upgrade 1.22.9 -> 1.22.10
Peter Marko [Thu, 23 Jan 2025 18:44:39 +0000 (19:44 +0100)] 
go: upgrade 1.22.9 -> 1.22.10

Upgrade to latest 1.22.x release [1]:

$ git --no-pager log --oneline go1.22.9..go1.22.10
8f3f22eef8 (tag: go1.22.10) [release-branch.go1.22] go1.22.10
6d7a95abca [release-branch.go1.22] runtime: reserve 4kB for system stack on windows-386
6f05fa7a4f [release-branch.go1.22] syscall: mark SyscallN as noescape
3355db9690 [release-branch.go1.22] time: accept "+01" in TestLoadFixed on OpenBSD

[1] https://github.com/golang/go/compare/go1.22.9...go1.22.10

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agogo: upgrade 1.22.8 -> 1.22.9
Peter Marko [Thu, 23 Jan 2025 18:44:38 +0000 (19:44 +0100)] 
go: upgrade 1.22.8 -> 1.22.9

Upgrade to latest 1.22.x release [1]:

$ git --no-pager log --oneline go1.22.8..go1.22.9
8af39d30a4 (tag: go1.22.9) [release-branch.go1.22] go1.22.9
c19e5887f4 [release-branch.go1.22] cmd/cgo/internal/testcarchive: remove 1-minute timeout
e3fd4ba7f9 [release-branch.go1.22] cmd/link: generate Mach-O UUID when -B flag is specified
29252e4c5a [release-branch.go1.22] runtime: fix TestGdbAutotmpTypes on gdb version 15

[1] https://github.com/golang/go/compare/go1.22.8...go1.22.9

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoclasses: go-vendor: Change symlink creation.
Alexander Yurkov [Thu, 23 Jan 2025 18:47:40 +0000 (18:47 +0000)] 
classes: go-vendor: Change symlink creation.

Create missing directories required to create the symlink.

Use relative symlinks to stay in the build directory scope (to avoid sstate issue with absolute paths).

Signed-off-by: Alexander Yurkov <alexander.v.yurkov@gmail.com>
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agooeqa/selftest/recipetool: Update create_go test.
Alexander Yurkov [Thu, 23 Jan 2025 18:47:39 +0000 (18:47 +0000)] 
oeqa/selftest/recipetool: Update create_go test.

Adjust test_recipetool_go_create test to a smaller repository.
Combine test_recipetool_go_create and test_recipetool_go_replace_modules
tests into test_recipetool_go_create, the new test performs both tests.

Signed-off-by: Alexander Yurkov <alexander.v.yurkov@gmail.com>
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agollvm: set LLVM_HOST_TRIPLE for cross-compilation
Haseeb Ashraf [Sat, 25 Jan 2025 05:41:18 +0000 (10:41 +0500)] 
llvm: set LLVM_HOST_TRIPLE for cross-compilation

The correct way to configure cmake for cross-compilation includes
setting the LLVM_HOST_TRIPLE as well.

Documentation Ref:
https://github.com/llvm/llvm-project/blob/llvmorg-19.1.6/llvm/docs/HowToCrossCompileLLVM.rst#configuring-cmake

This fixes bug when LLVM is cross-compiled for AAarch64 but it
was getting built with the triple of native build system instead of
the TARGET_SYS (aarch64-oe-linux) in my case.

`No available targets are compatible with triple "x86_64-unknown-linux-gnu"`

Signed-off-by: Haseeb Ashraf <haseeb.ashraf@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agobitbake.conf: Handle empty BB_CURRENT_MC
Richard Purdie [Fri, 24 Jan 2025 16:13:06 +0000 (16:13 +0000)] 
bitbake.conf: Handle empty BB_CURRENT_MC

Bitbake is about to change the default value of this from "default" to "". The
original reason for this was to make this kind of include file usage easier.
Instead we were going to complicate bitbake code having to map one value into
the other.

Instead, stop using "default" and put a slightly horrible bit of code in bitbake.conf
as an alternative.

This means a "default.conf" in the multiconfig directory will stop working but this
was never something anyone was expected to use.

The eSDK code also needs updating for this change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agooeqa/sshcontrol: Handle empty reads
Richard Purdie [Fri, 24 Jan 2025 15:26:25 +0000 (15:26 +0000)] 
oeqa/sshcontrol: Handle empty reads

Looking at some of the autobuilder failures, it seems that somehow empty
reads might be possible despite not being EOF. Tweak the code to be a little
more robust in handling this.

In theory this shouldn't be possible but python does handle signals a bit
differently (e.g. transparrently retrying syscalls for EINTR) so adding this
check and a bit of code safety at least rules out this problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agobuild-appliance-image: Update to master head revision
Ross Burton [Thu, 23 Jan 2025 12:17:38 +0000 (12:17 +0000)] 
build-appliance-image: Update to master head revision

Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agorust-common: add LDFLAGS to 'build-rust-cc' wrapper
Enrico Scholz [Mon, 20 Jan 2025 16:45:04 +0000 (17:45 +0100)] 
rust-common: add LDFLAGS to 'build-rust-cc' wrapper

Although rust differs between compiling (--> 'rust-cc' wrapper) and
linking (--> 'rust-ccld' wrapper), some core crates are using only the
'rust-cc' wrapper to check for available compiler options [1] and
libraries [2].

Not having LDFLAGS can break the build in subtle ways.  E.g. 'cargo-native'
can fail to build with

|   = note: .../hosttools/ld: .../liblibz_sys-....rlib(deflate.o):
|     relocation R_X86_64_32S against hidden symbol `_length_code' can not be used when making a PIE object

because it does not find '-lz' (added by "DEPENDS = zlib") and builds
a static libz.a with missing PIC flags.

Add LDFLAGS to the 'build-rust-cc' wrapper as it is done already for
the target one.

[1] https://github.com/rust-lang/cc-rs/pull/1322

[2] https://github.com/rust-lang/libz-sys/blob/12a32798c6bd18986cb5cd603359b03c96f0eb4c/build.rs#L228-L234

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agocmake: upgrade 3.31.3 -> 3.31.4
Trevor Gamblin [Mon, 20 Jan 2025 21:03:07 +0000 (16:03 -0500)] 
cmake: upgrade 3.31.3 -> 3.31.4

Release notes: https://cmake.org/cmake/help/latest/release/3.31.html#id17

commit log:

|tgamblin@megalith ~/workspace/git/cmake (master)$ git log --oneline v3.31.3..v3.31.4
|569b821a13 (tag: v3.31.4) CMake 3.31.4
|92b260387d Merge topic 'duplicate-source-behavior' into release-3.31
|3df8890638 Merge topic 'lfortran-generate-object-code' into release-3.31
|8f45140baf Merge topic 'revert-genex-tco-subgraph' into release-3.31
|3e15419bd4 target_sources: Restore toleration of duplicate CXX_MODULES sources
|5cfb8ae790 Tests/CXXModules: add a test with duplicate sources
|daf6cc89ee LFortran: Remove hard-coded --generate-object-code flag
|a6b84a438f GenEx: Revert "Limit TARGET_PROPERTY transitive closure optimization"
|627d710570 Merge topic 'FindBoost-1.87' into release-3.31
|d29855f985 Merge topic 'codegen-help' into release-3.31
|f485f94d1a FindBoost: Add support for Boost 1.87
|45726d93a8 Makefile: List codegen target in help
|e7153c29ac Merge topic 'Help-FindPython-Fix-typo' into release-3.31
|e7ea2998fb Help: FindPython: fix typo

Reproducibility OK:

|2025-01-20 13:52:30,296 - oe-selftest - INFO - Ran 1 test in 1949.827s
|2025-01-20 13:52:30,296 - oe-selftest - INFO - OK
|2025-01-20 13:52:34,885 - oe-selftest - INFO - RESULTS:
|2025-01-20 13:52:34,886 - oe-selftest - INFO - RESULTS - reproducible.ReproducibleTests.test_reproducible_builds: PASSED (1874.21s)
|2025-01-20 13:52:34,886 - oe-selftest - INFO - SUMMARY:
|2025-01-20 13:52:34,886 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 1949.827s
|2025-01-20 13:52:34,886 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agosystemd: Remove /var/log/README using a patch
Peter Kjellerstedt [Tue, 21 Jan 2025 05:18:12 +0000 (06:18 +0100)] 
systemd: Remove /var/log/README using a patch

Commit f82d9c997ba (systemd: enable create-log-dirs) removed the
creation of the /var/log/README symbolic link by using sed. However, the
update to 257 changed the target line and the sed expression no longer
matches. Rather than correcting the sed expression, use a patch to
remove /var/log/README so that any future changes do not go unnoticed.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agolinux-firmware: split amdgpu firmwares in separate packages
Marc Ferland [Mon, 20 Jan 2025 15:46:05 +0000 (10:46 -0500)] 
linux-firmware: split amdgpu firmwares in separate packages

This patch introduces the following packages for AMD gpu chips:

- linux-firmware-amdgpu-aldebaran
- linux-firmware-amdgpu-carrizo
- linux-firmware-amdgpu-cezanne
- linux-firmware-amdgpu-fiji
- linux-firmware-amdgpu-hawaii
- linux-firmware-amdgpu-navi10
- linux-firmware-amdgpu-navi14
- linux-firmware-amdgpu-navi21
- linux-firmware-amdgpu-navi22
- linux-firmware-amdgpu-navi23
- linux-firmware-amdgpu-navi24
- linux-firmware-amdgpu-navi31
- linux-firmware-amdgpu-navi32
- linux-firmware-amdgpu-oland
- linux-firmware-amdgpu-polaris10
- linux-firmware-amdgpu-polaris11
- linux-firmware-amdgpu-polaris12
- linux-firmware-amdgpu-raven
- linux-firmware-amdgpu-rembrandt
- linux-firmware-amdgpu-renoir
- linux-firmware-amdgpu-stoney
- linux-firmware-amdgpu-tonga
- linux-firmware-amdgpu-topaz
- linux-firmware-amdgpu-vega10
- linux-firmware-amdgpu-vega12
- linux-firmware-amdgpu-misc: catches all firmwares that are not
  already included in the other -amdgpu- packages.

This list was partly inspired from:

https://wiki.gentoo.org/wiki/AMDGPU#Known_firmware_blobs

Many other firmware packages could be created out of what is in
-misc. Looking at the different commits in the linux-firmware
repository gives a very good idea of which firmware goes with each
chip.

Note: Altough this patch might break some installations that assumed
that _all_ firmwares where installed by the linux-firmware-amdgpu
package, I think it is a step in the right direction as the number of
firmwares under amdgpu is constantly increasing (currently ~103MB).

Tested with a renoir gpu.

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agolinux-firmware: split ath11k firmwares in separate packages
Marc Ferland [Mon, 20 Jan 2025 15:46:04 +0000 (10:46 -0500)] 
linux-firmware: split ath11k firmwares in separate packages

This patch introduces the following packages for ath11k based chips:

- linux-firmware-ath11k-ipq5018
- linux-firmware-ath11k-ipq6018
- linux-firmware-ath11k-ipq8074
- linux-firmware-ath11k-qca2066
- linux-firmware-ath11k-qca6390
- linux-firmware-ath11k-qcn9074
- linux-firmware-ath11k-wcn6750
- linux-firmware-ath11k-wcn6855
- linux-firmware-ath11k-misc: catches all firmwares that are not
  already included in the other -ath11k- packages (currently empty).

linux-firmware-ath11k is now a meta package that depends on all of the
split-out ath11k packages.

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agolinux-firmware: split ath10k firmwares in separate packages
Marc Ferland [Mon, 20 Jan 2025 15:46:03 +0000 (10:46 -0500)] 
linux-firmware: split ath10k firmwares in separate packages

This patch introduces the following packages for ath10k based chips:

- linux-firmware-ath10k-qca4019
- linux-firmware-ath10k-qca6174
- linux-firmware-ath10k-qca9377
- linux-firmware-ath10k-qca9887
- linux-firmware-ath10k-qca9888
- linux-firmware-ath10k-qca988x
- linux-firmware-ath10k-qca9984
- linux-firmware-ath10k-qca99x0
- linux-firmware-ath10k-misc: catches all firmwares that are not
  already included in the other -ath10k- packages (currently empty).

linux-firmware-ath10k is now a meta package that depends on all of the
split-out ath10k packages.

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agocreate-spdx: support line numbers
Denis OSTERLAND-HEIM [Mon, 20 Jan 2025 13:04:58 +0000 (13:04 +0000)] 
create-spdx: support line numbers

LIC_FILES_CHKSUM supports begin-/endline for licenses included in
for instance header files. This patch adds support for line numbers
to NO_GENERIC_LICENSE, too.

Signed-off-by: Denis Osterland-Heim <denis.osterland@diehl.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agoofono: patch CVE-2024-7540, CVE-2024-7541, CVE-2024-7542
Peter Marko [Sun, 19 Jan 2025 16:34:38 +0000 (17:34 +0100)] 
ofono: patch CVE-2024-7540, CVE-2024-7541, CVE-2024-7542

Cherry-pick commit
https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=29ff6334b492504ace101be748b256e6953d2c2f

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agofiles: overlayfs-create-dirs: Improve mount unit dependency
Esben Haabendal [Sat, 18 Jan 2025 18:49:55 +0000 (19:49 +0100)] 
files: overlayfs-create-dirs: Improve mount unit dependency

The RequiresMountsFor configuration option of systemd.unit (added in
systemd version 201) not only adds the Requires and After options for
the required mount unit, but it adds them for all mount units required
to access the specified path.

So this change is both a simplification, and an improvement.

Not only will all needed mount units be added to Requires and After, but
the overlay path does not have to be a mountpoint, but can be at any
directory level beneath a mountpoint.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agoman-db: fix broken requirement for flex
Ross Burton [Wed, 22 Jan 2025 15:28:17 +0000 (15:28 +0000)] 
man-db: fix broken requirement for flex

Normally flex-native in the sysroot via the toolchain, but different
toolchains may not depend on flex-native (eg, external-arm-toolchain).

This results in a configure error:

  checking for flex... no
  configure: error: flex is required when building from revision control

Now we're not building from revision control, but the configure script
is broken with out-of-tree builds and checks the (empty) build tree for
pre-generated sources.  Apply a fix to look in the source tree instead.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agopython3-numpy: upgrade 2.2.1 -> 2.2.2
Trevor Gamblin [Wed, 22 Jan 2025 15:08:48 +0000 (10:08 -0500)] 
python3-numpy: upgrade 2.2.1 -> 2.2.2

Changelog: https://github.com/numpy/numpy/releases/tag/v2.2.2

Reproducibility looks OK:

|2025-01-20 16:40:52,428 - oe-selftest - INFO - Ran 1 test in 2125.833s
|2025-01-20 16:40:52,428 - oe-selftest - INFO - OK
|2025-01-20 16:40:57,146 - oe-selftest - INFO - RESULTS:
|2025-01-20 16:40:57,146 - oe-selftest - INFO - RESULTS - reproducible.ReproducibleTests.test_reproducible_builds: PASSED (2065.94s)
|2025-01-20 16:40:57,147 - oe-selftest - INFO - SUMMARY:
|2025-01-20 16:40:57,147 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 2125.834s
|2025-01-20 16:40:57,147 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agogcc-sanitizers.inc: Workaround for aarch64
Thomas Roos [Wed, 22 Jan 2025 12:44:07 +0000 (13:44 +0100)] 
gcc-sanitizers.inc: Workaround for aarch64

When using the -fsanitize=address  CXX_FLAG for a program compiled for
aarch64 / arm64

This is happing:
MemorySanitizer: CHECK failed: sanitizer_allocator_primary64.h:133 "((kSpaceBeg))
 == ((address_range.Init(TotalSpaceSize, PrimaryAllocatorName, kSpaceBeg)))"
 (0xe00000000000, 0xfffffffffffffff4) (tid=51745)

With -DSANITIZER_CAN_USE_ALLOCATOR64=0 this is not happening and
potenial bugs are detected.

ARM32 does not require this patch.

More info about the issue in this thread:
https://github.com/llvm/llvm-project/issues/65144

Signed-off-by: Thomas Roos <throos@amazon.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agoselftest/virgl: add a link to RHEL merge request to address the missing vgem module
Alexander Kanavin [Wed, 22 Jan 2025 10:03:24 +0000 (11:03 +0100)] 
selftest/virgl: add a link to RHEL merge request to address the missing vgem module

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agotcl8: add a patch to address Y2038 issues (tcl 9.x doesn't need it)
Alexander Kanavin [Wed, 22 Jan 2025 10:03:23 +0000 (11:03 +0100)] 
tcl8: add a patch to address Y2038 issues (tcl 9.x doesn't need it)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agotcl: disable 'zipfs' feature
Alexander Kanavin [Wed, 22 Jan 2025 10:03:22 +0000 (11:03 +0100)] 
tcl: disable 'zipfs' feature

zipfs is a new facility in tcl 9.x where various data files are bundled
into a zip archive, rather being separately installed.

Then that zip is embedded into libtcl.so from Makefile, thusly:

cat ${TCL_ZIP_FILE} >> ${LIB_FILE}

This is a major case of face meeting palm: any binary object
processing on the resulting .so file discards the extra data
at the end, and that's exactly what happens in do_package(),
resulting in a tcl installation without any language libraries.
This is not caught by ptest because it runs against a private
copy of the source tree.

Additionally, it helps to have data files on target systems
as files that can be viewed and edited.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@arm.com>
6 months agou-boot: kernel-fitimage: Fix dependency loop if UBOOT_SIGN_ENABLE and UBOOT_ENV enabled
Marek Vasut [Tue, 21 Jan 2025 21:20:52 +0000 (22:20 +0100)] 
u-boot: kernel-fitimage: Fix dependency loop if UBOOT_SIGN_ENABLE and UBOOT_ENV enabled

In case both UBOOT_SIGN_ENABLE and UBOOT_ENV are enabled and
kernel-fitimage.bbclass is in use to generate signed kernel
fitImage, there is a circular dependency between uboot-sign
and kernel-fitimage bbclasses . The loop looks like this:

kernel-fitimage.bbclass:
- do_populate_sysroot depends on do_assemble_fitimage
  - do_assemble_fitimage depends on virtual/bootloader:do_populate_sysroot
    - virtual/bootloader:do_populate_sysroot depends on virtual/bootloader:do_install
      => The virtual/bootloader:do_install installs and the
         virtual/bootloader:do_populate_sysroot places into
         sysroot an U-Boot environment script embedded into
         kernel fitImage during do_assemble_fitimage run .

uboot-sign.bbclass:
- DEPENDS on KERNEL_PN, which is really virtual/kernel. More accurately
  - do_deploy depends on do_uboot_assemble_fitimage
  - do_install depends on do_uboot_assemble_fitimage
  - do_uboot_assemble_fitimage depends on virtual/kernel:do_populate_sysroot
    => do_install depends on virtual/kernel:do_populate_sysroot

=> virtual/bootloader:do_install depends on virtual/kernel:do_populate_sysroot
   virtual/kernel:do_populate_sysroot depends on virtual/bootloader:do_install

Attempt to resolve the loop. Pull fitimage configuration options into separate
new configuration file image-fitimage.conf so these configuration options can
be shared by both uboot-sign.bbclass and kernel-fitimage.bbclass, and make use
of mkimage -f auto-conf / mkimage -f auto option to insert /signature node key-*
subnode into U-Boot control DT without depending on the layout of kernel fitImage
itself. This is perfectly valid to do, because the U-Boot /signature node key-*
subnodes 'required' property can contain either of two values, 'conf' or 'image'
to authenticate either selected configuration or all of images when booting the
fitImage.

For details of the U-Boot fitImage signing process, see:
https://docs.u-boot.org/en/latest/usage/fit/signature.html
For details of mkimage -f auto-conf and -f auto, see:
https://manpages.debian.org/experimental/u-boot-tools/mkimage.1.en.html#EXAMPLES

Fixes: 5e12dc911d0c ("u-boot: Rework signing to remove interdependencies")
Reviewed-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agogcc: make include poisoning fatal again in gcc/g++
Ross Burton [Tue, 21 Jan 2025 18:23:09 +0000 (18:23 +0000)] 
gcc: make include poisoning fatal again in gcc/g++

We have a patch to allow us to 'poison' system include directories,
which are warnings by default but we make them fatal in cross builds.

However, in the 13.1 upgrade[1] the patch to make the warnings fatal was
dropped in the compiler invocation, so it only took effect for pure
preprocessor calls. This was not noticed at the time as the test case
was flawed, but this has now been fixed.

Add back the fatal poisoning, and restructure the patch slightly so it
is less invasive.

[1] oe-core bea46612fd9106cc5b46eb1d81623b6492563c13

[RP: Tweak to fix gcc/gcc-cross-canadian failure]
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agooeqa/poisoning: fix gcc include poisoning test
Ross Burton [Tue, 21 Jan 2025 18:23:08 +0000 (18:23 +0000)] 
oeqa/poisoning: fix gcc include poisoning test

The test code in poison was flawed: as long as one CPP/CC/CXX has fatal
poisoning enabled then the test passes.  However, at the moment due to
a bad rebase only CPP has fatal poisoning and CC/CXX do not.

Rewrite the do_compile() task to more carefully check the output so the
test harness itself just has to bitbake the recipe.

Note that this results in the test failing:

  ERROR: poison-1.0-r0 do_compile: C Compiler is not poisoned.
  Exit status 0, output:  cc1: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
  ERROR: poison-1.0-r0 do_compile: C++ Compiler is not poisoned.
  Exit status 0, output:  cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agopython3-cffi: Add missing pkgconfig dependency
Richard Purdie [Wed, 22 Jan 2025 11:22:59 +0000 (11:22 +0000)] 
python3-cffi: Add missing pkgconfig dependency

With gcc posioning fixed, this recipe showed errors, using an incorrect include
path looking at the host system. If pkgconfig is present, the correct include
paths are used. Therefore add the missing dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agobase: Switch virtual/cross-XXX to be under recipe specific providers
Richard Purdie [Mon, 13 Jan 2025 17:55:52 +0000 (17:55 +0000)] 
base: Switch virtual/cross-XXX to be under recipe specific providers

Currently, providers are set on a global config basis. This change allows
for a select set of providers to be configured using BB_RECIPE_VIRTUAL_PROVIDERS
on a per recipe basis. This would allow for the selection of virtual/cross-cc
as gcc or clang for example.

The PROVIDERS are removed from the recipes so that if a version of the
dependency accidentally slips through, the build will fail and the user
can correct the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoclasses/recipes: Switch virtual/XXX-gcc to virtual/cross-cc (and c++/binutils)
Richard Purdie [Fri, 10 Jan 2025 14:45:57 +0000 (14:45 +0000)] 
classes/recipes: Switch virtual/XXX-gcc to virtual/cross-cc (and c++/binutils)

The idea of the base class dependency is to say "yes, I need a C cross compiler"
and this was never meant to be gcc specific. Looking at the codebase, whilst we
code triplets into this, it does overcomplicate things as there are only ever
limited, "target", "sdk" and the class extended versions like mutlilib.

After much thought, we can simplify this to virtual/cross-cc and virtual/nativesdk-cross-cc.

This lets us remove the "gcc" specific element as well as removing the over
complicated triplet usage.

At the same time, change the much less widely used "g++" variant to "c++" for
similar reasons and remove the triplet from virtual/XXX-binutils too.

Backwards compatibility mappings could be left but are just going to confuse
things in future so we'll just require users to update.

This simplification, whilst disruptive for any toolchain focused layers, will
make improved toolchain selection in the future much easier.

Since we no longer have overlapping variables, some code for that can just
be removed. The class extension code does need to start remapping some variables
but not the crosssdk target recipe names.

This patch is in two pieces, this one handles the renaming with the functional
changes separate in a second for easier review even if this breaks bisection.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agokernel-yocto: make kernel commits reproducible
Enrico Jörns [Mon, 20 Jan 2025 06:55:15 +0000 (07:55 +0100)] 
kernel-yocto: make kernel commits reproducible

The git commit hashes for the kernel checkout are not reproducible under
certain conditions:

- If the git repository is initialized on an archive (rather than a
  git), the initial git commit not only has the current user name set,
  it also uses the current system time as committer and author date.
  This will affect the initial git hash and thus all subsequent ones.

- The patches applied by the kern-tools have a valid author and date.
  However, their committer again depends on the user building the BSP.

This is an issue, for example, if one compiles a kernel with
CONFIG_LOCALVERSION_AUTO enabled where the commit hash lands into the
kernel and thus the package version. This not only makes the package
version non-reproducible, but also leads to version mismatches between
kernel modules built against a fresh kernel checkout and the kernel
retrieved from the sstate cache.

The class uses 'check_git_config' from utils.bbclass, but this only sets
the git user and only if none existed before. Thus it doesn't really
help here.

Since in Git the committer information can be set only from the
environment variables GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL, and
GIT_COMMITTER_DATE, we introduce a helper function to set those and
apply the author settings in the same way.
As values simply use PATCH_GIT_USER_NAME, PATCH_GIT_USER_EMAIL (from
patch.bbclass) and SOURCE_DATE_EPOCH.
For convenience, put the new helper 'reproducible_git_committer_author'
into utils.bbclass next to 'check_git_config' so others can use it, too.

Using this helper in kernel-yocto.bbclass makes the committer and author
date/name/email for the initial commit reproducible, as well as the
committer name/email for the patches applied with kern-tools.

For debugging purpose, allow disabling the reproducibility features by
setting KERNEL_DEBUG_TIMESTAMPS to "1".

Suggested-by: Felix Klöckner <F.Kloeckner@weinmann-emt.de>
Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agofmt: fix build with GCC 9.4
Ross Burton [Mon, 20 Jan 2025 11:45:20 +0000 (11:45 +0000)] 
fmt: fix build with GCC 9.4

fmt-native is needed to build ccache-native, and the compile fails on
hosts with GCC 9.4 (such as Ubuntu 20.04).  Backport a patch to fix this
issue.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolinux-firmware: upgrade 20241210 -> 20250109
Dmitry Baryshkov [Thu, 16 Jan 2025 02:40:23 +0000 (04:40 +0200)] 
linux-firmware: upgrade 20241210 -> 20250109

The linux-firmware now requires GNU Parallel in order to run parallel
builds. As the GNU Parallel is not a part of oe-core (the recipe is
present in meta-oe) disable parallel builds.

License-Update: additional files

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
6 months agoimage.bbclass: enable systemd user services
Artur Kowalski [Mon, 20 Jan 2025 12:46:06 +0000 (13:46 +0100)] 
image.bbclass: enable systemd user services

Run systemctl preset-all with --global flag so user unit's are enabled
the same way system units are.

Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agosystemd.bbclass: support user units in postinst and prerm hooks
Artur Kowalski [Mon, 20 Jan 2025 12:46:05 +0000 (13:46 +0100)] 
systemd.bbclass: support user units in postinst and prerm hooks

Handle user units in a manner similar to system units where possible.
Not everything is supported by systemd, but systemd limitations only
affect runtime package management - during update user services are not
reloaded/restart and each user must re-login or manually restart
services.

Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agosystemd.bbclass: update postinst and prerm hooks
Artur Kowalski [Mon, 20 Jan 2025 12:46:04 +0000 (13:46 +0100)] 
systemd.bbclass: update postinst and prerm hooks

Since SYSTEMD_SERVICE_ESCAPED may contain both system and user services
we need to filter out user services in call to systemctl. Introduce
helper systemd_filter_services() which takes space-separated list of
services and returns services of requested type.

Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agosystemd.bbclass: properly handle user units in systemd_create_presets
Artur Kowalski [Mon, 20 Jan 2025 12:46:03 +0000 (13:46 +0100)] 
systemd.bbclass: properly handle user units in systemd_create_presets

Previously user units were handled the same way as system units, that
is all preset files were created in system-preset directory, but user
presets should be in user-preset directory.

Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agosystemd.bbclass: introduce systemd_service_searchpaths()
Artur Kowalski [Mon, 20 Jan 2025 12:46:02 +0000 (13:46 +0100)] 
systemd.bbclass: introduce systemd_service_searchpaths()

systemd_service_searchpaths accepts boolean value indicating whether we
are dealing with system or user units and returns search paths
accordingly.

Previously search path list was created in systemd_check_services() but
following commits will introduce additional places. The
systemd_service_searchpaths helper function is meant to reduce code
duplication.

Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agosystemd.bbclass: factor out service lookup logic into separate function
Artur Kowalski [Mon, 20 Jan 2025 12:46:01 +0000 (13:46 +0100)] 
systemd.bbclass: factor out service lookup logic into separate function

Factor out the logic into systemd_service_path(). This will be needed by
following commits to avoid code duplication.

Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agosystemd.bbclass: add ${sysconfdir}/systemd/user to search path
Artur Kowalski [Mon, 20 Jan 2025 12:46:00 +0000 (13:46 +0100)] 
systemd.bbclass: add ${sysconfdir}/systemd/user to search path

We already search for system units ${sysconfdir}/systemd/system but we
don't search for user units in corresponding directory under ${sysconfdir}.
Keep the behaviour consistent so that both unit types are searched in
${systemd_{system,user}_unitdir} and ${sysconfdir}/systemd/{system,user}.

Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agosystemd-systemctl: add support for --global flag
Artur Kowalski [Mon, 20 Jan 2025 12:45:59 +0000 (13:45 +0100)] 
systemd-systemctl: add support for --global flag

The flag is similar to --user flag as it causes systemctl to operate on
user units, but it performs operations globally for all users. This is
required for user presets support.

Signed-off-by: Artur Kowalski <arturkow2000@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoeudev: backport patch to fix udevd hanging while trying to access /dev/urandom
Hiago De Franco [Mon, 13 Jan 2025 23:31:40 +0000 (20:31 -0300)] 
eudev: backport patch to fix udevd hanging while trying to access /dev/urandom

Linux kernel commit 48bff1053c17 ("random: opportunistically initialize
on /dev/urandom reads") introduced a change where /dev/urandom blocks if
the random pool is insufficiently initialized during hardware boot. This
behavior causes /dev/urandom reads to hang for approximately 5 seconds,
delaying the boot process with eudev init script (when it calls udevd).

This issue has already been solved upstream, therefore backport the
upstream patch to fix this.

Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
6 months agouboot-extlinux-config.bbclass: invalidate do_create_extlinux_config on changes to...
Quentin Schulz [Fri, 17 Jan 2025 16:50:54 +0000 (17:50 +0100)] 
uboot-extlinux-config.bbclass: invalidate do_create_extlinux_config on changes to UBOOT_EXTLINUX_FDTOVERLAYS:x

do_create_extlinux_config is using a bit of an odd mechanism which
doesn't work well with sstate cache invalidation.

BitBake will detect changes to UBOOT_EXTLINUX_FDTOVERLAYS because it's
explicitly mentioned in the task, but it'll miss changes to
UBOOT_EXTLINUX_FDTOVERLAYS:label because this OVERRIDES is set within
the task, so the value of UBOOT_EXTLINUX_FDTOVERLAYS for the label
OVERRIDES will only ever change from within the task, while it is
running, much later than during parsing.

For that to work properly, we need to add the entire variable (including
the OVERRIDES part) to the vardeps varflag of the task so that its value
is monitored. This is already done for all possible label variables but
FDTOVERLAYS was forgotten.

Fixes: 3ac21b32b5f5 ("uboot-extlinux-config.bbclass: add support for DTBOs")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agorsync: upgrade 3.3.0 -> 3.4.1
Archana Polampalli [Fri, 17 Jan 2025 06:33:58 +0000 (06:33 +0000)] 
rsync: upgrade 3.3.0 -> 3.4.1

CVEs addressed in this release:
CVE-2024-12084
CVE-2024-12085
CVE-2024-12086
CVE-2024-12087
CVE-2024-12088
CVE-2024-12747

Refreshed below patches:
makefile-no-rebuild.patch
determism.patch
0001-Add-missing-prototypes-to-function-declarations.patch

Changelog:
https://github.com/RsyncProject/rsync/blob/v3.4.1/NEWS.md
https://github.com/RsyncProject/rsync/blob/v3.4.0/NEWS.md

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agogrub-efi-cfg: Add GRUB_TITLE for custom GRUB titles
Simon A. Eugster [Wed, 15 Jan 2025 08:55:21 +0000 (09:55 +0100)] 
grub-efi-cfg: Add GRUB_TITLE for custom GRUB titles

Until now, the default title of a boot entry is its label. The label is
a variable which determines the script to run during an early boot stage
and is not necessarily human readable.

This patch allows to provide a human-readable title for each boot entry.

Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodbus: update 1.14.10 -> 1.16.0
Alexander Kanavin [Wed, 8 Jan 2025 08:42:08 +0000 (09:42 +0100)] 
dbus: update 1.14.10 -> 1.16.0

Convert from autotools to meson.

Drop tmpdir.patch (replaced by -Dtest_socket_dir=/tmp --Dsession_socket_dir=/tmp).

License-Update: license texts split into separate files, SPDX ids added.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agopiglit: Upgrade to latest revision
Fabio Estevam [Fri, 17 Jan 2025 12:27:32 +0000 (09:27 -0300)] 
piglit: Upgrade to latest revision

Upgrade to latest revision.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoautoconf: rename autotools_aclocals and only run in do_configure
Ross Burton [Wed, 15 Jan 2025 16:33:18 +0000 (16:33 +0000)] 
autoconf: rename autotools_aclocals and only run in do_configure

Despite the name, autotools_aclocals() doesn't actually do anything with
aclocal. Instead it reads all of the available autoconf site default
files[1] and sets CONFIG_SITE appropriately. Rename the function to
autotools_sitefiles to make this clear.

Also there's no need to do this before do_configure or do_install, as
the variable is only checked when configure runs.

[1] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Site-Defaults.html

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolibtool: remove obsolete ACLOCALEXTRAPATH
Ross Burton [Wed, 15 Jan 2025 16:33:17 +0000 (16:33 +0000)] 
libtool: remove obsolete ACLOCALEXTRAPATH

This variable no longer exists, and would have had the effect of not
letting the target libtool see the contents of the native aclocal
directory.

I don't understand why this was needed but autotools has improved
dramatically in the last eight years, so it's most likely obsolete now.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoautotools: clean up aclocal/ search path assignments
Ross Burton [Wed, 15 Jan 2025 16:33:16 +0000 (16:33 +0000)] 
autotools: clean up aclocal/ search path assignments

We need aclocal to look in two different $datadir/aclocal/ directories:
the native (eg, for pkg.m4 from pkgconfig) and the target (eg, for
alsa.m4 from alsa-lib).

aclocal doesn't directly support this pattern, currently we use
--system-acdir to specify the target directory and then add the native
directory to the user include list.

However, since automake 1.17 there is also an --aclocal-path option to
augument the search list.  As the relocated aclocal from automake-native
already knows the correct path for the native aclocal directory we can
use --aclocal-path to add the correct target aclocal directory.

For simplicity I don't bother only doing this in non-native builds as
this just adds the same path to the search twice.

This removes ACLOCALDIR and ACLOCALEXTRAPATH. Recipes using these to
add search paths should instead use EXTRA_AUTORECONF += "-I path".

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolibsecret: update patch Upstream-Status
Markus Volk [Tue, 14 Jan 2025 07:05:56 +0000 (08:05 +0100)] 
libsecret: update patch Upstream-Status

Upstream does not want the pam tests to be skipped

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: ide-sdk remove the plugin from eSDK installer
Adrian Freihofer [Mon, 13 Jan 2025 23:39:09 +0000 (00:39 +0100)] 
devtool: ide-sdk remove the plugin from eSDK installer

The ide-sdk command bootstraps the SDK from the bitbake environment
before the IDE configuration is generated. In the case of the eSDK
installer, the bootstrapping is performed during the installation of
the eSDK installer. Running the ide-sdk plugin from an eSDK installer
based setup would require skipping the bootstrapping and probably taking
some other differences into account when generating the IDE
configurations.

This would be possible. But it will probably never be implemented, as
running devtool ide-sdk directly from the bitbake environment is much
more flexible.
Also, some of the recent improvements that have made it into the core
have the potential to make the eSDK installer obsolete at some point in
the future:
- bitbake-layers create-layers-setup replicates the layers
- bitbake-config-build replicates the build configuration
- The new sstate mirror features replicate the sstate
- bblock locks the sstate more flexible than the eSDK installer
- devtool ide-sdk bootstraps the SDK directly from the bitbake
  environment. The same environment-setup... file is provided with
  --mode=shared.
  The devtool modify based workflow is supported since always by devtool
  and also the default --mode of devtool ide-sdk.
These functions essentially cover what the eSDK installer does without
a need for the current implementation of the eSDK installer and the
populate_sdk_ext, which is hard to maintain and takes a lot of time to
build.
This means that instead of making the ide-sdk plugin compatible with the
eSDK installer, we should rather replace the current implementation of
the eSDK installer and populate_sdk_ext with an implementation that can
replicate a normal bitbake environment in a convenient way where the
ide-sdk plugin also just works without additional complexity.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: build-sdk remove unused imports
Adrian Freihofer [Mon, 13 Jan 2025 23:39:08 +0000 (00:39 +0100)] 
devtool: build-sdk remove unused imports

These imports are not needed.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolibxkbcommon: replace locale dependecy from RDEPENDS to RRECOMMENDS
Hiago De Franco [Tue, 14 Jan 2025 00:25:03 +0000 (21:25 -0300)] 
libxkbcommon: replace locale dependecy from RDEPENDS to RRECOMMENDS

The error described does not occur in all cases where libxkbcommon is
used. As example, a Qt application that depends on libxkbcommon might
not require any locales to be installed.

Add it to RRECOMMENDS, as libxkbcommon does not seen to have any hard
dependency on libx11-compose-data or libx11-locale. This change can help
users decide to disable it and save some space on the rootfs.

Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolttng-tools: disable patching our libtool.m4
Ross Burton [Thu, 16 Jan 2025 12:04:29 +0000 (12:04 +0000)] 
lttng-tools: disable patching our libtool.m4

Twelve years ago, libtool on Debian had a patch that meant it failed to
cross-compile lttng-tools correctly. The solution at the time was to
sed libtool.m4 whilst configure was being ran[1], which (assuming it
patches the correct file) results in a re-execution of configure during
do_compile.

This behaviour is undesired as we don't patch libtool in the way that
this fixup is needed (the sed only changes Haiku OS codepaths), so
disable it.

[1] https://github.com/lttng/lttng-tools/commit/6bd5984c2b1b1037e0345bbac3506b5503fe01bd

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoclasses/logging: Added the bbverbnote command to the logging set
Bastien JAUNY [Fri, 17 Jan 2025 15:48:07 +0000 (16:48 +0100)] 
classes/logging: Added the bbverbnote command to the logging set

Fixes [YOCTO #15688]

Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Bastien JAUNY <bastien.jauny@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolib: spdx: Upgrade to final 3.0.1 release
Joshua Watt [Thu, 16 Jan 2025 16:07:33 +0000 (09:07 -0700)] 
lib: spdx: Upgrade to final 3.0.1 release

The 3.0.1 release of SPDX has been officially released with a few minor
modifications. Regenerate the bindings to use this version.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agorust: increase test timeout again
Adrian Freihofer [Tue, 14 Jan 2025 22:17:01 +0000 (23:17 +0100)] 
rust: increase test timeout again

Fixes [YOCTO #15625]

The first attempt to get around the timeout was to double it from 5000
to 10000, which doesn't seem to be enough. Let's try to fix this by
extending the timeout by a factor of 10.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoofono: fix CVE-2024-7539
Yogita Urade [Tue, 14 Jan 2025 12:51:27 +0000 (12:51 +0000)] 
ofono: fix CVE-2024-7539

oFono CUSD Stack-based Buffer Overflow Code Execution Vulnerability.
This vulnerability allows local attackers to execute arbitrary code
on affected installations of oFono. An attacker must first obtain
the ability to execute code on the target modem in order to exploit
this vulnerability.

The specific flaw exists within the parsing of responses from AT+CUSD
commands. The issue results from the lack of proper validation of the
length of user-supplied data prior to copying it to a stack-based buffer.
An attacker can leverage this vulnerability to execute code in the
context of root. Was ZDI-CAN-23195.

Reference:
https://security-tracker.debian.org/tracker/CVE-2024-7539

Upstream patch:
https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=389e2344f86319265fb72ae590b470716e038fdc

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoopenssl: remove obsolete CVE version suffix
Peter Marko [Wed, 15 Jan 2025 18:49:51 +0000 (19:49 +0100)] 
openssl: remove obsolete CVE version suffix

Since 3.0.0 openssl no longer uses characters in version suffix.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agogcc: poison-system-directories patch updated for missing paths
Sunil Dora [Thu, 16 Jan 2025 09:09:44 +0000 (01:09 -0800)] 
gcc: poison-system-directories patch updated for missing paths

Modified logic in gcc/incpath.cc to ensure that non-existing host system paths are
not deleted during cross-compilation. If the build system attempts to search a host
path, gcc will now issue a warning instead of silently ignoring it.

Fixes [YOCTO #15672]
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15672

Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: remove unused 'config' param from '_create_workspace' method
Chris Laplante [Sun, 12 Jan 2025 14:53:59 +0000 (09:53 -0500)] 
devtool: remove unused 'config' param from '_create_workspace' method

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: misc cleanups
Chris Laplante [Sun, 12 Jan 2025 14:53:58 +0000 (09:53 -0500)] 
devtool: misc cleanups

1. Bad None comparison
2. Reliance on transitive includes in bb
3. Unbound 'ret' variable

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: un-globalize 'plugins' variable
Chris Laplante [Sun, 12 Jan 2025 14:53:57 +0000 (09:53 -0500)] 
devtool: un-globalize 'plugins' variable

It never had to be a global anyway

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: un-globalize 'config' variable
Chris Laplante [Sun, 12 Jan 2025 14:53:56 +0000 (09:53 -0500)] 
devtool: un-globalize 'config' variable

'read_workspace' can now access it via the 'context' that's passed in

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: un-globalize 'context' variable and convert it to a dataclass
Chris Laplante [Sun, 12 Jan 2025 14:53:55 +0000 (09:53 -0500)] 
devtool: un-globalize 'context' variable and convert it to a dataclass

Please excuse the usage of 'typing' slipping in here - it's just how
dataclasses work :/.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: un-globalize 'workspace' variable
Chris Laplante [Sun, 12 Jan 2025 14:53:54 +0000 (09:53 -0500)] 
devtool: un-globalize 'workspace' variable

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agodevtool: un-globalize the 'basepath' variable
Chris Laplante [Sun, 12 Jan 2025 14:53:53 +0000 (09:53 -0500)] 
devtool: un-globalize the 'basepath' variable

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoprocps: update 4.0.4 -> 4.0.5
Alexander Kanavin [Wed, 8 Jan 2025 08:42:14 +0000 (09:42 +0100)] 
procps: update 4.0.4 -> 4.0.5

Drop pidfd.patch (upstream significantly refactored the code; the patch can be tested
only with very old kernels; upstream submission has not been followed up since initial
MR creation).

Add a patch to igt-gpu-tools to address a build failure with the new procps.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agosystemd: PACKAGECONFIG mountfsd and nsresourced
Lei YU [Mon, 13 Jan 2025 08:11:20 +0000 (08:11 +0000)] 
systemd: PACKAGECONFIG mountfsd and nsresourced

systemd v256 introduces `mountfsd` and `nsresourced` as meson options,
make them PACKAGECONFIG so recipes could enable or disable the feature
by selecting PACKAGECONFIGs.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
6 months agopulseaudio: fix webrtc audio depdency
Esben Haabendal [Wed, 8 Jan 2025 14:12:31 +0000 (15:12 +0100)] 
pulseaudio: fix webrtc audio depdency

Since pulseaudio v16.99.1, the library needed is webrtc-audio-processing-1.
This fixes

Run-time dependency webrtc-audio-processing-1 found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency webrtc-audio-processing-1

../pulseaudio-17.0/meson.build:730:15: ERROR: Automatic wrap-based subproject downloading is disabled

The library is available in meta-openembedded/meta-multimedia.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
6 months agosysvinit: update 3.11 -> 3.13
Alexander Kanavin [Wed, 8 Jan 2025 08:42:09 +0000 (09:42 +0100)] 
sysvinit: update 3.11 -> 3.13

Remove patches:
install.patch
(merged upstream)

realpath.patch
0001-include-sys-sysmacros.h-for-major-minor-defines-in-g.patch
(musl fixes, no longer needed)

pidof-add-m-option.patch
(not a backport, not used in core, and isn't carried by either debian or fedora)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoudev-extraconf: Allow FAT mount group to be specified
Joshua Watt [Fri, 10 Jan 2025 16:00:55 +0000 (09:00 -0700)] 
udev-extraconf: Allow FAT mount group to be specified

Adds a variable that allows the group given permissions to access FAT
mounted file systems to be specified, instead of being hardcoded to
'disk'.

As a note, the usage of 'disk' as the mount group is not a very secure
default, since the disk user usually has read/write access to all block
devices in /dev/, meaning that adding a user to this group for the
purpose of accessing FAT file systems effectively gives the write access
to all block devices.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoselftest/reproducible: Print error context on failure
Yoann Congal [Sun, 12 Jan 2025 00:23:10 +0000 (01:23 +0100)] 
selftest/reproducible: Print error context on failure

Printed logs during the reproducible test look like this in case of
failure:
2025-01-12 00:39:00,807 - oe-selftest - INFO - Building reproducibleA (sstate allowed)...
2025-01-12 00:40:08,323 - oe-selftest - ERROR - Bitbake failed! but keep going... Log:
2025-01-12 00:40:08,323 - oe-selftest - INFO - Found ERROR (line 126):
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: recipe opkg-utils-native-0.7.0-r0: task do_populate_sysroot_setscene: Succeeded
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: Running setscene task 74 of 333 (virtual:native:.../poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.7.0.bb:do_recipe_qa_setscene)
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: recipe bash-5.2.37-r0: task do_populate_sysroot_setscene: Succeeded
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: recipe cve-update-nvd2-native-1.0-r0: task do_unpack: Succeeded
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: Running task 4 of 974 (.../poky/meta/recipes-core/hello-single/hello-fail_1.0.bb:do_cve_check)
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: recipe bash-5.2.37-r0: task do_packagedata_setscene: Succeeded
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: recipe hello-fail-1.0-r0: task do_packagedata_setscene: Started
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: Running setscene task 77 of 333 (.../poky/meta/recipes-extended/bash/bash_5.2.37.bb:do_recipe_qa_setscene)
2025-01-12 00:40:08,323 - oe-selftest - INFO -       NOTE: Running setscene task 78 of 333 (.../poky/meta/recipes-core/ncurses/ncurses_6.5.bb:do_populate_sysroot_setscene)
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: recipe hello-fail-1.0-r0: task do_populate_sysroot_setscene: Started
2025-01-12 00:40:08,324 - oe-selftest - INFO -       ERROR: hello-fail-1.0-r0 do_populate_sysroot_setscene: this is an error
2025-01-12 00:40:08,324 - oe-selftest - INFO -       ERROR: hello-fail-1.0-r0 do_populate_sysroot_setscene: Error executing a python function in exec_func_python() autogenerated:
2025-01-12 00:40:08,324 - oe-selftest - INFO -
2025-01-12 00:40:08,324 - oe-selftest - INFO -       The stack trace of python calls that resulted in this exception/failure was:
2025-01-12 00:40:08,324 - oe-selftest - INFO -       File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
2025-01-12 00:40:08,324 - oe-selftest - INFO -            0001:
2025-01-12 00:40:08,324 - oe-selftest - INFO -        *** 0002:do_populate_sysroot_setscene(d)
2025-01-12 00:40:08,324 - oe-selftest - INFO -            0003:
2025-01-12 00:40:08,324 - oe-selftest - INFO -       File: '.../poky/meta/recipes-core/hello-single/hello-fail_1.0.bb', lineno: 17, function: do_populate_sysroot_setscene
2025-01-12 00:40:08,324 - oe-selftest - INFO -            0013:}
2025-01-12 00:40:08,324 - oe-selftest - INFO - Found ERROR (line 127):
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: Running setscene task 74 of 333 (virtual:native:.../poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.7.0.bb:do_recipe_qa_setscene)
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: recipe bash-5.2.37-r0: task do_populate_sysroot_setscene: Succeeded
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: recipe cve-update-nvd2-native-1.0-r0: task do_unpack: Succeeded
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: Running task 4 of 974 (.../poky/meta/recipes-core/hello-single/hello-fail_1.0.bb:do_cve_check)
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: recipe bash-5.2.37-r0: task do_packagedata_setscene: Succeeded
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: recipe hello-fail-1.0-r0: task do_packagedata_setscene: Started
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: Running setscene task 77 of 333 (.../poky/meta/recipes-extended/bash/bash_5.2.37.bb:do_recipe_qa_setscene)
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: Running setscene task 78 of 333 (.../poky/meta/recipes-core/ncurses/ncurses_6.5.bb:do_populate_sysroot_setscene)
2025-01-12 00:40:08,324 - oe-selftest - INFO -       NOTE: recipe hello-fail-1.0-r0: task do_populate_sysroot_setscene: Started
2025-01-12 00:40:08,324 - oe-selftest - INFO -       ERROR: hello-fail-1.0-r0 do_populate_sysroot_setscene: this is an error
2025-01-12 00:40:08,324 - oe-selftest - INFO -       ERROR: hello-fail-1.0-r0 do_populate_sysroot_setscene: Error executing a python function in exec_func_python() autogenerated:
2025-01-12 00:40:08,325 - oe-selftest - INFO -
2025-01-12 00:40:08,325 - oe-selftest - INFO -       The stack trace of python calls that resulted in this exception/failure was:
2025-01-12 00:40:08,325 - oe-selftest - INFO -       File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
2025-01-12 00:40:08,325 - oe-selftest - INFO -            0001:
2025-01-12 00:40:08,325 - oe-selftest - INFO -        *** 0002:do_populate_sysroot_setscene(d)
2025-01-12 00:40:08,325 - oe-selftest - INFO -            0003:
2025-01-12 00:40:08,325 - oe-selftest - INFO -       File: '.../poky/meta/recipes-core/hello-single/hello-fail_1.0.bb', lineno: 17, function: do_populate_sysroot_setscene
2025-01-12 00:40:08,325 - oe-selftest - INFO -            0013:}
2025-01-12 00:40:08,325 - oe-selftest - INFO -            0014:
2025-01-12 00:40:08,325 - oe-selftest - INFO - End of log:
2025-01-12 00:40:08,325 - oe-selftest - INFO -       NOTE: Running task 955 of 974 (.../poky/meta/recipes-core/hello-single/hello-fail_1.0.bb:do_populate_sysroot)
2025-01-12 00:40:08,325 - oe-selftest - INFO -       NOTE: recipe hello-fail-1.0-r0: task do_populate_sysroot: Started
2025-01-12 00:40:08,325 - oe-selftest - INFO -       NOTE: recipe hello-fail-1.0-r0: task do_populate_sysroot: Succeeded
2025-01-12 00:40:08,325 - oe-selftest - INFO -       NOTE: Running noexec task 973 of 974 (.../poky/meta/recipes-core/hello-single/hello-fail_1.0.bb:do_build)
2025-01-12 00:40:08,325 - oe-selftest - INFO -       NOTE: Running noexec task 974 of 974 (.../poky/meta/recipes-core/hello-single/hello-norepro_1.0.bb:do_build)
2025-01-12 00:40:08,325 - oe-selftest - INFO -       NOTE: Tasks Summary: Attempted 974 tasks of which 958 didn't need to be rerun and all succeeded.
2025-01-12 00:40:08,325 - oe-selftest - INFO -       NOTE: Generating JSON CVE summary
2025-01-12 00:40:08,325 - oe-selftest - INFO -       Complete CVE JSON report summary created at: .../poky/build-master-st/reproducibleA/tmp/log/cve/cve-summary.json
2025-01-12 00:40:08,325 - oe-selftest - INFO -
2025-01-12 00:40:08,325 - oe-selftest - INFO -       Summary: There were 2 ERROR messages, returning a non-zero exit code.
2025-01-12 00:40:08,326 - oe-selftest - ERROR - reproducibleA build failed. Trying to compute built packages differences but the test will fail.

Fixes [YOCTO #15655] (second half).

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoselftest/reproducible: Print full log path on failure
Yoann Congal [Sun, 12 Jan 2025 00:23:09 +0000 (01:23 +0100)] 
selftest/reproducible: Print full log path on failure

Printed message looks like this:
2025-01-12 00:40:08,326 - oe-selftest - ERROR - reproducibleA build failed. Trying to compute built packages differences but the test will fail.
2025-01-12 00:40:08,326 - oe-selftest - INFO - Failure log for reproducibleA will be copied to <snip>/oe-reproducible-20250112-mza9w940/bitbake-reproducibleA.log

Fixes [YOCTO #15655] (first half).

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoclasses/ptest-python-pytest: simplify python ptest file overriding
Derek Straka [Fri, 10 Jan 2025 15:59:29 +0000 (15:59 +0000)] 
classes/ptest-python-pytest: simplify python ptest file overriding

The complexity of overriding files from the bbclass made the behavior at
times hard to follow and predict. This change replaces the default file with a
heredoc equivalent that creates a default file if the user does not provide their
own version of run-ptest in the SRC_URI.

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agooeqa/selftest/sstatetests: Cover aarch64 SDKMACHINE in tests
Richard Purdie [Mon, 13 Jan 2025 14:08:16 +0000 (14:08 +0000)] 
oeqa/selftest/sstatetests: Cover aarch64 SDKMACHINE in tests

We want to ensure ARM nativesdk signatures match those for the 32 and 64 bit
x86 versions. Add a test to ensure this is the case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agorust: Upgrade 1.80.1->1.81.0
Deepesh Varatharajan [Mon, 13 Jan 2025 12:08:08 +0000 (04:08 -0800)] 
rust: Upgrade 1.80.1->1.81.0

https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html

Drop the following backported patches which is addressed
with rust v1.81.0 upgrade.

0001-cargo-do-not-write-host-information-into-compilation.patch
https://github.com/rust-lang/cargo/commit/2db0bab16139d094f689587b73539aae386a1919

hardcodepaths.patch
https://github.com/rust-lang/rust/commit/28503d69ac204ff208d115aea30dc09d6fca8728

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agorust: Fix for duplicate libstd.so
Deepesh Varatharajan [Mon, 13 Jan 2025 12:08:07 +0000 (04:08 -0800)] 
rust: Fix for duplicate libstd.so

During the Rust build process, multiple copies of libstd-*.so are generated, as Rust copies the
required files from the stage2 build artifacts to the target image directory. When these build
binaries are copied to the image, Yocto's do_package step encounters an error. To resolve this,
the redundant libstd-*.so files are removed during the do_install step.

-----------------------------------------------------------------------------------------------
ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for libstd-20c3de2d9292cd03.so:..
....
-----------------------------------------------------------------------------------------------

Multiple copies of libstd-*.so are generated during the Rust build process.
The redundant files are removed during the do_install step.

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agorust-target-config: Update the data layout for x86 , ppc , riscv64 , aarch64 and...
Deepesh Varatharajan [Mon, 13 Jan 2025 12:08:06 +0000 (04:08 -0800)] 
rust-target-config: Update the data layout for x86 , ppc , riscv64 , aarch64 and loongaarch64 targets.

-----------------------------------------------------------------------------------------
error: data-layout for target `x86-linux`, `e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128`,
differs from LLVM target's `i686-unknown-linux-gnu` default layout,
`e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128`

error: data-layout for target `powerpc-linux`, `E-m:e-p:32:32-i64:64-n32`,
differs from LLVM target's `powerpc-unknown-linux-gnu` default layout,
`E-m:e-p:32:32-Fn32-i64:64-n32`

error: data-layout for target `x86_64-poky-linux-gnux32`,
`e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128`,
differs from LLVM target's `x86_64-poky-linux-gnux32` default layout,
`e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128`
-------------------------------------------------------------------------------------------
Rust commits for updating the data layouts:

x86: https://github.com/rust-lang/rust/commit/dbff90c2a7c751cf9d6843cd585429beb100c17d
x86_64-x32: https://github.com/rust-lang/rust/commit/ec55a05374d89d206be5140a4759af92f1b42f15
aarch64: https://github.com/rust-lang/rust/commit/4d397d33da8aff64419a03694d152c8250916f19
ppc: https://github.com/rust-lang/rust/commit/ad7ea8b7e690e6000006b6fde630a2c8c4385019
riscv64gc: https://github.com/rust-lang/rust/commit/f414715ebfda201f91f80ef9f28d9923d614d1c4
loongaarch64: https://github.com/rust-lang/rust/commit/4a06a5bc7ad259023e4373e794687adfce252dac

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agometa/lib/oe/cve_check.py: fix patched_cves not updated
hongxu [Wed, 8 Jan 2025 15:47:16 +0000 (07:47 -0800)] 
meta/lib/oe/cve_check.py: fix patched_cves not updated

Due to commit [cve-check: Rework patch parsing] applied, it missed to
update patched_cves dictionary if cve_id not in patched_cves

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agomultilib-example.conf: explicitly overwrite the BASELIB
Benjamin Bara [Wed, 8 Jan 2025 07:15:13 +0000 (08:15 +0100)] 
multilib-example.conf: explicitly overwrite the BASELIB

Currently, meta/conf/machine/include/x86/arch-x86.inc sets the BASE_LIB
for tune-x86 to "lib". Instead, explicitly overwrite the BASELIB to
better showcase what is happening inside.

Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoglibc: set ld.so.conf as conf file
Benjamin Bara [Wed, 8 Jan 2025 07:15:11 +0000 (08:15 +0100)] 
glibc: set ld.so.conf as conf file

This enables simple overwriting when multilib is in use.

Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agomultilib.conf: overwrite conf files for debs
Benjamin Bara [Wed, 8 Jan 2025 07:15:10 +0000 (08:15 +0100)] 
multilib.conf: overwrite conf files for debs

Similar to OPKG, overwrite conf files for APT (deb files).

Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolinux-yocto/6.12: update to v6.12.9
Bruce Ashfield [Fri, 10 Jan 2025 18:15:02 +0000 (13:15 -0500)] 
linux-yocto/6.12: update to v6.12.9

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

    5996393469d9 Linux 6.12.9
    10a641cad465 mptcp: don't always assume copied data in mptcp_cleanup_rbuf()
    8353226fe3ca mptcp: fix recvbuffer adjust on sleeping rcvmsg
    fb08e6b0ba28 mptcp: fix TCP options overflow.
    2e31443a0d18 mm: hugetlb: independent PMD page table shared count
    464770df4609 mm: reinstate ability to map write-sealed memfd mappings read-only
    58d0d02dbc67 mm: vmscan: account for free pages to prevent infinite Loop in throttle_direct_reclaim()
    64b2d32f2259 mm/kmemleak: fix sleeping function called from invalid context at print message
    5802fe9cfc05 mm/readahead: fix large folio support in async readahead
    86c9fd14aa7f gve: trigger RX NAPI instead of TX NAPI in gve_xsk_wakeup
    35f44eed5828 gve: guard XDP xmit NDO on existence of xdp queues
    e2ff6dd63159 gve: fix XDP allocation path in edge cases
    8e8d7037c894 gve: guard XSK operations on the existence of queues
    c8a8334fbedb gve: clean XDP queues in gve_tx_stop_ring_gqi
    077ef69099f4 gve: process XSK TX descriptors as part of RX NAPI
    d066ab595cdf fs/proc/task_mmu: fix pagemap flags with PMD THP entries on 32bit
    9e4c11d4cc05 mm: shmem: fix incorrect index alignment for within_size policy
    cabacb18a42d mm: shmem: fix the update of 'shmem_falloc->nr_unswapped'
    3647932d0b3e mm/damon/core: fix new damon_target objects leaks on damon_commit_targets()
    69bbaa0fdddc mm/damon/core: fix ignored quota goals and filters of newly committed schemes
    e55273aa2a55 net: ethernet: ti: am65-cpsw: default to round-robin for host port receive
    b68b2a3fbacc fgraph: Add READ_ONCE() when accessing fgraph_array[]
    19d8a4424168 wifi: iwlwifi: mvm: Fix __counted_by usage in cfg80211_wowlan_nd_*
    ca9d077350fa drm: adv7511: Fix use-after-free in adv7533_attach_dsi()
    9f12616222ce dt-bindings: display: adi,adv7533: Drop single lane support
    6c87986664ab drm: adv7511: Drop dsi single lane support
    41ce61328e0f io_uring/rw: fix downgraded mshot read
    2297890b778b net/sctp: Prevent autoclose integer overflow in sctp_association_init()
    41db022612b6 sched_ext: initialize kit->cursor.flags
    a921eb655809 sky2: Add device ID 11ab:4373 for Marvell 88E8075
    ffb231471a40 workqueue: Do not warn when cancelling WQ_MEM_RECLAIM work from !WQ_MEM_RECLAIM worker
    830f83858952 pinctrl: mcp23s08: Fix sleeping in atomic context due to regmap locking
    b3ef4ae71336 RDMA/uverbs: Prevent integer overflow issue
    786362ce60d7 sched_ext: Fix invalid irq restore in scx_ops_bypass()
    65802da747ac scripts/sorttable: fix orc_sort_cmp() to maintain symmetry and transitivity
    dc05ee603128 clk: clk-imx8mp-audiomix: fix function signature
    90daa2f83585 maple_tree: reload mas before the second call for mas_empty_area
    0e1779478f0c kcov: mark in_softirq_really() as __always_inline
    ba950a02d8d2 ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv
    9d382112b363 ALSA: seq: oss: Fix races at processing SysEx messages
    a369c9b4ad5a ALSA hda/realtek: Add quirk for Framework F111:000C
    c8f05dc8a9ce drm/xe: Wait for migration job before unmapping pages
    7f13d8273e8c drm/xe: Use non-interruptible wait when moving BO to system
    5a45b3497280 ftrace: Fix function profiler's filtering functionality
    ac3ee577c347 ALSA: seq: Check UMP support for midi_version change
    c7e9cb3db798 io_uring/kbuf: use pre-committed buffer address for non-pollable file
    abf81fd09b62 RDMA/mlx5: Enable multiplane mode only when it is supported
    56432f684513 Revert "ALSA: ump: Don't enumeration invalid groups for legacy rawmidi"
    a93c6cf0868f kbuild: pacman-pkg: provide versioned linux-api-headers package
    2a44d48d323a modpost: fix the missed iteration for the max bit in do_input()
    f133ad12fe86 scripts/mksysmap: Fix escape chars '$'
    5ce6fb470eb1 clk: thead: Fix TH1520 emmc and shdci clock rate
    1c2244437f9a bpf: consider that tail calls invalidate packet pointers
    28bcc8024033 bpf: refactor bpf_helper_changes_pkt_data to use helper number
    07bb0775bacc ARC: build: Try to guess GCC variant of cross compiler
    c88e3ecb9468 irqchip/gic: Correct declaration of *percpu_base pointer in union gic_base
    4a31c018bfe4 Bluetooth: hci_core: Fix sleeping function called from invalid context
    87e93faa370d net: usb: qmi_wwan: add Telit FE910C04 compositions
    1d23d5537103 smb: client: destroy cfid_put_wq on module exit
    52cefcff6a4a ksmbd: set ATTR_CTIME flags when setting mtime
    7023866f161b ksmbd: retry iterate_dir in smb2_query_dir
    1da4ebd8691b bpf: fix potential error return
    83d32ae6895a ARC: bpf: Correct conditional check in 'check_jmp_32'
    4be7ad1f9cc2 ARC: build: Use __force to suppress per-CPU cmpxchg warnings
    600340ed717c ARC: build: disallow invalid PAE40 + 4K page config
    5fae14431614 ASoC: audio-graph-card: Call of_node_put() on correct node
    4b1ccdfe589e spi: spi-cadence-qspi: Disable STIG mode for Altera SoCFPGA.
    d49362b059f2 sound: usb: format: don't warn that raw DSD is unsupported
    03c446634f3f sound: usb: enable DSD output for ddHiFi TC44C
    1c643c600407 ALSA: hda/realtek: Add new alc2xx-fixup-headset-mic model
    45f502192bfc ALSA: hda/ca0132: Use standard HD-audio quirk matching helpers
    d77a3a99b53d btrfs: flush delalloc workers queue before stopping cleaner kthread during unmount
    bd51e0d7a255 btrfs: handle bio_split() errors
    d867cee0f30a ALSA: hda/realtek - Add support for ASUS Zen AIO 27 Z272SD_A272SD audio
    5b67d909ac5e ALSA: hda: cs35l56: Remove calls to cs35l56_force_sync_asp1_registers_from_cache()
    de39f7295395 drm/amdkfd: Correct the migration DMA map direction
    4e9ad557e52d drm/amdgpu: use sjt mec fw on gfx943 for sriov
    6ec6025cc666 wifi: mac80211: wake the queues in case of failure in resume
    ae07daf440d3 wifi: cfg80211: clear link ID from bitmap during link delete after clean up
    36b739637d70 wifi: mac80211: fix mbss changed flags corruption on 32 bit systems
    65e282457704 perf/x86/intel: Add Arrow Lake U support
    93d7d212c6ea btrfs: allow swap activation to be interruptible
    4ac8e8bf70b4 net: ti: icssg-prueth: Fix clearing of IEP_CMP_CFG registers during iep_init
    771ab379e87d net: ti: icssg-prueth: Fix firmware load sequence.
    3d1b63cf468e ila: serialize calls to nf_register_net_hooks()
    cd8488fdc711 af_packet: fix vlan_get_protocol_dgram() vs MSG_PEEK
    b65292a548d8 af_packet: fix vlan_get_tci() vs MSG_PEEK
    a0c12973edf7 net: wwan: iosm: Properly check for valid exec stage in ipc_mmio_init()
    3257813a3ae7 net: restrict SO_REUSEPORT to inet sockets
    d3b7a9c7597b net: reenable NETIF_F_IPV6_CSUM offload for BIG TCP packets
    05670a893565 net: sfc: Correct key_len for efx_tc_ct_zone_ht_params
    127c28006716 io_uring/net: always initialize kmsg->msg.msg_inq upfront
    64798d02430b RDMA/bnxt_re: Fix error recovery sequence
    6ffb5c188519 RDMA/rtrs: Ensure 'ib_sge list' is accessible
    e6e6882a1590 net: wwan: t7xx: Fix FSM command timeout issue
    6dfa451b5302 net: mv643xx_eth: fix an OF node reference leak
    5abb84101c0e eth: bcmsysport: fix call balance of priv->clk handling routines
    b48a058db398 ALSA: usb-audio: US16x08: Initialize array before use
    86645d8d062a nvmet: Don't overflow subsysnqn
    1ee54d58d58b net: llc: reset skb->transport_header
    d24cbc43cc7b netfilter: nft_set_hash: unaligned atomic read on struct nft_set_ext
    0e394dd11e95 workqueue: add printf attribute to __alloc_workqueue()
    a0360b9b5f32 drm/i915/dg1: Fix power gate sequence.
    6bf65f39701e drm/i915/cx0_phy: Fix C10 pll programming sequence
    9f6f54e6a686 RDMA/rxe: Remove the direct link to net_device
    de85624c623d net/mlx5e: Keep netdev when leave switchdev for devlink set legacy only
    47c78d3fc26e net/mlx5e: Skip restore TC rules for vport rep without loaded flag
    fa9d8c2e77c4 net/mlx5e: macsec: Maintain TX SA from encoding_sa
    dc59321c0b38 net/mlx5: DR, select MSIX vector 0 for completion queue creation
    b710f18252ef net: pse-pd: tps23881: Fix power on/off issue
    3ba7f80d98d4 netrom: check buffer length before accessing it
    965a34d93b0b net: Fix netns for ip_tunnel_init_flow()
    b0b190218c78 net: fix memory leak in tcp_conn_request()
    b8a888f236ec net: stmmac: restructure the error path of stmmac_probe_config_dt()
    924d43bd10a1 drm/xe: Fix fault on fd close after unbind
    fb1543f3ba43 drm/xe/pf: Use correct function to check LMEM provisioning
    3ff51effd1cc drm/xe: Revert some changes that break a mesa debug tool
    77a807ae2ba5 RDMA/hns: Fix missing flush CQE for DWQE
    ed9466d707fa RDMA/hns: Fix warning storm caused by invalid input in IO path
    a448c775f0ae RDMA/hns: Fix accessing invalid dip_ctx during destroying QP
    c1bc7a427e7c RDMA/hns: Fix mapping error of zero-hop WQE buffer
    b983a01f58fb netdev-genl: avoid empty messages in napi get
    74f9e8f2e831 selftests: net: local_termination: require mausezahn
    e5e2ba1b575a net: dsa: microchip: Fix LAN937X set_ageing_time function
    b3989de20041 net: dsa: microchip: Fix KSZ9477 set_ageing_time function
    929e70e8dbee drm/bridge: adv7511_audio: Update Audio InfoFrame properly
    45ece2a4e3f2 net: phy: micrel: Dynamically control external clock of KSZ PHY
    39480e1271da RDMA/bnxt_re: Fix the locking while accessing the QP table
    003e82749a24 RDMA/bnxt_re: Fix MSN table size for variable wqe mode
    2c73cd31f917 RDMA/bnxt_re: Add send queue size check for variable wqe
    50a85b3bd28d RDMA/bnxt_re: Disable use of reserved wqes
    9b3b83d2f7f4 RDMA/bnxt_re: Fix max_qp_wrs reported
    4eafeb4f021c RDMA/siw: Remove direct link to net_device
    a36820c88865 RDMA/nldev: Set error code in rdma_nl_notify_event
    e61d2495f781 RDMA/bnxt_re: Fix reporting hw_ver in query_device
    75c5dba99e20 RDMA/bnxt_re: Add check for path mtu in modify_qp
    4f6fd7f2dfef RDMA/bnxt_re: Fix the check for 9060 condition
    a337f7b6b2eb wifi: iwlwifi: fix CRF name for Bz
    bfe52e8019ef nvme-pci: 512 byte aligned dma pool segment quirk
    48bd8e9d78c5 RDMA/core: Fix ENODEV error for iWARP test over vlan
    1051250e51cc RDMA/bnxt_re: Avoid sending the modify QP workaround for latest adapters
    a3e0709d462e RDMA/bnxt_re: Avoid initializing the software queue for user queues
    9a479088e0c8 RDMA/bnxt_re: Fix max SGEs for the Work Request
    c1e855a9b95d RDMA/mlx5: Enforce same type port association for multiport RoCE
    00aca33249f7 sched_ext: fix application of sizeof to pointer
    cbe385d9ae48 RDMA/bnxt_re: Remove always true dattr validity check
    b4b77d9b5b0d btrfs: use bio_is_zone_append() in the completion handler
    2cf5d691f849 block: lift bio_is_zone_append to bio.h
    92bd18c74624 tracing: Have process_string() also allow arrays
    cba9d51794ec pmdomain: core: add dummy release function to genpd device
    a45ae8932789 pmdomain: imx: gpcv2: fix an OF node reference leak in imx_gpcv2_probe()
    1595afae01fa mmc: sdhci-msm: fix crypto key eviction
    efefe36c03a7 selinux: ignore unknown extended permissions
    9476e599b445 platform/x86: hp-wmi: mark 8A15 board for timed OMEN thermal profile
    7d43ab99ac60 platform/x86: thinkpad-acpi: Add support for hotkey 0x1401
    063d380ca28e drm/amdgpu: fix backport of commit 73dae652dcac
    2da437336625 platform/x86: mlx-platform: call pci_dev_put() to balance the refcount
    e97df805b938 drm/tilcdc: Set preferred depth
    7160a4379dcc arch/arm64/configs: remove CONFIG_SM_DISPCC_8650
    6d8ac5ebe6e8 aufs6: core
    587abc1b64c4 aufs6: standalone
    1af41d30ef42 aufs6: mmap
    6ee2464d2e9d aufs6: base
    103b676505f7 aufs6: kbuild
    67281562943f qemux86: add configuration symbol to select values
    73f315ca0823 sched/isolation: really align nohz_full with rcu_nocbs
    1e4e7f8ab622 clear_warn_once: add a clear_warn_once= boot parameter
    918e7a825e8b clear_warn_once: bind a timer to written reset value
    f533f87c3758 clear_warn_once: expand debugfs to include read support
    f149ca27cba9 tools: Remove some options from CLANG_CROSS_FLAGS
    e633abe9c44e libbpf: Fix build warning on ref_ctr_off
    ec0916a4cfc1 perf: perf can not parser the backtrace of app in the 32bit system and 64bit kernel.
    03721ceb5626 perf: x86-32: explicitly include <errno.h>
    4c36c5295bb0 perf: mips64: Convert __u64 to unsigned long long
    b0200449610d perf: fix bench numa compilation
    aff0940b2212 perf: add SLANG_INC for slang.h
    ef912018d28c perf: add sgidefs.h to for mips builds
    d8860f858b87 perf: change --root to --prefix for python install
    dc38a0eee6e5 perf: add 'libperl not found' warning
    6ed51f8786da perf: force include of <stdbool.h>
    c538d4c4ac65 fat: Replace prandom_u32() with get_random_u32()
    63d94846f0c5 fat: don't use obsolete random32 call in namei_vfat
    7816667451ef FAT: Added FAT_NO_83NAME
    f81dbd60f0d5 FAT: Add CONFIG_VFAT_NO_CREATE_WITH_LONGNAMES option
    771cdefba44b FAT: Add CONFIG_VFAT_FS_NO_DUALNAMES option
    a24784fd8f88 yaffs2: update to v6.12 folio changes
    d0a48fd46db8 yaffs2: adapt to v6.10 i_time changes
    d097e4d4115a yaffs: fix mtime/itime field access
    4411e0d49fe3 yaffs2: update VFS ctime operations to 6.6+
    1b6619086e8b yaffs2: v6.5 fixups
    25b261ee3c54 yaffs2: Fix miscalculation of devname buffer length
    5c07936a5d1c yaffs2: convert user_namespace to mnt_idmap
    55986a1284b3 yaffs2: replace bdevname call with sprintf
    6f5508f8db8f yaffs2: convert read_page -> readfolio
    fd179a5df5d5 yaffs: replace IS_ERR with IS_ERR_OR_NULL to check both ERR and NULL
    c9a620dacdd1 yaffs: fix -Wstringop-overread compile warning in yaffs_fix_null_name
    78588208ed17 yaffs2: v5.12+ build fixups (not runtime tested)
    8d2dddba272c yaffs: include blkdev.h
    8c1ca9ef9712 yaffs: Fix build failure by handling inode i_version with proper atomic API
    27005cbac2ed yaffs2: v5.6 build fixups
    668211c9f9b7 yaffs2: fix memory leak when /proc/yaffs is read
    285f911dcc1c yaffs: add strict check when call yaffs_internal_read_super
    ffc2ed489ccf yaffs: repair yaffs_get_mtd_device
    6dce4b70a5e3 yaffs: Fix build failure by handling inode i_version with proper atomic API
    19f283abc5d1 yaffs2: fix memory leak in mount/umount
    04e84672b571 yaffs: Avoid setting any ACL releated xattr
    4f221d6a32e2 Yaffs:check oob size before auto selecting Yaffs1
    81f36004e56b fs: yaffs2: replace CURRENT_TIME by other appropriate apis
    26d7a3dd0054 yaffs2: adjust to proper location of MS_RDONLY
    a7016eac4540 yaffs2: import git revision b4ce1bb (jan, 2020)
    feb240bbb91e initramfs: allow an optional wrapper script around initramfs generation
    874746eaa341 drivers: gpu: drm: msm: registers: improve reproducibility
    1d42508faee8 tools: use basename to identify file in gen-mach-types
    4b055eca593d iwlwifi: select MAC80211_LEDS conditionally
    97e20e275ac0 net/dccp: make it depend on CONFIG_BROKEN (CVE-2020-16119)
    6dec58319165 defconfigs: drop obselete options
    a416ccb5b6c9 linux-yocto: Handle /bin/awk issues
    7efe8a1e5158 uvesafb: provide option to specify timeout for task completion
    78d10ae07eca uvesafb: print error message when task timeout occurs
    80473b7eb8ca compiler.h: Undef before redefining __attribute_const__
    ddeff2f1a9a7 vmware: include jiffies.h
    3dcdda8912b4 Resolve jiffies wrapping about arp
    3b1507db6735 nfs: Allow default io size to be configured.
    c2fedad05f77 check console device file on fs when booting
    208d6fbada3f mount_root: clarify error messages for when no rootfs found
    dbe9454c8ea0 mconf: fix output of cflags and libraries
    7c7b224f5cce menuconfig,mconf-cfg: Allow specification of ncurses location
    b6c189c81397 modpost: mask trivial warnings
    a5cc21325ba9 kbuild: exclude meta directory from distclean processing
    361ec143c23f powerpc: serialize image targets
    605e6ccb304c arm: serialize build targets
    e94b04fcb7d2 mtd_blkdevs: add mtd_table_mutex lock back to blktrans_{open, release} to avoid race condition
    44cc7f69a0a0 cpu/amd: inhibit SMP check for qemux86
    a08cb65331e6 x86_64_defconfig: Fix warnings
    8ad332ef777b mips: make current_cpu_data preempt safe
    754f05ddce3f mips: vdso: fix 'jalr $t9' crash in vdso code
    325ff78ff44d mips: Kconfig: add QEMUMIPS64 option
    99ae0eadcf11 4kc cache tlb hazard: tlbp cache coherency
    c6894c66a534 malta uhci quirks: make allowance for slow 4k(e)c
    8b52c01f3294 arm64: defconfig: remove CONFIG_IPQ_APSS_5018
    16c7629f035e drm/fb-helper: move zeroing code to drm_fb_helper_fill_var
    6b60c874cbb0 arm64: defconfig: cleanup config options
    8e44673ecd89 vexpress: Pass LOADADDR to Makefile
    f34e6805aad5 arm: ARM EABI socketcall
    94dec9b88de4 ARM: LPAE: Invalidate the TLB for module addresses during translation fault

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoqemu/machine: rename QEMU_EXTRAOPTIONS for consistency
Ross Burton [Fri, 10 Jan 2025 13:01:15 +0000 (13:01 +0000)] 
qemu/machine: rename QEMU_EXTRAOPTIONS for consistency

The per-tune qemu options variable is QEMU_EXTRAOPTIONS_${TUNE_PKGARCH},
but this doesn't follow the pattern of all of the other tune-specific
variables in the machine configuration which is VARIABLE:tune-[name].

Rename QEMU_EXTRAOPTIONS_${TUNE_PKGARCH} to
QEMU_EXTRAOPTIONS:tune-${TUNE_PKGARCH} for consistency.

Note that this will mean that BSPs need to update any assignments of
this variable.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoclasses/qemu: move QEMU_EXTRAOPTIONS for PPC to the relevant tunes
Ross Burton [Fri, 10 Jan 2025 13:01:14 +0000 (13:01 +0000)] 
classes/qemu: move QEMU_EXTRAOPTIONS for PPC to the relevant tunes

Every other architecture has the QEMU_EXTRAOPTIONS assignments in the
tune files, so move the PPC ones too.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoclasses/qemu: use tune to select QEMU_EXTRAOPTIONS, not package architecture
Ross Burton [Fri, 10 Jan 2025 13:01:13 +0000 (13:01 +0000)] 
classes/qemu: use tune to select QEMU_EXTRAOPTIONS, not package architecture

Using the package architecture to select the right qemu options to pass
to qemu-user is incorrect, and fails for recipes that set PACKAGE_ARCH
to MACHINE_ARCH (as the qemuppc workarounds suggest) because there are
not typically any options set for the machine name.

Solve this by using TUNE_PKGARCH instead: for the majority of recipes
this is the same value, but for machine-specific recipes it remains the
same instead of changing to the machine name.

This means we can remove the qemuppc workarounds, as they're obsolete.

Also update the gcc-testsuite recipe which uses the same pattern to use
TUNE_PKGARCH, and generalise the else codepath to avoid needing to
update the list of architectures.

[ YOCTO #15647 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agoclasses/nativesdk: also override TUNE_PKGARCH
Ross Burton [Fri, 10 Jan 2025 18:03:28 +0000 (18:03 +0000)] 
classes/nativesdk: also override TUNE_PKGARCH

The nativesdk class overrides PACKAGE_ARCH and unsets TUNE_FEATURES, but
as recipes might want to look at TUNE_PKGARCH too (for example, when
setting QEMU_EXTRAOPTIONS) we should also override that variable.

Otherwise, a nativesdk recipe will have the TUNE_PKGARCH of the target,
which leads to errors (eg passing mips arguments to an arm qemu).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agorsync: clean up configure/configure.sh fiddling
Ross Burton [Wed, 8 Jan 2025 15:46:33 +0000 (15:46 +0000)] 
rsync: clean up configure/configure.sh fiddling

The upstream Makefiles tell autoconf to write the generated script to
configure.sh instead of the idiomatic configure.  We now remove all of
the Makefile rules that refer to configure.sh (makefile-no-rebuild.patch)
but the recipe configure changes remained, so remove them too and delete the
existing configure.sh to avoid confusion for anyone looking at the build treee.

Also add a comment explaining why autotools-brokensep is used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agopython3-psutil: Fix native dependencies
Richard Purdie [Tue, 7 Jan 2025 13:18:24 +0000 (13:18 +0000)] 
python3-psutil: Fix native dependencies

The tests package has many dependencies which don't BBCLASSEXTEND to native
well. Remove these as we're not interested in the tests in the native case anyway.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 months agolibgit2: update 1.8.4 -> 1.9.0
Alexander Kanavin [Wed, 8 Jan 2025 08:42:18 +0000 (09:42 +0100)] 
libgit2: update 1.8.4 -> 1.9.0

Make the cmake files reproducible and rather than hardcode-installed into /usr/lib.

[RP: Tweak commit message]
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>