]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
3 years agorust: update 1.62.0 -> 1.62.1
Alexander Kanavin [Thu, 11 Aug 2022 19:58:01 +0000 (21:58 +0200)] 
rust: update 1.62.0 -> 1.62.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodropbear: merge .inc into .bb
Alexander Kanavin [Thu, 11 Aug 2022 19:58:00 +0000 (21:58 +0200)] 
dropbear: merge .inc into .bb

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto: prepend the the value with a space when append to KERNEL_EXTRA_ARGS
Jose Quaresma [Fri, 12 Aug 2022 14:43:38 +0000 (14:43 +0000)] 
linux-yocto: prepend the the value with a space when append to KERNEL_EXTRA_ARGS

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agouninative: Upgrade to 3.7 to work with glibc 2.36
Michael Halstead [Fri, 12 Aug 2022 21:57:36 +0000 (14:57 -0700)] 
uninative: Upgrade to 3.7 to work with glibc 2.36

Update uninative to work with the new glibc 2.36 version

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoiproute2: Fix netns check during configure
Khem Raj [Thu, 11 Aug 2022 05:54:33 +0000 (22:54 -0700)] 
iproute2: Fix netns check during configure

Check would fail with compilers using -Werror since _GNU_SOURCE is
needed for this function.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agounzip: Enable largefile support when enabled in distro
Khem Raj [Thu, 11 Aug 2022 05:54:32 +0000 (22:54 -0700)] 
unzip: Enable largefile support when enabled in distro

The test to determine largefile support is a runtime test which wont
work during cross-compile, therefore override the test result from
recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agounzip: Fix configure tests to use modern C
Khem Raj [Thu, 11 Aug 2022 05:54:31 +0000 (22:54 -0700)] 
unzip: Fix configure tests to use modern C

Newer compilers end up with errors while compiling these test snippets
and build results in failures.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agozip: Make configure checks to be more robust
Khem Raj [Thu, 11 Aug 2022 05:54:30 +0000 (22:54 -0700)] 
zip: Make configure checks to be more robust

Newer compilers are strict and have turned some warnings into hard
errors which results in subtle configure check failures. Therefore fix
these tests and also enable largefile support via cflags when its
desired

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agozip: Enable largefile support based on distro feature
Khem Raj [Thu, 11 Aug 2022 05:54:29 +0000 (22:54 -0700)] 
zip: Enable largefile support based on distro feature

The configure test tries to run a binary during build to determine
largefile support, which wont work in cross-compile mode, therefore
specify it when largefile DISTRO_FEATURE is on.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolttng-modules: replace mips compaction fix with upstream change
Bruce Ashfield [Wed, 10 Aug 2022 17:51:12 +0000 (13:51 -0400)] 
lttng-modules: replace mips compaction fix with upstream change

lttng upstream had a different solution to the compaction build isses
seen on mips.

We switch our patch for a backport of the upstream solution.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agowic: add 'none' fstype for custom image
JeongBong Seo [Wed, 10 Aug 2022 08:56:15 +0000 (08:56 +0000)] 
wic: add 'none' fstype for custom image

It's not possible to set the label (of gpt entry) normally
when I want to use non-listed fstype as a rawcopy.

Example)
part ? --source rawcopy --ondisk mmcblk0 --label mypart --sourceparams file=mypart.raw

To resolve this problem, this patch addes a 'none' fstype
and ignore do_image_label on rawcopy (that actually set the partition label.)

Signed-off-by: JeongBong Seo <jb.seo@lge.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoapt: fix nativesdk-apt build failure during the second time build
Changqing Li [Tue, 9 Aug 2022 11:47:22 +0000 (19:47 +0800)] 
apt: fix nativesdk-apt build failure during the second time build

Run following commands:
bitbake nativesdk-apt
bitbake nativesdk-apt -c install -f

The second command's do_install will fail with following error:
| /build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot-native/usr/bin/x86_64-wrlinuxsdk-linux/x86_64-wrlinuxsdk-linux-g++ -D_WITH_GETLINE=1 -Dapt_pkg_EXPORTS -I/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/include -I/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/include/apt-pkg --sysroot=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot  -O2 -pipe -fmacro-prefix-map=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0=/usr/src/debug/nativesdk-apt/2.4.5-r0                      -fdebug-prefix-map=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0=/usr/src/debug/nativesdk-apt/2.4.5-r0                      -fdebug-prefix-map=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot=                      -fdebug-prefix-map=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot-native=  -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef -Wdouble-promotion -Wsuggest-override -Werror=suggest-override -Werror=return-type -std=gnu++17 -MD -MT apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o -MF apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o.d -o apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o -c /build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/apt-pkg/tagfile-keys.cc
| /build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/apt-pkg/tagfile-keys.cc:1:10: fatal error: /include/apt-pkg/tagfile-keys.h: No such file or directory
|     1 | #include "/include/apt-pkg/tagfile-keys.h"
0/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/apt-pkg/tagfile-keys.cc

During the first command, do_install task changed tagfile-keys.cc, this
will make tagfile-keys.cc is newer than the built tagfile-keys.cc.o. So the second
do_install will rebuild tagfile-keys.cc.o. But the header path is
replaced wrongly, so fix the header path

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agouboot-config.bbclass: Don't bail out early in multi configs
Kevin Hao [Tue, 9 Aug 2022 10:28:19 +0000 (18:28 +0800)] 
uboot-config.bbclass: Don't bail out early in multi configs

Previously we had the support to build multiple u-boot configs for a
machine, but after the change in the commit 801a27d73b10
("uboot-config.bbclass: Raise error for bad key"), this anonymous
function would bail out after handling the first config in UBOOT_CONFIG.
This is definitely not what we want. Fix it by making sure all the
configs are handled.

Fixed: 801a27d73b10 ("uboot-config.bbclass: Raise error for bad key")
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoglibc: Update patch status
Khem Raj [Tue, 9 Aug 2022 14:50:42 +0000 (07:50 -0700)] 
glibc: Update patch status

These patches were appplied in master

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoglibc: fix new upstream build issue with DEBUG_BUILD build
Martin Jansa [Tue, 9 Aug 2022 05:43:40 +0000 (22:43 -0700)] 
glibc: fix new upstream build issue with DEBUG_BUILD build

* refresh 0001-Revert-Linux-Implement-a-useful-version-of-_startup_.patch
  (just different commit SHA in master and 2.35 branch)

* add proposed fixes for build failure with DEBUG_BUILD:
  http://errors.yoctoproject.org/Errors/Details/663898/

86_64-oe-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse  --sysroot=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0                      -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0                      -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot=                      -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native=  -Wl,-z,relro,-z,now -fuse-ld=bfd  -nostdlib -nostartfiles -r -o TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os '-Wl,-(' TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/dl-allobjs.os TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/rtld-libc.a -lgcc '-Wl,-)' \
  -Wl,-Map,TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os.map
x86_64-oe-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse  --sysroot=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0                      -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0                      -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot=                      -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native=  -Wl,-z,relro,-z,now -fuse-ld=bfd  -nostdlib -nostartfiles -shared -o TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/ld.so.new \
  -Wl,-z,relro -Wl,-z,defs -Wl,-z,now \
  -Wl,-z,pack-relative-relocs \
  TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os -Wl,--version-script=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/ld.map \
  -Wl,-soname=ld-linux-x86-64.so.2
TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/12.1.0/ld.bfd: TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os: in function `_dl_load_cache_lookup':
/usr/src/debug/glibc/2.36-r0/git/elf/dl-cache.c:513: undefined reference to `strcpy'
collect2: error: ld returned 1 exit status

  introduced in 2.36 version, with:
  https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6b9006bfb0

  upstream report with this fix proposed:
  https://sourceware.org/bugzilla/show_bug.cgi?id=29454

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoglibc: Bump to 2.36
Khem Raj [Tue, 9 Aug 2022 05:43:39 +0000 (22:43 -0700)] 
glibc: Bump to 2.36

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agosysvinit: Fix mount.h conflicts seen with glibc 2.36+
Khem Raj [Tue, 9 Aug 2022 07:32:16 +0000 (00:32 -0700)] 
sysvinit: Fix mount.h conflicts seen with glibc 2.36+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoperl: Pass additional flags to enable lfs and gnu source
Khem Raj [Tue, 9 Aug 2022 05:41:20 +0000 (22:41 -0700)] 
perl: Pass additional flags to enable lfs and gnu source

These defines are needed to enable some GNU APIs and large file support
is default in OE anyway

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoperl-cross: Correct function signatures in configure_func.sh
Khem Raj [Tue, 9 Aug 2022 05:41:19 +0000 (22:41 -0700)] 
perl-cross: Correct function signatures in configure_func.sh

There are latent issues in function detection which were succeeding due
to compiler being lenient, but this is fast changing e.g. clang-15 has
turned the -Wimplicit-function-declaration into error which ends up
failing these tests and rightly so. Therefore try to improve the tests
to have proper prototypes known during compilation

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoclasses: rootfs-postcommands: autologin root on serial-getty
Johannes Schneider [Tue, 2 Aug 2022 09:40:19 +0000 (11:40 +0200)] 
classes: rootfs-postcommands: autologin root on serial-getty

when empty-root-password AND serial-autologin-root are part of the
IMAGE_FEATURES, save some of the developers time by not having to type
the (then still sole) 'root' username on the serial console after each
and every reboot

this is done by inserting '--autologin root' into the command line of
the responsible 'getty' service

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoarchiver.bbclass: some recipes that uses the kernelsrc bbclass uses the shared source
Jose Quaresma [Fri, 22 Jul 2022 12:31:24 +0000 (13:31 +0100)] 
archiver.bbclass: some recipes that uses the kernelsrc bbclass uses the shared source

This fix a race that happens when building some of the followning recipes
with kernel at same time.

The kernelsrc uses the kernel shared source dir as their source
S = "${STAGING_KERNEL_DIR}" and this will cause a race in the
do_unpack_and_patch task, when bitbake runs the
bb.build.exec_func('do_unpack', d) because do_unpack will
clean the source dir on startup.

| ok: note that S != "${STAGING_KERNEL_DIR} for this ones
openembedded-core/meta/recipes-kernel/perf/perf.bb:inherit kernelsrc
meta-openembedded/meta-oe/recipes-kernel/usbip-tools/usbip-tools.bb:inherit kernelsrc autotools-brokensep

| broken
meta-openembedded/meta-oe/recipes-kernel/cpupower/cpupower.bb:inherit kernelsrc kernel-arch bash-completion
meta-openembedded/meta-oe/recipes-kernel/spidev-test/spidev-test.bb:inherit bash-completion kernelsrc kernel-arch
meta-openembedded/meta-oe/recipes-kernel/intel-speed-select/intel-speed-select.bb:inherit kernelsrc
meta-openembedded/meta-oe/recipes-kernel/bpftool/bpftool.bb:inherit bash-completion kernelsrc kernel-arch

The issue can be replicated with:

INHERIT += "archiver"
ARCHIVER_MODE[src] = "original"
ARCHIVER_MODE[diff] = "1"

And:

R=<recipe> bitbake -c cleansstate virtual/kernel $R && bitbake $R

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorecipetool: Update for class changes
Richard Purdie [Thu, 11 Aug 2022 14:27:27 +0000 (15:27 +0100)] 
recipetool: Update for class changes

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses: Update classes to match new bitbake class scope functionality
Richard Purdie [Wed, 10 Aug 2022 13:35:29 +0000 (14:35 +0100)] 
classes: Update classes to match new bitbake class scope functionality

Move classes to classes-global or classes-recipe as appropriate to take
advantage of new bitbake functionality to check class scope/usage.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinsane: Update to allow for class layout changes
Richard Purdie [Thu, 11 Aug 2022 14:17:07 +0000 (15:17 +0100)] 
insane: Update to allow for class layout changes

Make the code more generic to allow for the potential incomming class
layout changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolib: Add copyright statements to files without one
Richard Purdie [Wed, 10 Aug 2022 19:40:57 +0000 (20:40 +0100)] 
lib: Add copyright statements to files without one

Where there isn't a copyright statement, add one to make it explicit.
Also add license identifiers as MIT if there isn't one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses: Add SPDX license identifiers
Richard Purdie [Wed, 10 Aug 2022 17:55:54 +0000 (18:55 +0100)] 
classes: Add SPDX license identifiers

As stated in our top level license files, the license is MIT unless
otherwise stated. Add SPDX identifers accordingly. Replace older
license statementa with the standardised syntax. Also drop "All
Rights Reserved" expression as it isn't used now, doesn't mean anything
and is confusing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoscripts: Add copyright statements to files without one
Richard Purdie [Wed, 10 Aug 2022 17:32:28 +0000 (18:32 +0100)] 
scripts: Add copyright statements to files without one

Where there isn't a copyright statement, add one to make it explicit.
Also drop editor config lines where they were present and add license
identifiers as MIT if there isn't one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses: Add copyright statements to files without one
Richard Purdie [Wed, 10 Aug 2022 17:21:38 +0000 (18:21 +0100)] 
classes: Add copyright statements to files without one

Where there isn't a copyright statement, add one to make it explicit.
Also drop editor config lines where they were present.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest/runtime_test: Use testexport in IMAGE_CLASSES, not globally
Richard Purdie [Thu, 11 Aug 2022 20:54:24 +0000 (21:54 +0100)] 
selftest/runtime_test: Use testexport in IMAGE_CLASSES, not globally

testexport doesn't make sense outside the scope of SDKs and images so
use via IMAGE_CLASSES instead of in the global scope.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotestexport: Use IMAGE_CLASSES for testimage
Richard Purdie [Thu, 11 Aug 2022 15:39:02 +0000 (16:39 +0100)] 
testexport: Use IMAGE_CLASSES for testimage

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotestexport: Fix to work as an image class
Richard Purdie [Fri, 12 Aug 2022 07:11:00 +0000 (08:11 +0100)] 
testexport: Fix to work as an image class

The class is mainly an image based class but one recipe does need to look
at values shared with the class and isn't an image. Move this to a conf
file instead, avoiding the need to pollute all recipes globally.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest/runtime_test/incompatible_lic: Use IMAGE_CLASSES for testimage
Richard Purdie [Thu, 11 Aug 2022 14:26:49 +0000 (15:26 +0100)] 
selftest/runtime_test/incompatible_lic: Use IMAGE_CLASSES for testimage

testimage should be included via IMAGE_CLASSES, not globally with INHERIT.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoperf: Fix reproducibility issues with 5.19 onwards
Richard Purdie [Thu, 11 Aug 2022 13:27:36 +0000 (14:27 +0100)] 
perf: Fix reproducibility issues with 5.19 onwards

In 5.19 onwards the build process changed and encoded full build paths
into the output. Adapt the code to look more like our setuptools class
calls. This seems to work ok with older kernels too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agometa-skeleton/hello-mod: Switch to SPDX-License-Identifier
Richard Purdie [Thu, 11 Aug 2022 14:13:03 +0000 (15:13 +0100)] 
meta-skeleton/hello-mod: Switch to SPDX-License-Identifier

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust: Remove unneeded RUST_TARGETGENS settings
Richard Purdie [Wed, 10 Aug 2022 20:46:19 +0000 (21:46 +0100)] 
rust: Remove unneeded RUST_TARGETGENS settings

These match the default from the class so drop them. We then always
generate all targets so remove the configuration from the class.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildhistory: Only use image-artifact-names as an image class
Richard Purdie [Wed, 10 Aug 2022 16:40:48 +0000 (17:40 +0100)] 
buildhistory: Only use image-artifact-names as an image class

The class only makes sense in the conext of images, not globally so
include as such.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorng-tools: Replace obsolete "wants systemd-udev-settle"
Drew Moseley [Thu, 4 Aug 2022 15:09:52 +0000 (11:09 -0400)] 
rng-tools: Replace obsolete "wants systemd-udev-settle"

The systemd-udev-settle service is listed as obsolete and does in
some cases result in a significant boot time.  Replace that with a
specific wait for the random source hardware device to be loaded.

Before this change:

   Startup finished in 4.025s (kernel) + 2min 13.236s (userspace) = 2min 17.262s
   multi-user.target reached after 2min 8.153s in userspace

After this change:

   Startup finished in 3.956s (kernel) + 13.294s (userspace) = 17.250s
   multi-user.target reached after 9.522s in userspace

Signed-off-by: Drew Moseley <drew@moseleynet.net>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibpam: use /run instead of /var/run in systemd tmpfiles
Beniamin Sandu [Thu, 4 Aug 2022 11:38:18 +0000 (14:38 +0300)] 
libpam: use /run instead of /var/run in systemd tmpfiles

Update the deprecated path to remove the systemd warning:

/etc/tmpfiles.d/pam.conf:2: Line references path below
legacy directory /var/run/, updating /var/run/console
/run/console; please update the tmpfiles.d/

Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosyslinux: refresh patches with devtool
Martin Jansa [Sat, 6 Aug 2022 12:09:39 +0000 (14:09 +0200)] 
syslinux: refresh patches with devtool

* add git headers so that all can be applied with git am

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosyslinux: Fix build with glibc-2.36
Martin Jansa [Mon, 8 Aug 2022 16:06:12 +0000 (18:06 +0200)] 
syslinux: Fix build with glibc-2.36

* add only necessary definitions from linux/fs.h, because including
  whole file causes conflicts with sys/mount.h since glibc-2.36:
  http://errors.yoctoproject.org/Errors/Details/664535/

  https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowebkitgtk: upgrade 2.36.4 -> 2.36.5
Alexander Kanavin [Mon, 8 Aug 2022 06:42:36 +0000 (08:42 +0200)] 
webkitgtk: upgrade 2.36.4 -> 2.36.5

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosysklogd: upgrade 2.4.0 -> 2.4.2
Alexander Kanavin [Mon, 8 Aug 2022 06:42:35 +0000 (08:42 +0200)] 
sysklogd: upgrade 2.4.0 -> 2.4.2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosqlite3: upgrade 3.39.1 -> 3.39.2
Alexander Kanavin [Mon, 8 Aug 2022 06:42:33 +0000 (08:42 +0200)] 
sqlite3: upgrade 3.39.1 -> 3.39.2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-urllib3: upgrade 1.26.10 -> 1.26.11
Alexander Kanavin [Mon, 8 Aug 2022 06:42:32 +0000 (08:42 +0200)] 
python3-urllib3: upgrade 1.26.10 -> 1.26.11

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-sphinx: upgrade 5.0.2 -> 5.1.1
Alexander Kanavin [Mon, 8 Aug 2022 06:42:31 +0000 (08:42 +0200)] 
python3-sphinx: upgrade 5.0.2 -> 5.1.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-setuptools: upgrade 63.3.0 -> 63.4.1
Alexander Kanavin [Mon, 8 Aug 2022 06:42:30 +0000 (08:42 +0200)] 
python3-setuptools: upgrade 63.3.0 -> 63.4.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-markdown: upgrade 3.3.7 -> 3.4.1
Alexander Kanavin [Mon, 8 Aug 2022 06:42:29 +0000 (08:42 +0200)] 
python3-markdown: upgrade 3.3.7 -> 3.4.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-jsonschema: upgrade 4.9.0 -> 4.9.1
Alexander Kanavin [Mon, 8 Aug 2022 06:42:28 +0000 (08:42 +0200)] 
python3-jsonschema: upgrade 4.9.0 -> 4.9.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-hypothesis: upgrade 6.50.1 -> 6.54.1
Alexander Kanavin [Mon, 8 Aug 2022 06:42:27 +0000 (08:42 +0200)] 
python3-hypothesis: upgrade 6.50.1 -> 6.54.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-dtschema: upgrade 2022.7 -> 2022.8
Alexander Kanavin [Mon, 8 Aug 2022 06:42:26 +0000 (08:42 +0200)] 
python3-dtschema: upgrade 2022.7 -> 2022.8

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3: upgrade 3.10.5 -> 3.10.6
Alexander Kanavin [Mon, 8 Aug 2022 06:42:25 +0000 (08:42 +0200)] 
python3: upgrade 3.10.5 -> 3.10.6

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopuzzles: upgrade to latest revision
Alexander Kanavin [Mon, 8 Aug 2022 06:42:24 +0000 (08:42 +0200)] 
puzzles: upgrade to latest revision

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopiglit: upgrade to latest revision
Alexander Kanavin [Mon, 8 Aug 2022 06:42:23 +0000 (08:42 +0200)] 
piglit: upgrade to latest revision

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonettle: upgrade 3.8 -> 3.8.1
Alexander Kanavin [Mon, 8 Aug 2022 06:42:22 +0000 (08:42 +0200)] 
nettle: upgrade 3.8 -> 3.8.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomobile-broadband-provider-info: upgrade 20220511 -> 20220725
Alexander Kanavin [Mon, 8 Aug 2022 06:42:21 +0000 (08:42 +0200)] 
mobile-broadband-provider-info: upgrade 20220511 -> 20220725

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: upgrade 22.1.3 -> 22.1.5
Alexander Kanavin [Mon, 8 Aug 2022 06:42:20 +0000 (08:42 +0200)] 
mesa: upgrade 22.1.3 -> 22.1.5

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibxcvt: upgrade 0.1.1 -> 0.1.2
Alexander Kanavin [Mon, 8 Aug 2022 06:42:19 +0000 (08:42 +0200)] 
libxcvt: upgrade 0.1.1 -> 0.1.2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibwebp: upgrade 1.2.2 -> 1.2.3
Alexander Kanavin [Mon, 8 Aug 2022 06:42:18 +0000 (08:42 +0200)] 
libwebp: upgrade 1.2.2 -> 1.2.3

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibnotify: upgrade 0.8.0 -> 0.8.1
Alexander Kanavin [Mon, 8 Aug 2022 06:42:17 +0000 (08:42 +0200)] 
libnotify: upgrade 0.8.0 -> 0.8.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibevdev: upgrade 1.12.1 -> 1.13.0
Alexander Kanavin [Mon, 8 Aug 2022 06:42:16 +0000 (08:42 +0200)] 
libevdev: upgrade 1.12.1 -> 1.13.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibcap: upgrade 2.64 -> 2.65
Alexander Kanavin [Mon, 8 Aug 2022 06:42:15 +0000 (08:42 +0200)] 
libcap: upgrade 2.64 -> 2.65

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokexec-tools: upgrade 2.0.24 -> 2.0.25
Alexander Kanavin [Mon, 8 Aug 2022 06:42:14 +0000 (08:42 +0200)] 
kexec-tools: upgrade 2.0.24 -> 2.0.25

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokea: upgrade 2.0.2 -> 2.2.0
Alexander Kanavin [Mon, 8 Aug 2022 06:42:13 +0000 (08:42 +0200)] 
kea: upgrade 2.0.2 -> 2.2.0

License-Update: Apache licensed bits removed
(see https://github.com/isc-projects/kea/commit/65c988f475a028b162054a4d8e8b2e2acbfe3530)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoiso-codes: upgrade 4.10.0 -> 4.11.0
Alexander Kanavin [Mon, 8 Aug 2022 06:42:12 +0000 (08:42 +0200)] 
iso-codes: upgrade 4.10.0 -> 4.11.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agognutls: upgrade 3.7.6 -> 3.7.7
Alexander Kanavin [Mon, 8 Aug 2022 06:42:11 +0000 (08:42 +0200)] 
gnutls: upgrade 3.7.6 -> 3.7.7

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoell: upgrade 0.51 -> 0.52
Alexander Kanavin [Mon, 8 Aug 2022 06:42:10 +0000 (08:42 +0200)] 
ell: upgrade 0.51 -> 0.52

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodiffoscope: upgrade 218 -> 220
Alexander Kanavin [Mon, 8 Aug 2022 06:42:09 +0000 (08:42 +0200)] 
diffoscope: upgrade 218 -> 220

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobind: upgrade 9.18.4 -> 9.18.5
Alexander Kanavin [Mon, 8 Aug 2022 06:42:08 +0000 (08:42 +0200)] 
bind: upgrade 9.18.4 -> 9.18.5

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibwpe: upgrade 1.12.0 -> 1.12.2
Alexander Kanavin [Mon, 8 Aug 2022 06:42:07 +0000 (08:42 +0200)] 
libwpe: upgrade 1.12.0 -> 1.12.2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoharfbuzz: upgrade 4.4.1 -> 5.1.0
Alexander Kanavin [Mon, 8 Aug 2022 06:42:06 +0000 (08:42 +0200)] 
harfbuzz: upgrade 4.4.1 -> 5.1.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoiproute2: upgrade 5.18.0 -> 5.19.0
Alexander Kanavin [Mon, 8 Aug 2022 06:42:04 +0000 (08:42 +0200)] 
iproute2: upgrade 5.18.0 -> 5.19.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: update 5.0.1 -> 5.1
Alexander Kanavin [Mon, 8 Aug 2022 06:42:03 +0000 (08:42 +0200)] 
ffmpeg: update 5.0.1 -> 5.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pip: update 22.2.1 -> 22.2.2
Alexander Kanavin [Mon, 8 Aug 2022 06:42:02 +0000 (08:42 +0200)] 
python3-pip: update 22.2.1 -> 22.2.2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobluez5: update 5.64 -> 5.65
Alexander Kanavin [Mon, 8 Aug 2022 06:42:00 +0000 (08:42 +0200)] 
bluez5: update 5.64 -> 5.65

Drop fix_service.patch as it is merged upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo: update 1.18.4 -> 1.19
Alexander Kanavin [Mon, 8 Aug 2022 06:41:57 +0000 (08:41 +0200)] 
go: update 1.18.4 -> 1.19

Rebase patches.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorpm: update 4.17.0 -> 4.17.1
Alexander Kanavin [Mon, 8 Aug 2022 06:41:54 +0000 (08:41 +0200)] 
rpm: update 4.17.0 -> 4.17.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibmnl: remove unneeded SRC_URI 'name' option
Luca Ceresoli [Mon, 8 Aug 2022 09:27:14 +0000 (11:27 +0200)] 
libmnl: remove unneeded SRC_URI 'name' option

The 'name' option here is not needed as there is only one file in SRC_URI.

The layer index lists no bbappend for this recipe, thus this is unlikely
useful for bbappends.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogdbserver : add selftest
Yogesh Tyagi [Mon, 8 Aug 2022 04:21:40 +0000 (12:21 +0800)] 
gdbserver : add selftest

The test runs gdbserver on qemu and connects the gdb client from host over TCP.

It builds a cross gdb on the host and compiles the program to be debugged on the target,
launches the gdbserver and tries to connect cross gdb to it.

[YOCTO #13996]

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotcp-wrappers: Fix implicit-function-declaration warnings
Khem Raj [Mon, 8 Aug 2022 00:45:25 +0000 (17:45 -0700)] 
tcp-wrappers: Fix implicit-function-declaration warnings

This is seen with clang-15+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoutil-linux: Upgrade to 2.38.1
Khem Raj [Sun, 7 Aug 2022 22:26:13 +0000 (15:26 -0700)] 
util-linux: Upgrade to 2.38.1

The individual commits in this release are at [1]
and Changelog [2]

[1] https://github.com/util-linux/util-linux/compare/v2.38...v2.38.1
[2] https://github.com/util-linux/util-linux/commit/e51a82836a47723669bf046e24c51d5eb051c15f

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoutil-linux: Define pidfd_* function signatures
Khem Raj [Sun, 7 Aug 2022 22:26:12 +0000 (15:26 -0700)] 
util-linux: Define pidfd_* function signatures

glibc 2.36 has added sys/pidfd.h and APIs for
pidfd_send_signal and pidfd_open, therefore check
for this header and include it if it exists

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocracklib: Drop using register keyword
Khem Raj [Sun, 7 Aug 2022 19:37:40 +0000 (12:37 -0700)] 
cracklib: Drop using register keyword

Fixes
incompatible integer to pointer conversion passing

These errors are found with newer compilers e.g. clang-15

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-cross-canadian: Use shell from SDK, not the host
Richard Purdie [Tue, 9 Aug 2022 14:55:55 +0000 (15:55 +0100)] 
rust-cross-canadian: Use shell from SDK, not the host

rust sets LD_LIBRARY_PATH which causes a lot of problems with host
binaries conflicting with SDK libraries. By using sh/bash from the
SDK we avoid those issues.

[YOCTO #14878]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocargo: Work around host system library conflicts
Richard Purdie [Mon, 8 Aug 2022 14:33:41 +0000 (15:33 +0100)] 
cargo: Work around host system library conflicts

cargo ends up running target-rust-ccld with LD_LIBRARY_PATH set to libdir but not
base_libdir which breaks the SDK. You see errors like:

/bin/sh: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

On such a system, this would fail:

LD_LIBRARY_PATH="<path>/testimage-sdk/sysroots/x86_64-pokysdk-linux/usr/lib" cargo build

but this would work:

LD_LIBRARY_PATH="<path>/testimage-sdk/sysroots/x86_64-pokysdk-linux/usr/lib:<path>/testimage-sdk/sysroots/x86_64-pokysdk-linux/lib" cargo build

so wrap cargo with both paths in LD_LIBRARY_PATH.

The error depends on the versions of the host system, it reproduced on tumbleweed-ty-3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokmscube: address linux 5.19 fails
Alexander Kanavin [Mon, 8 Aug 2022 18:31:15 +0000 (20:31 +0200)] 
kmscube: address linux 5.19 fails

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokern-devsrc: Drop auto.conf creation
Richard Purdie [Tue, 9 Aug 2022 10:20:13 +0000 (11:20 +0100)] 
kern-devsrc: Drop auto.conf creation

After this commit in the mainline kernel, the quoting is different in auto.conf
compared to .config:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=129ab0d2d9f38b9d43df35235fc66c6740d6928b

We therefore can't just copy one over the other or it leads to syntax/quoting
errors. We end up running make prepare anyway in all our tests so drop
this copy for fix 5.19 kernels.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.19: fix reproducibility issues
Bruce Ashfield [Tue, 9 Aug 2022 03:42:58 +0000 (23:42 -0400)] 
linux-yocto/5.19: fix reproducibility issues

Integrating the following commit(s) to linux-yocto/5.19:

    e0e977e1b098 init/Kconfig: fix CC_HAS_ASM_GOTO_TIED_OUTPUT test with dash

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.19: cfg: update x32 configuration fragment
Bruce Ashfield [Tue, 9 Aug 2022 03:42:57 +0000 (23:42 -0400)] 
linux-yocto/5.19: cfg: update x32 configuration fragment

Integrating the following commit(s) to linux-yocto/.:

    00e2494f7e4 cfg/x32: rename X86_X32 X86_X32_ABI

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.15: fix reproducibility issues
Bruce Ashfield [Tue, 9 Aug 2022 03:38:01 +0000 (23:38 -0400)] 
linux-yocto/5.15: fix reproducibility issues

Integrating the following commit(s) to linux-yocto/5.15:

    efe20512212b init/Kconfig: fix CC_HAS_ASM_GOTO_TIED_OUTPUT test with dash

Fixes: 1aa0e8b144b6 ("Kconfig: Add option for asm goto w/ tied outputs to workaround clang-13 bug")
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.15: update to v5.15.59
Bruce Ashfield [Tue, 9 Aug 2022 03:38:00 +0000 (23:38 -0400)] 
linux-yocto/5.15: update to v5.15.59

Updating  to the latest korg -stable release that comprises
the following commits:

    d676d6149a2f Linux 5.15.59
    f0e42e43795d x86/bugs: Do not enable IBPB at firmware entry when IBPB is not available
    d10e819d13f7 locking/rwsem: Allow slowpath writer to ignore handoff bit if not set by first waiter
    66d31cef4806 docs/kernel-parameters: Update descriptions for "mitigations=" param with retbleed
    7bada8b0bdf1 EDAC/ghes: Set the DIMM label unconditionally
    30dc2effc74a ARM: 9216/1: Fix MAX_DMA_ADDRESS overflow
    86e83233dd01 page_alloc: fix invalid watermark check on a negative value
    51a772c34ea4 mm/hmm: fault non-owner device private entries
    350fcb5e7bbb ARM: crypto: comment out gcc warning that breaks clang builds
    e796e1fe20ec sctp: leave the err path free in sctp_stream_init to sctp_stream_free
    f7c2a9c5435a sfc: disable softirqs for ptp TX
    fe0e602f0502 perf symbol: Correct address for bss symbols
    871168abe6d8 virtio-net: fix the race between refill work and close
    91c11008aab0 netfilter: nf_queue: do not allow packet truncation below transport header offset
    be5cd347ba22 octeontx2-pf: cn10k: Fix egress ratelimit configuration
    3688939cd3e8 sctp: fix sleep in atomic context bug in timer handlers
    186fcdb68f42 i40e: Fix interface init with MSI interrupts (no MSI-X)
    4685f16b3a5d ipv4: Fix data-races around sysctl_fib_notify_on_flag_change.
    eaccca7a0bb8 tcp: Fix data-races around sysctl_tcp_reflect_tos.
    4cc070e0ef2d tcp: Fix a data-race around sysctl_tcp_comp_sack_nr.
    34c9977b4dca tcp: Fix a data-race around sysctl_tcp_comp_sack_slack_ns.
    6842c94de9d5 tcp: Fix a data-race around sysctl_tcp_comp_sack_delay_ns.
    618116a273b7 net: Fix data-races around sysctl_[rw]mem(_offset)?.
    a610feb170bf tcp: Fix data-races around sk_pacing_rate.
    b01b4f5b45ff net: mld: fix reference count leak in mld_{query | report}_work()
    5831ccf37a31 net: macsec: fix potential resource leak in macsec_add_rxsa() and macsec_add_txsa()
    2959a86a472f macsec: always read MACSEC_SA_ATTR_PN as a u64
    a706a40d42f4 macsec: limit replay window size with XPN
    6ad56d5c4f98 macsec: fix error message in macsec_add_rxsa and _txsa
    8991687d3bcf macsec: fix NULL deref in macsec_add_rxsa
    830582c16be1 Documentation: fix sctp_wmem in ip-sysctl.rst
    dac5644a823e tcp: Fix a data-race around sysctl_tcp_invalid_ratelimit.
    6f446677ebb3 tcp: Fix a data-race around sysctl_tcp_autocorking.
    bd07f2e70a4b tcp: Fix a data-race around sysctl_tcp_min_rtt_wlen.
    922ca9fd221b tcp: Fix a data-race around sysctl_tcp_min_tso_segs.
    777d18e65d09 net: sungem_phy: Add of_node_put() for reference returned by of_get_parent()
    40f4739bbd36 net: pcs: xpcs: propagate xpcs_read error to xpcs_get_state_c37_sgmii
    c721324afc58 igmp: Fix data-races around sysctl_igmp_qrv.
    ad6d6ae4a34c net/tls: Remove the context from the list in tls_device_down
    189e370b8250 ipv6/addrconf: fix a null-ptr-deref bug for ip6_ptr
    4845d3ef6445 net: ping6: Fix memleak in ipv6_renew_options().
    6a4a1c70e446 scsi: mpt3sas: Stop fw fault watchdog work item during system shutdown
    3d3e41069b65 scsi: core: Fix warning in scsi_alloc_sgtables()
    ff2932ac8ee1 tcp: Fix a data-race around sysctl_tcp_challenge_ack_limit.
    a88de75673e4 tcp: Fix a data-race around sysctl_tcp_limit_output_bytes.
    664a3311e671 tcp: Fix data-races around sysctl_tcp_moderate_rcvbuf.
    59e2332846d8 octeontx2-pf: Fix UDP/TCP src and dst port tc filters
    927c5cf0ba3e Revert "tcp: change pingpong threshold to 3"
    bdaf56e0df15 scsi: ufs: host: Hold reference returned by of_parse_phandle()
    7f0a36506809 ice: do not setup vlan for loopback VSI
    cef4c1d0fb48 ice: check (DD | EOF) bits on Rx descriptor rather than (EOP | RS)
    62e721dee8cc tcp: Fix data-races around sysctl_tcp_no_ssthresh_metrics_save.
    aa2ca5b5629d tcp: Fix a data-race around sysctl_tcp_nometrics_save.
    6e167ed68999 tcp: Fix a data-race around sysctl_tcp_frto.
    0d8fa3c2a442 tcp: Fix a data-race around sysctl_tcp_adv_win_scale.
    74753ec663d7 tcp: Fix a data-race around sysctl_tcp_app_win.
    807b028115eb tcp: Fix data-races around sysctl_tcp_dsack.
    c9c01dd38975 watch_queue: Fix missing locking in add_watch_to_object()
    093610f216d0 watch_queue: Fix missing rcu annotation
    11c1cc3f6e42 drm/simpledrm: Fix return type of simpledrm_simple_display_pipe_mode_valid()
    121c8993d4f3 nouveau/svm: Fix to migrate all requested pages
    8bd9747d3066 s390/archrandom: prevent CPACF trng invocations in interrupt context
    71f71150115a asm-generic: remove a broken and needless ifdef conditional
    dc124c849c72 hugetlb: fix memoryleak in hugetlb_mcopy_atomic_pte
    2722fb0f7028 mm: fix page leak with multiple threads mapping the same page
    70d0ce332d26 secretmem: fix unhandled fault in truncate
    3ef8040afce7 fs: sendfile handles O_NONBLOCK of out_fd
    518df26b5238 ntfs: fix use-after-free in ntfs_ucsncmp()
    46f6301fb4f1 Revert "ocfs2: mount shared volume without ha stack"
    f32d5615a78a Bluetooth: L2CAP: Fix use-after-free caused by l2cap_chan_put

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto: drop v5.10 reference kernel recipes
Bruce Ashfield [Thu, 4 Aug 2022 22:57:47 +0000 (18:57 -0400)] 
linux-yocto: drop v5.10 reference kernel recipes

These will be supported in the -stable and -lts branches, but
no longer will be directly updated master. We continue with
5.15 and 5.19.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agometa/conf: update preferred linux-yocto version to v5.19
Bruce Ashfield [Thu, 4 Aug 2022 22:57:43 +0000 (18:57 -0400)] 
meta/conf: update preferred linux-yocto version to v5.19

v5.19 is the latest reference kernel, we bump our qemu machines
to use it by default.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto: introduce v5.19 reference kernel recipes
Bruce Ashfield [Thu, 4 Aug 2022 22:57:42 +0000 (18:57 -0400)] 
linux-yocto: introduce v5.19 reference kernel recipes

Introducing the v5.19 reference kernels. Test built and booted
against arm/arm64, mips/mips64, x86-64, ppc in combination with
musl and glibc.

No issues found, and this becomes the 'newest' reference kernel.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-common: Remove conflict with utils create_wrapper
Richard Purdie [Mon, 8 Aug 2022 14:32:29 +0000 (15:32 +0100)] 
rust-common: Remove conflict with utils create_wrapper

utils already has a create_wrapper function which I tried to use from cargo
and got unexpected results. Rename the rust function to avoid this conflict
of named.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest/wic: Tweak test case to not depend on kernel size
Richard Purdie [Mon, 8 Aug 2022 10:29:36 +0000 (11:29 +0100)] 
selftest/wic: Tweak test case to not depend on kernel size

The current test assumes the kernel size leaves a certain amount of whitespace
in the output. Improve this constraint so a slightly larger kernel doesn't fail
the test.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc: revert one upstream change to work around broken DEBUG_BUILD build
Martin Jansa [Wed, 27 Jul 2022 11:56:47 +0000 (13:56 +0200)] 
glibc: revert one upstream change to work around broken DEBUG_BUILD build

* work around for build failure with DEBUG_BUILD:
  http://errors.yoctoproject.org/Errors/Details/661468/

  TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.35-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/11.3.0/ld.bfd:
  TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.35-r0/build-x86_64-oe-linux/libc.a(libc-tls.o):
  in function `__libc_setup_tls':
  /usr/src/debug/glibc/2.35-r0/git/csu/libc-tls.c:202: undefined reference to `_startup_fatal_not_constant'

  introduced in:
  https://git.openembedded.org/openembedded-core/commit/?id=50ca0eea5424c89c9b39cf69d8bd73fd65f06e95
  with:
  https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a2a6bce7d7e52c1c34369a7da62c501cc350bc31

  Temporary reverting as discussed in:
  https://lists.openembedded.org/g/openembedded-core/message/168463
  (it's also reverted in buildroot now with: https://lore.kernel.org/buildroot/20220720213853.1A27184110@busybox.osuosl.org/t/)

  instead of revert we can use -fexpensive-optimizations which
  will optimize-out the symbol, but that works only with -O1 and
  not -Og used by DEBUG_BUILD

  upstream report:
  https://sourceware.org/bugzilla/show_bug.cgi?id=29249

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc : stable 2.35 branch updates
Sundeep KOKKONDA [Thu, 4 Aug 2022 04:11:21 +0000 (09:41 +0530)] 
glibc : stable 2.35 branch updates

Below commits on glibc-2.35 development branch are updated.

glibc:
0e5b239f45 malloc: Simplify implementation of __malloc_assert
dc2d843045 Update syscall-names.list for Linux 5.18
d56c7e0965 Apply asm redirections in stdio.h before first use [BZ #27087]
c4050b2552 x86: Add missing IS_IN (libc) check to strncmp-sse4_2.S
fdf699edea x86: Move mem{p}{mov|cpy}_{chk_}erms to its own file
de6f7bb873 x86: Move and slightly improve memset_erms
210e9728ff x86: Add definition for __wmemset_chk AVX2 RTM in ifunc impl list
c77cde8172 x86: Put wcs{n}len-sse4.1 in the sse4.1 text section
3eb17048c4 x86: Align entry for memrchr to 64-bytes.
dd3b6857ee x86: Add BMI1/BMI2 checks for ISA_V3 check
ce32ad91eb x86: Cleanup bounds checking in large memcpy case
863987a6ef x86: Add bounds `x86_non_temporal_threshold`
232b7adb14 x86: Add sse42 implementation to strcmp's ifunc
7f7a728b71 x86: Fix misordered logic for setting `rep_movsb_stop_threshold`
6b4a2ab7e0 x86: Align varshift table to 32-bytes
e74385736c x86: ZERO_UPPER_VEC_REGISTERS_RETURN_XTEST expect no transactions
b4744d4414 x86: Shrink code size of memchr-evex.S
5321a217cf x86: Shrink code size of memchr-avx2.S
c536b318f0 x86: Optimize memrchr-avx2.S
f8ba0e0452 x86: Optimize memrchr-evex.S
7001d558a0 x86: Optimize memrchr-sse2.S
54486f520a x86: Add COND_VZEROUPPER that can replace vzeroupper if no `ret`
82560fe43e x86: Create header for VEC classes in x86 strings library
b1f23b6128 x86_64: Add strstr function with 512-bit EVEX
f9f0fbbf7b x86-64: Ignore r_addend for R_X86_64_GLOB_DAT/R_X86_64_JUMP_SLOT
650bf51c78 x86_64: Implement evex512 version of strlen, strnlen, wcslen and wcsnlen
e0cb101d1b x86_64: Remove bzero optimization
51e2d3b53b nptl: Fix ___pthread_unregister_cancel_restore asynchronous restore
cd4f43be3d linux: Fix mq_timereceive check for 32 bit fallback code (BZ 29304)

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa devtool: Add tests to cover devtool handling of various git URL styles
Thomas Roos [Thu, 4 Aug 2022 13:49:20 +0000 (15:49 +0200)] 
oeqa devtool: Add tests to cover devtool handling of various git URL styles

Add two test cases for git URL styles that trigger reformat_git_url.

[YOCTO #11394]

Signed-off-by: Thomas Roos <throos@amazon.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorelocate_sdk.py: ensure interpreter size error causes relocation to fail
Paul Eggleton [Thu, 4 Aug 2022 23:30:59 +0000 (16:30 -0700)] 
relocate_sdk.py: ensure interpreter size error causes relocation to fail

If there is insufficent space to change the interpreter, we were
printing an error here but the overall script did not return an error
code, and thus the SDK installation appeared to succeed - but some of
the binaries will not be in a working state. Allow the relocation to
proceed (so we still get a full list of the failures) but error out at
the end so that the installation is halted.

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoefivar: Fix build with glibc 2.36
Khem Raj [Sun, 7 Aug 2022 04:15:41 +0000 (21:15 -0700)] 
efivar: Fix build with glibc 2.36

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>