]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 weeks agobase.bbclass: drop compatibility moving of sources into workdir
Alexander Kanavin [Mon, 16 Jun 2025 09:49:59 +0000 (11:49 +0200)] 
base.bbclass: drop compatibility moving of sources into workdir

Potentially there could be a grace period for fixing recipes (with warnings, etc),
on the other hand, changes to git unpacking destination would already
break various layers, so we might as well make this a hard qa error and drop
the magic at the same time.

I commit to sending fixes for layers included in autobuilder testing
(meta-oe/arm/intel/virt/agl/aws/mingw/etc).

SOURCE_BASEDIR is at the same time adjusted to be calculated relative
to UNPACKDIR (previously it only worked if S was set to
WORKDIR/something/otherthing, and that is no longer working). It is also
no longer removed from the filesystem, as content of unpackdir is managed elsewhere.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agoinsane/do_qa_unpack: add checks that ensure S is set correctly
Alexander Kanavin [Mon, 16 Jun 2025 09:49:58 +0000 (11:49 +0200)] 
insane/do_qa_unpack: add checks that ensure S is set correctly

The checks are fatal, as this avoids rather more cryptic errors further
down the build. Example:

ERROR: gnu-config-native-20240823+git-r0 do_unpack: Recipes that set S = "${WORKDIR}/git" or S = "${UNPACKDIR}/git" should remove that assignment, as S set by bitbake.conf in oe-core now works.
ERROR: perlcross-native-1.6.2-r0 do_unpack: S should be set relative to UNPACKDIR, e.g. replace WORKDIR with UNPACKDIR in "S = ${WORKDIR}/perl-cross-${PV}"

Dropping the S = ${WORKDIR}/git assignment (addressing the first error) can be done
with a single sed command when there is a lot of recipes:

sed -i "/^S = \"\${WORKDIR}\/git\"/d" `find . -name *.bb -o -name *.inc -o -name *.bbclass`

Replacing WORKDIR with UNPACKDIR can be done similarly, but should be done after
the removals:

sed -i "s/^S = \"\${WORKDIR}\//S = \"\${UNPACKDIR}\//g" `find . -name *.bb -o -name *.inc -o -name *.bbclass`

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agorecipetool/devtool: calculate source paths relative to UNPACKDIR
Alexander Kanavin [Mon, 16 Jun 2025 09:49:57 +0000 (11:49 +0200)] 
recipetool/devtool: calculate source paths relative to UNPACKDIR

Now that recipes default to S in UNPACKDIR, recipetool and devtool should
do the same.

There was some discussion about changing devtool to simply setting
UNPACKDIR via bbappend to a workspace and running unpack task directly;
currently it has a bunch of convoluted path calculations, substitutions,
moving source trees around and and special casing (devtool-source.bbclass
in particular is an unpleasant hack).

This should definitely be done; but right now we can simply tweak existing
code which at least doesn't make it worse.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agometa: set S from UNPACKDIR in recipes that use only local files
Alexander Kanavin [Mon, 16 Jun 2025 09:49:56 +0000 (11:49 +0200)] 
meta: set S from UNPACKDIR in recipes that use only local files

There is no need to have two assignments; also setting S from
UNPACKDIR (and not vice versa) is more logical as unpack
task comes first, and tasks that come after unpack use S to access
unpack results.

Also adjust reference test data in selftest/recipeutils to reflect changes in test recipes.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agometa: set S to be in UNPACKDIR in recipes that explicitly set S
Alexander Kanavin [Mon, 16 Jun 2025 09:49:55 +0000 (11:49 +0200)] 
meta: set S to be in UNPACKDIR in recipes that explicitly set S

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agogcc/clang: set S to be in UNPACKDIR
Alexander Kanavin [Mon, 16 Jun 2025 09:49:54 +0000 (11:49 +0200)] 
gcc/clang: set S to be in UNPACKDIR

This and some further commits allows removing the 'backwards
compatibility magic' in do_unpack that moves unpacked sources
to where S is set to.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agobitbake.conf: set S to be in UNPACKDIR rather than WORKDIR
Alexander Kanavin [Mon, 16 Jun 2025 09:49:53 +0000 (11:49 +0200)] 
bitbake.conf: set S to be in UNPACKDIR rather than WORKDIR

This transitions most of the recipes to have their sources
in UNPACKDIR, which over time will allow more simple and logical
source code handling in various pieces of the Yocto project.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agobitbake.conf: set UNPACKDIR to just 'sources' and not 'sources-unpack'
Alexander Kanavin [Mon, 16 Jun 2025 09:49:52 +0000 (11:49 +0200)] 
bitbake.conf: set UNPACKDIR to just 'sources' and not 'sources-unpack'

This is shorter and doesn't include the unnecessary task name, just the
result of it: source trees and files.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agometa: remove S in recipes that fetch from git via setting BB_GIT_DEFAULT_DESTSUFFIX
Alexander Kanavin [Mon, 16 Jun 2025 09:49:51 +0000 (11:49 +0200)] 
meta: remove S in recipes that fetch from git via setting BB_GIT_DEFAULT_DESTSUFFIX

Removing all the S = ${WORKDIR}/git assignments works because BB_GIT_DEFAULT_DESTSUFFIX
is set to match S from bitbake.conf (which itself is set to match typical tarball
releases).

A few recipes are setting S to a sub-directory of the git tree and need
to be adjusted accordingly.

bzip2 recipe is fetching a tarball and separately cloning tests;
adjust the recipe to put the latter into 'bzip2-tests', instead of 'git'.

devupstream.bbclass no longer needs to rewrite S, and is adjusted accordingly.

Adjust scripts/lib/recipetool/append.py to not hardcode 'git' as unpack
destination.

Adjust kernel-yocto.bbclass to use the git unpack variable instead
of hardcoding 'git' (there's also removal of repetition of
string constants and a correction of workdir/unpackdir mismatch in
one of the if-else branches).

Ensure build-appliance-image recipe does not use 'git' as checkout directory for
poky repo, but rather explicitly name it 'poky'.

Ensure reproducible.py code that looks for git repositories does not
hardcode 'git' but uses the destination set by BB_GIT_DEFAULT_DESTSUFFIX.

Ensure recipetool does not write out unneeded S settings into newly
created recipes that fetch from git.

Adjust selftest to not hardcode 'git' as unpack directory.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolib/bbconfigbuild/configfragments: add support for listing and enabling built-in...
Alexander Kanavin [Wed, 18 Jun 2025 09:21:02 +0000 (11:21 +0200)] 
lib/bbconfigbuild/configfragments: add support for listing and enabling built-in fragments

Sample output:

$ bitbake-config-build enable-fragment machine/qemuarm
Fragment machine/qemuarm added to /srv/storage/alex/yocto/build-64-alt/conf/auto.conf.

$ bitbake-config-build list-fragments
Available built-in fragments:
machine/... Sets MACHINE = ...
distro/... Sets DISTRO = ...

Enabled built-in fragments:
machine/qemuarm Sets MACHINE = "qemuarm"

... (standard on-disk fragments output follows)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agobitbake.conf: enable built-in fragments for MACHINE and DISTRO
Alexander Kanavin [Wed, 18 Jun 2025 09:21:01 +0000 (11:21 +0200)] 
bitbake.conf: enable built-in fragments for MACHINE and DISTRO

Please see the patch for bitbake for rationale. With this
setting in place, it's possible to set

OE_FRAGMENTS += "distro/poky machine/qemuarm"

and bitbake will interpret that as

DISTRO = "poky"
MACHINE = "qemuarm"

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooeqa/utils/command: fast-path get_bb_var()
Ross Burton [Thu, 19 Jun 2025 13:20:42 +0000 (14:20 +0100)] 
oeqa/utils/command: fast-path get_bb_var()

get_bb_var() currently end up calling 'bitbake -e' and parsing the whole
output. However if postconfig isn't set then we can speed this up by
just calling bitbake-getvar.

The complication with failing bitbake-getvar calls is because we need to
be careful to return None instead of the empty string when the variable
doesn't exist.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agorust-target-config.bbclass: Update for new riscv TUNE_FEATURES
Mark Hatle [Tue, 17 Jun 2025 23:39:44 +0000 (18:39 -0500)] 
rust-target-config.bbclass: Update for new riscv TUNE_FEATURES

Add the new TUNE_FEATURES to the 'features:' list, based on matching output
with:

   rustc --target=riscv32i-unknown-none-elf -Ctarget-feature=help

Use the TUNE_RISCV_ABI instead of guessing for the ABI.

Pass the arch "as-is", since it should now be riscv32 or riscv64.

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agoriscv tunes: ISA Implementation of RISC-V tune features
Mark Hatle [Tue, 17 Jun 2025 23:39:38 +0000 (18:39 -0500)] 
riscv tunes: ISA Implementation of RISC-V tune features

This implements the following base ISAs:

* rv32i, rv64i
* rv32e, rv64i

The following ABIs:
* ilp32, ilp32e, ilp32f, ilp32d
* lp64, lp64e, lp64f, lp64d

The following ISA extension are also implemented:
* M - Integer Multiplication and Division Extension
* A - Atomic Memory Extension
* F - Single-Precision Floating-Point Extension
* D - Double-Precision Floating-Point Extension
* C - Compressed Extension
* B - Bit Manipulation Extension (implies Zba, Zbb, Zbs)
* V - Vector Operations Extension
* Zicsr - Control and Status Register Access Extension
* Zifencei - Instruction-Fetch Fence Extension
* Zba - Address bit manipulation extension
* Zbb - Basic bit manipulation extension
* Zbc - Carry-less multiplication extension
* Zbs - Single-bit manipulation extension
* Zicbom - Cache-block management extension

The existing processors tunes are preserved:
* riscv64 (rv64gc)
* riscv32 (rv32gc)
* riscv64nf (rv64imac_zicsr_zifencei)
* riscv32nf (rv32imac_zicsr_zifencei)
* riscv64nc (rv64imafd_zicsr_zifencei)

Previously defined feature 'big-endian' has been removed as it was not used.

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agogo: set status of CVE-2024-3566
Peter Marko [Thu, 19 Jun 2025 16:52:10 +0000 (18:52 +0200)] 
go: set status of CVE-2024-3566

NVD ([1]) tracks this as:
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Running on/with
  cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*

Yocto cve-check ignores the "Running on/with", so it needs to be ignored
explicitly.

[1] https://nvd.nist.gov/vuln/detail/CVE-2024-3566

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-pytest: upgrade 8.3.5 -> 8.4.1
Trevor Gamblin [Wed, 18 Jun 2025 13:59:33 +0000 (09:59 -0400)] 
python3-pytest: upgrade 8.3.5 -> 8.4.1

Changelog for 8.4.0: https://docs.pytest.org/en/stable/changelog.html#pytest-8-4-0-2025-06-02

Add colorama (moved to oe-core from meta-python) and pygments to
RDEPENDS.

Note that 8.4.0 accidentally removed pytest.PytestReturnNotNoneWarning,
which seems to have broken some tests (e.g. python3-pytz). See:
https://github.com/pytest-dev/pytest/releases/tag/8.4.1

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agomaintainers.inc: sort Python recipes alphabetically
Trevor Gamblin [Tue, 17 Jun 2025 15:53:39 +0000 (11:53 -0400)] 
maintainers.inc: sort Python recipes alphabetically

There are a small number of these that are out of place, so re-sort the
entire list to clean it up.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3: upgrade 3.13.4 -> 3.13.5
Trevor Gamblin [Tue, 17 Jun 2025 15:53:37 +0000 (11:53 -0400)] 
python3: upgrade 3.13.4 -> 3.13.5

Changelog: https://docs.python.org/3/whatsnew/changelog.html#python-3-13-5-final

ptests look OK:

|443 tests OK.
|
|Total duration: 2 min 43 sec
|Total tests: run=44,050 skipped=2,309
|Total test files: run=471/480 skipped=28 resource_denied=9
|Result: SUCCESS
|DURATION: 164
|END: /usr/lib/python3/ptest
|2025-06-17T14:05
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0

Reproducibility OK:

|2025-06-17 10:34:28,071 - oe-selftest - INFO -  ... ok
|2025-06-17 10:35:04,539 - oe-selftest - INFO - ----------------------------------------------------------------------
|2025-06-17 10:35:04,539 - oe-selftest - INFO - Ran 1 test in 1429.952s
|2025-06-17 10:35:04,539 - oe-selftest - INFO - OK
|2025-06-17 10:35:08,924 - oe-selftest - INFO - RESULTS:
|2025-06-17 10:35:08,924 - oe-selftest - INFO - RESULTS - reproducible.ReproducibleTests.test_reproducible_builds: PASSED (1393.34s)
|2025-06-17 10:35:08,925 - oe-selftest - INFO - SUMMARY:
|2025-06-17 10:35:08,925 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 1429.952s
|2025-06-17 10:35:08,925 - 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: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-setuptools-scm: upgrade 8.2.1 -> 8.3.1
Trevor Gamblin [Tue, 17 Jun 2025 15:53:36 +0000 (11:53 -0400)] 
python3-setuptools-scm: upgrade 8.2.1 -> 8.3.1

Changelog: https://github.com/pypa/setuptools-scm/compare/v8.3.0...v8.3.1

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-colorama: add recipe
Trevor Gamblin [Tue, 17 Jun 2025 15:53:35 +0000 (11:53 -0400)] 
python3-colorama: add recipe

Add existing recipe from meta-python, since pytest lists it as a
dependency. This also puts it in maintainers.inc with myself as
maintainer.

[RP: Switch to use hatching directly]
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooeqa/selftest: add new test for toolchain switching
Ross Burton [Thu, 19 Jun 2025 13:20:45 +0000 (14:20 +0100)] 
oeqa/selftest: add new test for toolchain switching

Add a basic test for the toolchain switching code: set the
toolchain to GCC by default but Clang for a specific recipe, and verify
that two recipes are built with the expected compiler.

This works because before we strip the installed binaries there is a
.comment segment that contains the list of toolchains used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooeqa/selftest/esdk: remove postconfig argument
Ross Burton [Thu, 19 Jun 2025 13:20:44 +0000 (14:20 +0100)] 
oeqa/selftest/esdk: remove postconfig argument

Discovered when looking for users of get_bb_var()'s postconfig argument,
this wrapper around runCmd() has a postconfig argument that has odd
behaviour: it _appends_ the new configuration to local.conf instead of
having them used for this specific run (unlike the other functions in
commands.py)

None of the eSDK tests use this functionality, so remove it. Future test
cases that need to write further configuration should do so directly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agoscripts/test-remote-image: remove useless postconfig arguments
Ross Burton [Thu, 19 Jun 2025 13:20:43 +0000 (14:20 +0100)] 
scripts/test-remote-image: remove useless postconfig arguments

I can't see a reason for this script to need to use postconfig files
to bounce a variable assignment through another, so remove them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agocmake: Correctly handle cost data of tests with arbitrary chars in name
Moritz Haase [Tue, 17 Jun 2025 09:24:56 +0000 (11:24 +0200)] 
cmake: Correctly handle cost data of tests with arbitrary chars in name

ctest automatically optimizes the order of (parallel) test execution based on
historic test case runtime via the COST property (see [0]), which can have a
significant impact on overall test run times. Sadly this feature is broken in
CMake < 4.0.0 for test cases that have spaces in their name (see [1]).

This commit backports the upstream fix. As repeated test runs are expected to
mainly take place inside the SDK, the patch is only applied to 'nativesdk'
builds.

[0]: https://cmake.org/cmake/help/latest/prop_test/COST.html
[1]: https://gitlab.kitware.com/cmake/cmake/-/issues/26594

Reported-By: John Drouhard <john@drouhard.dev>
Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agodropbear: add xauth runtime recommends dependency on x11 DISTRO_FEATURE
Andrej Valek [Wed, 18 Jun 2025 08:04:39 +0000 (10:04 +0200)] 
dropbear: add xauth runtime recommends dependency on x11 DISTRO_FEATURE

Change enable-x11-forwarding PACKAGECONFIG to x11, while we can rely
directly on X11 DISTRO_FEATURE. Previously when enable-x11-forwarding was
used, the XAUTH_COMMAND failed due to missing xauth. So add xauth to
runtime recommends dependency and enable this behavior as default.

Signed-off-by: Andrej Valek <andrej.v@skyrain.eu>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agogst-examples: correct upstream version check
Alexander Kanavin [Wed, 18 Jun 2025 08:56:53 +0000 (10:56 +0200)] 
gst-examples: correct upstream version check

If start-of-line is not enforced, then bogus tag 'gstreamer-sharp-1.13.0.1' would
match as 13.0.1.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe-selftest: fitimage: Add test for signing U-Boot FIT image without SPL
Jamin Lin [Tue, 17 Jun 2025 08:10:52 +0000 (16:10 +0800)] 
oe-selftest: fitimage: Add test for signing U-Boot FIT image without SPL

This adds a new selftest case `test_sign_uboot_fit_image_without_spl` to verify
that the build can correctly generate and sign a U-Boot FIT image in a scenario
where no SPL is used.

Background:
- Some boards build only the U-Boot proper FIT image and do not require an SPL.
- The signing flow must handle this case gracefully: generate the ITS, sign
  the FIT image, and skip signing/injecting a key into the SPL DTB.

What this test does:
1) Enables `UBOOT_FITIMAGE_ENABLE` and `SPL_SIGN_ENABLE` but explicitly sets
   `SPL_DTB_BINARY` to an empty string to indicate that no SPL is present.
2) Verifies that the U-Boot ITS and FIT image are built successfully.
3) Confirms that the generated ITS file includes signature metadata as requested.
4) Dumps the FIT image to ensure that the signature nodes exist.
5) Confirms that the log for `do_uboot_assemble_fitimage` shows the expected
   mkimage/mkimage_sign invocation.

This ensures that signing works correctly even when only the U-Boot proper is built,
which matches real-world configurations that do not require an SPL.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agouboot-sign.bbclass: Refactor condition checks to use && and || instead of -a and -o
Jamin Lin [Tue, 17 Jun 2025 08:10:51 +0000 (16:10 +0800)] 
uboot-sign.bbclass: Refactor condition checks to use && and || instead of -a and -o

This commit cleans up and modernizes the shell condition expressions in
`uboot-sign.bbclass` to follow best practices for portable and reliable shell usage.

Key changes:
- Replace legacy `[ -a ]` and `[ -o ]` with explicit `[ ] && [ ]` and `[ ] || [ ]`.
  Modern POSIX and busybox sh recommend using `&&` and `||` instead of `-a` and `-o`
  because `-a` and `-o` are less robust and can cause parsing ambiguities in some shells.
- Simplify `concat_dtb()` by moving the DTB existence check to the top and using
  early `return` to avoid deep nesting.
- Remove redundant fallback `else` blocks; use clearer control flow with direct checks.

This improves maintainability, reduces shell syntax pitfalls, and aligns with
current shell scripting best practices.

References:
- POSIX recommends avoiding `-a` and `-o` in `[ ]` and using explicit `&&` and `||`:
  https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agouboot-sign: Support signing U-Boot FIT image without SPL
Jamin Lin [Tue, 17 Jun 2025 08:10:50 +0000 (16:10 +0800)] 
uboot-sign: Support signing U-Boot FIT image without SPL

Previously, the signing flow in "uboot-sign.bbclass" assumed that SPL was always
present and that the FIT signing process must inject the public key into the
SPL DTB. This made it inflexible for use cases where only the U-Boot proper
FIT image is built and signed, with no SPL binary at all.

This change introduces the following adjustments:
- The `SPL_DTB_BINARY` variable can be explicitly set to an empty string
  to indicate that no SPL is present.
- The signing logic checks `SPL_DTB_BINARY` and skips injecting the
  key or verifying the SPL DTB if it is empty.
- The FIT image generation and deployment are always performed if
  `UBOOT_FITIMAGE_ENABLE` is enabled, regardless of the SPL settings.
- The deploy helper now uses a single check on `SPL_DTB_BINARY` to decide
  whether to deploy the signed SPL DTB.

Now the sign step checks if SPL_DTB_BINARY is empty:
If present, it signs the FIT image and injects the public key into the SPL DTB,
then verifies both.
If empty, it only signs the FIT image and generates the ITS with the signature
node, but does not attempt to verify or add the key to a non-existent SPL DTB.

Key Behavior Explained
If SPL_DTB_BINARY is empty, we assume there is no SPL.
If UBOOT_FITIMAGE_ENABLE=1, we always create the FIT image and ITS.
If SPL_SIGN_ENABLE=1, we always sign the FIT image, but only inject the key into
the SPL DTB if it exists.

Example usage:
  UBOOT_FITIMAGE_ENABLE = "1"
  SPL_SIGN_ENABLE = "1"
  SPL_DTB_BINARY = ""

This means:
  - Generate and sign the FIT image.
  - Do not attempt to sign or deploy an SPL DTB.

This aligns the implementation with real scenarios where some boards do not
require an SPL.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibpng: Add ptest
Poonam Jadhav [Mon, 16 Jun 2025 04:36:57 +0000 (10:06 +0530)] 
libpng: Add ptest

Install libpng test-suite to run it as a ptest.
As the test-suite takes more than 30 seconds to run,
add libpng-ptest to PTESTS_SLOW in ptest-packagelists.inc

Signed-off-by: Poonam Jadhav <poonam.jadhav@kpit.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agoimprove_kernel_cve_report: add script for postprocesing of kernel CVE data
Daniel Turull [Tue, 10 Jun 2025 15:24:43 +0000 (17:24 +0200)] 
improve_kernel_cve_report: add script for postprocesing of kernel CVE data

Adding postprocessing script to process data from linux CNA that includes more accurate metadata and it is updated directly by the source.

Example of enhanced CVE from a report from cve-check:

{
  "id": "CVE-2024-26710",
  "status": "Ignored",
  "link": "https://nvd.nist.gov/vuln/detail/CVE-2024-26710",
  "summary": "In the Linux kernel, the following vulnerability [...]",
  "scorev2": "0.0",
  "scorev3": "5.5",
  "scorev4": "0.0",
  "modified": "2025-03-17T15:36:11.620",
  "vector": "LOCAL",
  "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "detail": "not-applicable-config",
  "description": "Source code not compiled by config. ['arch/powerpc/include/asm/thread_info.h']"
},

And same from a report generated with vex:
{
  "id": "CVE-2024-26710",
  "status": "Ignored",
  "link": "https://nvd.nist.gov/vuln/detail/CVE-2024-26710",
  "detail": "not-applicable-config",
  "description": "Source code not compiled by config. ['arch/powerpc/include/asm/thread_info.h']"
},

For unpatched CVEs, provide more context in the description:
Tested with 6.12.22 kernel
{
  "id": "CVE-2025-39728",
  "status": "Unpatched",
  "link": "https://nvd.nist.gov/vuln/detail/CVE-2025-39728",
  "summary": "In the Linux kernel, the following vulnerability has been [...],
  "scorev2": "0.0",
  "scorev3": "0.0",
  "scorev4": "0.0",
  "modified": "2025-04-21T14:23:45.950",
  "vector": "UNKNOWN",
  "vectorString": "UNKNOWN",
  "detail": "version-in-range",
  "description": "Needs backporting (fixed from 6.12.23)"
},

CC: Peter Marko <peter.marko@siemens.com>
CC: Marta Rybczynska <rybczynska@gmail.com>
Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 18 Jun 2025 13:08:12 +0000 (14:08 +0100)] 
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibcheck: disable subunit support
Ross Burton [Tue, 17 Jun 2025 14:16:48 +0000 (15:16 +0100)] 
libcheck: disable subunit support

We don't have a recipe for subunit in core (or any layer in the layer
index), and unfortunately a bug in the CMakeLists means that the native
build can detect subunit on the host (so host contamination) and only
half-enable it, so the build fails.

Take a patch from upstream's github to add an option for subunit, and
explicitly disable it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibcheck: remove obsolete patch
Ross Burton [Tue, 17 Jun 2025 14:16:47 +0000 (15:16 +0100)] 
libcheck: remove obsolete patch

This patch is specific to the autotools build of libcheck, but we use
CMake now.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agocoreutils: fix CVE-2025-5278
Chen Qi [Mon, 16 Jun 2025 07:59:32 +0000 (15:59 +0800)] 
coreutils: fix CVE-2025-5278

Backport patch to fix CVE-2025-5278.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
8 weeks agospdx: add option to include only compiled sources
Daniel Turull [Tue, 10 Jun 2025 15:24:42 +0000 (17:24 +0200)] 
spdx: add option to include only compiled sources

When SPDX_INCLUDE_COMPILED_SOURCES is enabled, only include the
source code files that are used during compilation.

It uses debugsource information generated during do_package.

This enables an external tool to use the SPDX information to disregard
vulnerabilities that are not compiled.

As example, when used with the default config with linux-yocto, the spdx size is
reduced from 156MB to 61MB.

Tested with bitbake world on oe-core.

CC: Quentin Schulz <quentin.schulz@cherry.de>
CC: Joshua Watt <JPEWhacker@gmail.com>
CC: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
8 weeks agocross/crosssdk: Allow deferring of these classes too
Richard Purdie [Fri, 6 Jun 2025 16:51:23 +0000 (17:51 +0100)] 
cross/crosssdk: Allow deferring of these classes too

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agobitbake.conf: Automatically defer native and nativesdk inherits
Richard Purdie [Fri, 6 Jun 2025 16:45:27 +0000 (17:45 +0100)] 
bitbake.conf: Automatically defer native and nativesdk inherits

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agotoolchain/gcc/clang: Update PREFERRED_PROVIDER to work with multilibs
Richard Purdie [Fri, 6 Jun 2025 13:31:57 +0000 (14:31 +0100)] 
toolchain/gcc/clang: Update PREFERRED_PROVIDER to work with multilibs

As currently written, the PREFERRED_PROVIDER entries don't work with multilib
since they are added after the manipulations by multilib_global at ConfigParsed
time. We therefore need to spell out the configs correctly for multilib.

To avoid variable overwritten warnings from the expansion, we then have to
expand out the nativesdk providers usng class overrides.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agotoolchain: Provide abstraction for recipe specific toolchain selection
Richard Purdie [Fri, 23 May 2025 03:52:35 +0000 (20:52 -0700)] 
toolchain: Provide abstraction for recipe specific toolchain selection

This change implements a toolchain selection mechanism. Selection is
made using a set of variables, primarily PREFERRED_TOOLCHAIN_TARGET which
defaults to gcc.

It uses the familiar name for toolchain e.g. "gcc" which selects GNU
compiler + binutils as default C/C++ toolchain or "clang" which will
use LLVM/Clang Compiler. Layers an add their own toolchain definitions
too.

There are also PREFERRED_TOOLCHAIN_NATIVE and PREFERRED_TOOLCHAIN_SDK
which will ulitmately allow selection of the toolchain used for the
native/cross and nativesdk/crosssdk compilers. This currently isn't
functional but is essential to the patch to ensure things are set
to the existing gcc support in those cases.

Users would most commonly want to set:

PREFERRED_TOOLCHAIN_TARGET ?= "clang"

in local.conf or other distro specific global configuration metadata.

It is also selectable at recipe scope, since not all packages are
buildable with either clang or gcc, a recipe can explicitly require
a given toolchain using the TOOLCAHIN variable, e.g. glibc can not
be built with clang therefore glibc recipe sets:

TOOLCHAIN = "gcc"

The TOOLCHAIN variable is distinct from the user preference so recipes
with specific requirements can be identified. This also allows different
polcies to be be specified for native/SDK cases in the future.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agobase: Add deferred class event handler
Richard Purdie [Fri, 6 Jun 2025 10:46:46 +0000 (11:46 +0100)] 
base: Add deferred class event handler

Use the new deferred class event to set the class overrides earlier.
This improves interaction of the override with PACKAGECONFIG values
that control conditional inherits (such as python support).

This also allows toolchain configuration in an easier and more user
friendly way.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agosanity.conf: Bump bitbake requirement to 2.15.0
Richard Purdie [Mon, 16 Jun 2025 21:25:35 +0000 (22:25 +0100)] 
sanity.conf: Bump bitbake requirement to 2.15.0

This brings in the features we need to toolchain selection.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agowic: Avoid problems with "-" characters in plugin names
Richard Purdie [Fri, 13 Jun 2025 16:20:52 +0000 (17:20 +0100)] 
wic: Avoid problems with "-" characters in plugin names

Remap "-" characters in plugin names to "_" so wic plugins
can be extended using standard python class inheritance.

This change means wic files can be incrementally updated over time
to the correct name rather than breaking everything. Actual plugin
module files will need to be renamed as done in previous patches.

Also remove a double call to get_plugins() which isn't needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agowic: Update after plugin name changes
Richard Purdie [Mon, 26 May 2025 11:56:59 +0000 (12:56 +0100)] 
wic: Update after plugin name changes

Update the plugin names to account for the "-" to "_" plugin name change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agowic: plugins source bootimage/isoimage rename to allow be imported
Anibal Limon [Sat, 23 Mar 2024 19:53:04 +0000 (13:53 -0600)] 
wic: plugins source bootimage/isoimage rename to allow be imported

Python not support importing modules with - so change to _.

Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agowic: pluginbase ensure layer order when load plugins
Anibal Limon [Wed, 11 Jun 2025 15:33:18 +0000 (15:33 +0000)] 
wic: pluginbase ensure layer order when load plugins

To support extensions on wic plugins, the load order needs
to be grauntee matching BBLAYERS variable.

Fix cases when try to import a plugin from another layer,
example of the case to fix,

```
Traceback (most recent call last):
  File "/workspaces/ls/linux/layers/openembedded-core/scripts/wic",line
547, in <module>
    sys.exit(main(sys.argv[1:]))
             ^^^^^^^^^^^^^^^^^^
...
  File "/workspaces/ls/linux/layers/openembedded-core/scripts/lib/wic/
engine.py", line 137, in list_source_plugins
    plugins = PluginMgr.get_plugins('source')
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspaces/ls/linux/layers/openembedded-core/scripts/lib/wic/
pluginbase.py", line 73, in get_plugins
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/workspaces/ls/linux/limonsoftware/bsp/scripts/lib/wic/plugins/
source/bootimg_rpi_autoboot_partition.py", line 1, in <module>
    from wic.plugins.source.bootimg_partition import BootimgPartitionPlugin
ModuleNotFoundError: No module named 'wic.plugins.source.bootimg_partition'
```

Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agowayland-protocols: upgrade 1.44 -> 1.45
Wang Mingyu [Mon, 16 Jun 2025 09:16:42 +0000 (17:16 +0800)] 
wayland-protocols: upgrade 1.44 -> 1.45

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agorepo: upgrade 2.55 -> 2.55.2
Wang Mingyu [Mon, 16 Jun 2025 09:16:41 +0000 (17:16 +0800)] 
repo: upgrade 2.55 -> 2.55.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-typing-extensions: upgrade 4.13.2 -> 4.14.0
Wang Mingyu [Mon, 16 Jun 2025 09:16:40 +0000 (17:16 +0800)] 
python3-typing-extensions: upgrade 4.13.2 -> 4.14.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-ruamel-yaml: upgrade 0.18.12 -> 0.18.14
Wang Mingyu [Mon, 16 Jun 2025 09:16:39 +0000 (17:16 +0800)] 
python3-ruamel-yaml: upgrade 0.18.12 -> 0.18.14

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-pdm: upgrade 2.24.2 -> 2.25.1
Wang Mingyu [Mon, 16 Jun 2025 09:16:36 +0000 (17:16 +0800)] 
python3-pdm: upgrade 2.24.2 -> 2.25.1

Changelog:
=============
- Fix duplicated dependencies added to the lock file when the same dependency with extras is requested.
- Stabilize order of the extras and dependency-groups fields in pylock output.
- Fix Windows 11 install pdm error, which is because of msgpack install failure.
- Change the return type of array_of_inline_tables to list[dict] from list[str]
- Ensure uv resolver to include hash for package files.
- Avoid infinite recursion when reading pyproject.toml with circular file dependencies.
- Support pylock as alternative lock format and make it opt-in by config.
- Search for package metadata in lock file first when reuse strategy is used.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-numpy: upgrade 2.2.6 -> 2.3.0
Wang Mingyu [Mon, 16 Jun 2025 09:16:35 +0000 (17:16 +0800)] 
python3-numpy: upgrade 2.2.6 -> 2.3.0

License-Update: Copyright year updated to 2025

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-hypothesis: upgrade 6.132.0 -> 6.135.9
Wang Mingyu [Mon, 16 Jun 2025 09:16:34 +0000 (17:16 +0800)] 
python3-hypothesis: upgrade 6.132.0 -> 6.135.9

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-dtschema: upgrade 2025.2 -> 2025.6.1
Wang Mingyu [Mon, 16 Jun 2025 09:16:33 +0000 (17:16 +0800)] 
python3-dtschema: upgrade 2025.2 -> 2025.6.1

Changelog:
===========
- Fix a longstanding ordering issue with extracting type information
  from properties which have a reference to another property. 'mac-mode'
  is the one in the Linux kernel.

- Fix a false positive warning about missing
  unevaluatedProperties/additionalProperties

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-cython: upgrade 3.1.1 -> 3.1.2
Wang Mingyu [Mon, 16 Jun 2025 09:16:32 +0000 (17:16 +0800)] 
python3-cython: upgrade 3.1.1 -> 3.1.2

Bugs fixed
----------
* Attribute lookups failed on the "bool" builtin type.
* Type checks on or-ed union types could incorrectly return false.
* Negative list indexing could accidentally wrap around twice in PyPy and the Limited API.
* Iterating over literal sequences with starred (unpacked) items could infer a wrong
  type for the loop variable and fail to assign the values.
* Calls to C functions taking exception types failed to check for a 'None' argument.
* Fused functions had an incorrect "__module__" attribute.
* The type of Cython implemented functions had an incorrect "__module__" attribute.
* Errors while indexing into "bytearray" or "str" in "nogil" sections could crash.
* "bytearray.append()" could silently accept some invalid character numbers.
* The C++11 "<type_traits>" header was included regardless of the C++ version.
* "PyDict_GetItemStringRef()" was accidentally used in older Limited API versions.
* "abort()" was used but not always available in the Limited API.
* Some dependencies were missing from the "depfile".
* Embedded function signatures were not always separated from the existing docstring.
* "numpy.math" was missing from "Cython/Includes/" and could not be cimported.
* Some tests were adapted for NumPy 2.x.
* Some C compiler warnings were fixed.
* "Cython.Build" was not officially exposing the "cythonize" function.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopixman: upgrade 0.46.0 -> 0.46.2
Wang Mingyu [Mon, 16 Jun 2025 09:16:31 +0000 (17:16 +0800)] 
pixman: upgrade 0.46.0 -> 0.46.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agompg123: upgrade 1.32.10 -> 1.33.0
Wang Mingyu [Mon, 16 Jun 2025 09:16:30 +0000 (17:16 +0800)] 
mpg123: upgrade 1.32.10 -> 1.33.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agomeson: upgrade 1.8.1 -> 1.8.2
Wang Mingyu [Mon, 16 Jun 2025 09:16:29 +0000 (17:16 +0800)] 
meson: upgrade 1.8.1 -> 1.8.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolttng-modules: upgrade 2.13.18 -> 2.13.19
Wang Mingyu [Mon, 16 Jun 2025 09:16:28 +0000 (17:16 +0800)] 
lttng-modules: upgrade 2.13.18 -> 2.13.19

Changelog:
===========
* Fix missing override when CONFIG_COMPAT_OLD_SIGACTION is not defined
* fix: writeback: 'balance_dirty_pages' Respect 'CONFIG_CGROUP_WRITEBACK'
* Fix: scsi: RESERVE and RELEASE renamed in Linux v6.15-rc1
* Fix: del_timer[_sync] deleted in linux v6.15-rc1
* Fix: Use 'nonseekable_open' for proc files
* Fix: trace_balance_dirty_pages in Linux v6.14.2
* fix: version constraint for building lttng-probe-9p

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibsolv: upgrade 0.7.32 -> 0.7.33
Wang Mingyu [Mon, 16 Jun 2025 09:16:27 +0000 (17:16 +0800)] 
libsolv: upgrade 0.7.32 -> 0.7.33

Changelog:
===========
- selected bug fixes:
  * improve transaction ordering by allowing more uninst->uninst
    edges
  * implement color filtering when adding update targets
- new features:
  * support orderwithrequires dependencies in susedata.xml

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibsdl2: upgrade 2.32.6 -> 2.32.8
Wang Mingyu [Mon, 16 Jun 2025 09:16:26 +0000 (17:16 +0800)] 
libsdl2: upgrade 2.32.6 -> 2.32.8

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibjpeg-turbo: upgrade 3.1.0 -> 3.1.1
Wang Mingyu [Mon, 16 Jun 2025 09:16:25 +0000 (17:16 +0800)] 
libjpeg-turbo: upgrade 3.1.0 -> 3.1.1

Changelog:
- Hardened the libjpeg API against hypothetical calling applications that may
  erroneously change the value of the 'data_precision' field in
  'jpeg_compress_struct' or 'jpeg_decompress_struct' after calling
  'jpeg_start_compress()' or 'jpeg_start_decompress()'.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibffi: upgrade 3.4.8 -> 3.5.1
Wang Mingyu [Mon, 16 Jun 2025 09:16:24 +0000 (17:16 +0800)] 
libffi: upgrade 3.4.8 -> 3.5.1

License-Update: Copyright year updated to 2025

not-win32.patch
refreshed for 3.5.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibdrm: upgrade 2.4.124 -> 2.4.125
Wang Mingyu [Mon, 16 Jun 2025 09:16:23 +0000 (17:16 +0800)] 
libdrm: upgrade 2.4.124 -> 2.4.125

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agohwdata: upgrade 0.395 -> 0.396
Wang Mingyu [Mon, 16 Jun 2025 09:16:22 +0000 (17:16 +0800)] 
hwdata: upgrade 0.395 -> 0.396

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agogtk4: upgrade 4.18.5 -> 4.18.6
Wang Mingyu [Mon, 16 Jun 2025 09:16:21 +0000 (17:16 +0800)] 
gtk4: upgrade 4.18.5 -> 4.18.6

Bugs fixed:
- Wrong behavior of GdkKeymap on macOS
- cups: NULL-terminate array of choices
- Fix the android build
- icontheme: Load the missing image icon from the theme

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agodiffoscope: upgrade 297 -> 298
Wang Mingyu [Mon, 16 Jun 2025 09:16:20 +0000 (17:16 +0800)] 
diffoscope: upgrade 297 -> 298

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agodebianutils: upgrade 5.22 -> 5.23.1
Wang Mingyu [Mon, 16 Jun 2025 09:16:19 +0000 (17:16 +0800)] 
debianutils: upgrade 5.22 -> 5.23.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibxml2: fix CVE-2025-6021
hongxu [Mon, 16 Jun 2025 05:00:53 +0000 (13:00 +0800)] 
libxml2: fix CVE-2025-6021

According to [1]

A flaw was found in libxml2's xmlBuildQName function, where integer overflows
in buffer size calculations can lead to a stack-based buffer overflow. This
issue can result in memory corruption or a denial of service when processing
crafted input.

Refer debian [2], backport a fix [3] from upstream

[1] https://nvd.nist.gov/vuln/detail/CVE-2025-6021
[2] https://security-tracker.debian.org/tracker/CVE-2025-6021
[3] https://gitlab.gnome.org/GNOME/libxml2/-/commit/acbbeef9f5dcdcc901c5f3fa14d583ef8cfd22f0

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe/license_finder: support extra hashes being passed to find_licenses
Ross Burton [Fri, 13 Jun 2025 13:16:19 +0000 (14:16 +0100)] 
oe/license_finder: support extra hashes being passed to find_licenses

When using the license finder the caller might know some more license
hashes, for example if it is updating existing metadata.

Allow the caller to pass more hashes that can be used when identifying
licenses.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe/license_finder: rewrite license checksum loading, scan more licenses
Ross Burton [Fri, 13 Jun 2025 13:16:18 +0000 (14:16 +0100)] 
oe/license_finder: rewrite license checksum loading, scan more licenses

Rewrite the license checksum generation and loading of CSV files to be
clearer.

This also expands the scan of COMMON_LICENSE_DIR to include LICENSE_PATH,
which can be extended by layers to provide more license texts.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe/license_finder: don't return the "crunched" license text in crunch_license
Ross Burton [Fri, 13 Jun 2025 13:16:17 +0000 (14:16 +0100)] 
oe/license_finder: don't return the "crunched" license text in crunch_license

crunch_license() will perform some basic text manipulation to try and
canonicalise the license texts. It also returns the new license text but
none of the callers use this, and as a slightly mangled version of the
original it has no real purpose.

Remove this return value and clean up the callers.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe/license_finder: remove unused arguments in get_license_md5sums
Ross Burton [Fri, 13 Jun 2025 13:16:16 +0000 (14:16 +0100)] 
oe/license_finder: remove unused arguments in get_license_md5sums

get_license_md5sums() has two optional arguments:

- static_only: if set, don't checksum the licenses in COMMON_LICENSE_DIR
- linenumbers: if set, the CSV file can contain begin/end/md5 values as
  used in LIC_FILES_CHKSUM.

Neither of these are used and complicate the logic, so remove them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe/license_finder: consolidate hash->license maps
Ross Burton [Fri, 13 Jun 2025 13:16:15 +0000 (14:16 +0100)] 
oe/license_finder: consolidate hash->license maps

There are two locations where mappings of checksums to license names
are: the license-hashes.csv file and a hard-coded set of assignments in
the code.

There's no need for two, so remove the assignments and move the hashes
into the CSV file.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe/license_finder: add first_only argument to find_licenses()
Ross Burton [Fri, 13 Jun 2025 13:16:14 +0000 (14:16 +0100)] 
oe/license_finder: add first_only argument to find_licenses()

It may be desired to find only the "top-level" license file instead of
every potential candidate, so add a first_only argument (defaulting to
False to preserve existing behaviour) to return just the first license
found.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe/license_finder: skip .sh files when looking for licenses
Ross Burton [Fri, 13 Jun 2025 13:16:13 +0000 (14:16 +0100)] 
oe/license_finder: skip .sh files when looking for licenses

Shell scripts are not licenses, so skip them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agorecipetool: use oe.license_finder
Ross Burton [Fri, 13 Jun 2025 13:16:12 +0000 (14:16 +0100)] 
recipetool: use oe.license_finder

Delete the now redundant code, and import oe.license_finder instead.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolib/oe/license_finder: extract license finding code from recipetool
Ross Burton [Fri, 13 Jun 2025 13:16:11 +0000 (14:16 +0100)] 
lib/oe/license_finder: extract license finding code from recipetool

This code is 99% identical to the original code in recipetool/create.py,
but with two minor changes:
- The implicit recipetool logger is changed to an explicit logger
- The CSV of license hashes is moved to meta/files/

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agodefault-distrovars: set an empty default for LICENSE_PATH
Ross Burton [Fri, 13 Jun 2025 13:16:10 +0000 (14:16 +0100)] 
default-distrovars: set an empty default for LICENSE_PATH

This variable is a list of paths that contain extra license texts. It
doesn't have a default so can be unset.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe-selftest: fitimage: replace cleansstate with compile -f
Adrian Freihofer [Sat, 14 Jun 2025 15:58:12 +0000 (17:58 +0200)] 
oe-selftest: fitimage: replace cleansstate with compile -f

Avoid using "cleansstate" in tests, as it can remove files from
SSTATE_DIR and disrupt parallel builds on autobuilders. Use
"bitbake kernel-signing-keys-native -c compile -f" to force key
regeneration without affecting shared state.

This issue was introduced in:
oe-selftest: fitimage: cleanup FIT_GENERATE_KEYS
OE-Core rev: 97e58d7c2bc1943f0696fc72984788f459f7f7c4

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agodevtool: ide-sdk code remove twxs.cmake
Adrian Freihofer [Sat, 14 Jun 2025 15:41:34 +0000 (17:41 +0200)] 
devtool: ide-sdk code remove twxs.cmake

Do no longer recommend the twxs.cmake VSCode plugin. There is now a
language server built into the ms-vscode.cmake-tools plugin as well.

>From Release notes 1.20.53
https://marketplace.visualstudio.com/items/ms-vscode.cmake-tools/changelog
Add notification suggesting users to uninstall twxs.cmake now that we
have built-in Language Services. Follow this advice.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agosystemd: upgrade 257.5 -> 257.6
Peter Marko [Fri, 13 Jun 2025 21:46:54 +0000 (23:46 +0200)] 
systemd: upgrade 257.5 -> 257.6

Handles CVE-2025-4598

Rebase patches

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agoscripts/install-buildtools: Update to 5.2.1
Aleksandar Nikolic [Fri, 13 Jun 2025 20:59:33 +0000 (22:59 +0200)] 
scripts/install-buildtools: Update to 5.2.1

Update to the 5.2.1 release of the 5.2.1 series for buildtools

Signed-off-by: Aleksandar Nikolic <aleksandar.nikolic@zeiss.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agooe-selftest: fitimage: fix new parser compatibility
Adrian Freihofer [Sun, 15 Jun 2025 19:16:01 +0000 (21:16 +0200)] 
oe-selftest: fitimage: fix new parser compatibility

Recent parser changes throw a warning if there is no space around the
= operator.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopackagegroup-base: fix override syntax
Adrian Freihofer [Sun, 15 Jun 2025 19:15:35 +0000 (21:15 +0200)] 
packagegroup-base: fix override syntax

Looks like one more left over from the override syntax change.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolib/oe: Move vardepexclude entries alongside functions
Richard Purdie [Thu, 12 Jun 2025 15:46:37 +0000 (16:46 +0100)] 
lib/oe: Move vardepexclude entries alongside functions

Now we have decorators that can do this, move the variable dependencies
exclusions alongside the code that needs them for maintainability.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agoweston: upgrade 14.0.1 -> 14.0.2
Gyorgy Sarvari [Thu, 12 Jun 2025 14:20:34 +0000 (16:20 +0200)] 
weston: upgrade 14.0.1 -> 14.0.2

While at it, also add libpam as a dependency to the vnc pkgconf, to
avoid the following error:

| Run-time dependency pam found: NO (tried pkgconfig and cmake)
|
| ../weston-14.0.2/libweston/meson.build:95:15: ERROR: C shared or static library 'pam' not found

Changelog:
 - frontend: Fix crash in output resize handler
 - libweston: fix bitshift in weston_idalloc_get_id()
 - libweston: fix realloc in weston_idalloc
 - libweston: refactor update_lowest_free_bucket()
 - libweston-desktop: don't try to move child surfaces to not existing layer
 - libweston/input.c: Fix weston crash with the mouse event
 - windowed-output-api.h: Provide ARRAY_LENGH() for windowed-output-api
 - drm: Fix underlay test
 - compositor: Mark pnode accordingly when buffer type is direct
 - compositor: re-order paint node placeholder checks
 - gl-renderer: Take direct-display into consideration
 - shared: fix binding-modifier none
 - vnc: Allow neatvnc in version 0.9.0
 - compositor: Prevent startup crash when hdcp mode is set on display
 - libweston/desktop: Avoid a potential crash on invalid resource
 - libweston/desktop: Don't destroy the xdg_surface

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agoinsane: Fix debug-deps check
Ryan Eatmon [Thu, 12 Jun 2025 18:28:38 +0000 (13:28 -0500)] 
insane: Fix debug-deps check

Fixes bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15901

The cheeck for debug-deps is looking for the mere existence of the
substring "-dbg" inside of the name of an RDEPENDS package, but it should be
an endswith check.  This helps with some eroneous errors in kernel
module names like:

ERROR: linux-xxx do_package_qa: QA Issue: kernel-modules rdepends on kernel-module-g-dbgp-6.12.22-ti [debug-deps]

and

ERROR: QA Issue: kernel-module-mtk-vcodec-dec-6.16.0-rc1-next-20250610-dirty rdepends on kernel-module-mtk-vcodec-dbgfs-6.16.0-rc1-next-20250610-dirty [debug-deps]

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agonet-tools: patch CVE-2025-46836
Peter Marko [Thu, 12 Jun 2025 21:14:03 +0000 (23:14 +0200)] 
net-tools: patch CVE-2025-46836

Backport patch for this CVE and also patch for its regression.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibtheora: disable all 32-bit arm assembler
Ross Burton [Thu, 12 Jun 2025 20:30:01 +0000 (21:30 +0100)] 
libtheora: disable all 32-bit arm assembler

The 32-bit Arm assembler is mostly broken. In 1.1.0 it was never used,
and 1.2.0 tries to enable it and there are a number of different ways it
can fail (some gcc/architecture combinations, and all clang builds).

Until this is fixed upstream, simply disable assembler entirely.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agopython3-requests: upgrade 2.32.3 -> 2.32.4
Jiaying Song [Fri, 13 Jun 2025 02:39:40 +0000 (10:39 +0800)] 
python3-requests: upgrade 2.32.3 -> 2.32.4

Changelog:
https://requests.readthedocs.io/en/latest/community/updates/#release-history

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agomesa: do not build nouveau NVIDIA gallium-llvm driver if not requested
Quentin Schulz [Thu, 12 Jun 2025 12:14:32 +0000 (14:14 +0200)] 
mesa: do not build nouveau NVIDIA gallium-llvm driver if not requested

The Nouveau driver is used for NVIDIA GPUs and thus doesn't really need
to be always enabled when building gallium-llvm drivers.

So let's guard it with a nouveau PACKAGECONFIG.

The only intended change is nouveau not being build on target mesa on
non-x86/i686 machines when building gallium-llvm drivers as I assume
NVIDIA GPUs aren't that common on other CPU architectures (tegra already
bringing in the nouveau driver should handle the NVIDIA SoCs that would
benefit from nouveau driver and thus are not impacted by this change).

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agomesa: do not build r300 AMD gallium-llvm driver if not requested
Quentin Schulz [Thu, 12 Jun 2025 12:14:31 +0000 (14:14 +0200)] 
mesa: do not build r300 AMD gallium-llvm driver if not requested

It doesn't make much sense to always build the r300 AMD gallium LLVM
driver as that's HW-specific.

Instead, let's guard it with the amd PACKAGECONFIG.

This will only disable R300 for target mesa on non-x86/i686 machines
where gallium-llvm PACKAGECONFIG is selected but not amd, otherwise
behavior is left unchanged.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 weeks agolibcheck: use cmake instead of autotools
Markus Volk [Tue, 10 Jun 2025 05:58:10 +0000 (07:58 +0200)] 
libcheck: use cmake instead of autotools

- this fixes a build issue seen with current master-next branch:
| check.texi:1610: warning: node prev pointer for `Testing Signal Handling and Exit Values' is `Selective Running of Tests' but prev is `Selecting Tests Based on Arbitrary Tags' in menu
| check.texi:2051: warning: node prev pointer for `TAP Logging' is `Test Logging' but prev is `XML Logging' in menu
| make[2]: Leaving directory '/home/flk/poky/build/tmp/work/corei7-64-poky-linux/libcheck/0.15.2/build/doc'
| make[2]: *** [Makefile:452: ../../check-0.15.2/doc/check.info] Error 1
| make[1]: *** [Makefile:574: all-recursive] Error 1
| make[1]: Leaving directory '/home/flk/poky/build/tmp/work/corei7-64-poky-linux/libcheck/0.15.2/build'
| make: *** [Makefile:420: all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/flk/poky/build/

- checkmk adds a reproducibility issue. @AWK_PATH@ is  unique, because awk is
  in hosttools. We dont want it that way for target. Use a '-D' assignment to
  fix this (Thanks to Ross.Burton@arm.com).

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
8 weeks agoovmf: fix CVE-2024-38797
Hongxu Jia [Fri, 13 Jun 2025 03:43:17 +0000 (20:43 -0700)] 
ovmf: fix CVE-2024-38797

According to [1]:

EDK2 contains a vulnerability in the HashPeImageByType(). A user may cause a read out of
bounds when a corrupted data pointer and length are sent via an adjecent network.
A successful exploit of this vulnerability may lead to a loss of Integrity and/or
Availability.

Backport fixes from upstream edk2 [2][3]

[1] https://nvd.nist.gov/vuln/detail/CVE-2024-38797
[2] https://github.com/tianocore/edk2/security/advisories/GHSA-4wjw-6xmf-44xf
[3] https://github.com/tianocore/edk2/pull/10928

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 weeks agotoaster.bbclass: fix toaster error caused by tabs in BBLAYERS
Osose Itua [Wed, 11 Jun 2025 15:24:22 +0000 (11:24 -0400)] 
toaster.bbclass: fix toaster error caused by tabs in BBLAYERS

Users may unknowingly put tabs in BBLAYERS instead of spaces, and this is
interpreted as a literal "\t" at the start of the filepath which causes
_get_layer_dict() function to fail at finding the filepath.

Instead of using split(" "), which restricts it to split on just spaces
replace with split() as this handles spaces, tabs and newlines.

Min steps to reproduce:
- Clone the poky repo:
    git clone git://git.yoctoproject.org/poky
    cd poky
    source oe-init-build-env
- Insert tabs in the BBLAYERS variable in bblayers.conf
  - Note: tab needs to be in the recipe that is being built for the error to be observed
  - Ex: ` /home/<user>/src/poky/meta-skeleton \`
- Start toaster
  source toaster start
  bitbake hello

Error message:
FileNotFoundError: [Errno 2] No such file or directory: '\t/home/<user>/src/poky/meta-skeleton’

Fix by using split() instead of split(" ").

Suggested-by: Anakin Childerhose <anakin.childerhose@savoirfairelinux.com>
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Osose Itua <osose.itua@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 months agosysfsutils: fix my_strncat function
Hongxu Jia [Wed, 4 Jun 2025 08:17:44 +0000 (16:17 +0800)] 
sysfsutils: fix my_strncat function

The bug was introduced by upstream commit [1] where strncat was replaced with
internal my_strncat function, such as:

  char dest[32] = "/sys/devices/platform/axi";
  my_strncat(dest, "/", sizeof(dest) - strlen(dest) - 1);

Will result in dest string being:

  /sys/

and not the expected:

  /sys/devices/platform/axi/

The meaning of the "len" parameter in the my_strncat function is the size limit for
copying characters from "from", not the size limit for "to" after copying. Also,
the "#define safestrcat(to, from) my_strncat(to, from, sizeof(to) - strlen(to) - 1)"
has already imposed a limit on max based on the size of "to". Modify the function
to prevent truncation of content when too many bytes are passed to the my_strcat function.

[1] https://github.com/linux-ras/sysfsutils/commit/0719881cad85f837f039ecb378b823306640902a

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
2 months agorust: Upgrade 1.85.1->1.86.0
Yash Shinde [Tue, 10 Jun 2025 06:19:54 +0000 (23:19 -0700)] 
rust: Upgrade 1.85.1->1.86.0

Rust stable version updated to 1.86.0.
https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html

* Add pkgconfig-native and openssl to resolve openssl-sys crate
dependency on pkg-config. As per rust document this is a required dependency.

Fixes:
| error: failed to run custom build command for `openssl-sys v0.9.106`
| Could not find openssl via pkg-config:
|   The pkg-config command could not be found.
|
|   Most likely, you need to install a pkg-config package for your OS.
|   Try `apt install pkg-config`, or `yum install pkg-config`,
|   or `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution

https://crates.io/crates/openssl-sys/0.9.108/dependencies
https://github.com/rust-lang/rust/blob/master/INSTALL.md#dependencies

* Add Ninja as a dependency for building Rust to prevent bootstrap
  build regression.

Fixes:
| Building LLD for x86_64-unknown-linux-gnu
|
| Couldn't find required command: ninja (or ninja-build)
|
| You should install ninja as described at
| <https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages>,
| or set `ninja = false` in the `[llvm]` section of `config.toml`.
| Alternatively, set `download-ci-llvm = true` in that `[llvm]` section
| to download LLVM rather than building it.

* Add bash to DEPENDS to resolve missing dependency for subtree-sync.sh
Fixes:
ERROR: rust-1.86.0-r0 do_package_qa: QA Issue: /usr/lib/rustlib/src/rust/library/portable-simd/subtree-sync.sh
contained in package rust requires /bin/bash, but no providers found in RDEPENDS:rust? [file-rdeps]

* Add do_install:append() task to remove cargo bin from rust native builds.
This resolves the following conflict:

Fixes:
ERROR: libstd-rs-1.86.0-r0 do_prepare_recipe_sysroot: The file /usr/bin/cargo is
installed by both rust-native and cargo-native, aborting

* Update Unicode-3.0 license checksums.
License-Update: Copyright and license files to distributions are updated.

https://github.com/rust-lang/rust/commit/f9c16997dc016a3ef1456f56df2ab564a1c48cb2
  It adds copyright and license files (including HTML versions) to distributions,
  aligns with license compliance tools like reuse, and ensures all required
  license texts are properly included and formatted.

* Disable building of extended Rust tools to reduce build time and filesystem usage.
  Update config.toml to disable building of extended Rust tools that are not required.
  This helps minimize unnecessary build time and filesystem usage.

* The "remote-test-server" bin is now generated in stage2-tools-bin dir
  rather than stage1. Update the test suite accordingly.

* Fix do_package QA issue by packing missing zsh files and directories:

Fixes:
do_package: QA Issue: rust: Files/directories were installed but not shipped in any package:
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_cargo
Please set FILES such that these items are packaged. Alternatively if they are unneeded,
avoid installing them or delete them within do_install

* From v1.86.0, a "self-contained" LLD is built as part of rust
 bootstrap build. This results in additional build time and
 installations. Disable rust-lld in config.toml to prevent it.

 References: https://github.com/rust-lang/rust/pull/135001
             https://github.com/rust-lang/rust/commit/8744b44e6bde053f7656a3c727c968177ee8e4b6

* Drop Zdual-proc-macros-additional-check.patch patch
 since it's merged with v1.86.0
 https://github.com/rust-lang/rust/commit/139d6ba054a1a4cc5fe64981ad46fd5547bd4916

* LTO config is applied to rustdoc from v1.86.0.
 Rebase 0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch
 which disables it to avoid suffixes in binaries causing non-reproducibility.
 https://github.com/rust-lang/rust/commit/1fe351b

* Restrict tests using "//@only <target_arch>" to avoid failures on riscv64,
  which is now part of default AB testing. Since riscv64 is Tier 2
  with no automated testing, some tests may fail. This approach ensures tests continue
  running on supported architectures while skipping them on riscv64.
  https://doc.rust-lang.org/rustc/platform-support.html#tier-2-with-host-tools

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
2 months agopython3-ndg-httpsclient: remove unused recipe
Ross Burton [Wed, 11 Jun 2025 12:37:37 +0000 (13:37 +0100)] 
python3-ndg-httpsclient: remove unused recipe

The last dependency in core on this recipe was removed in May 2024[1],
and there don't appear to be any other users that I can find.  The last
upstream release was in 2018 so this is now obsolete.

[1] oe-core dfa482f1998 ("python3-requests: cleanup RDEPENDS")

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>
2 months agogo: upgrade 1.24.3 -> 1.24.4
Peter Marko [Tue, 10 Jun 2025 22:07:38 +0000 (00:07 +0200)] 
go: upgrade 1.24.3 -> 1.24.4

Upgrade to latest 1.24.x release [1]:

$ git --no-pager log --oneline go1.24.3..go1.24.4
6796ebb2cb [release-branch.go1.24] go1.24.4
85897ca220 [release-branch.go1.24] net/http: strip sensitive proxy headers from redirect requests
9f9cf28f8f [release-branch.go1.24] os: don't follow symlinks on Windows when O_CREATE|O_EXCL
a31c931adf [release-branch.go1.24] cmd/link: allow linkname reference to a TEXT symbol regardless of size
03811ab1b3 [release-branch.go1.24] crypto/x509: decouple key usage and policy validation
04a9473847 [release-branch.go1.24] lib/fips140: set inprocess.txt to v1.0.0
db8f1dc948 [release-branch.go1.24] hash/maphash: hash channels in purego version of maphash.Comparable
664cf832ec [release-branch.go1.24] runtime/debug: document DefaultGODEBUG as a BuildSetting
431f75a0b9 [release-branch.go1.24] os: fix Root.Mkdir permission bits on OpenBSD

Fixes CVE-2025-4673, CVE-2025-0913 and CVE-2025-22874 [2].

[1] https://github.com/golang/go/compare/go1.24.3...go1.24.4
[2] https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A

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>