]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
2 years agogcc: upgrade 11.2 -> current 12 snapshot master-uninative uninative-3.6
Bernhard Rosenkränzer [Thu, 7 Apr 2022 13:26:34 +0000 (15:26 +0200)] 
gcc: upgrade 11.2 -> current 12 snapshot

gcc 12 is expected to be released this month or early next month.
Update so we're prepared.
This keeps/ports all patches currently applied to 11.2 that haven't
landed upstream yet.

[v2: Back out the zephyr DWARF-4 workaround]

Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoconnman-conf: ignore eth0 in qemu in a way that is not sysvinit-specific
Alexander Kanavin [Thu, 7 Apr 2022 17:00:13 +0000 (19:00 +0200)] 
connman-conf: ignore eth0 in qemu in a way that is not sysvinit-specific

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 5 Apr 2022 21:28:02 +0000 (22:28 +0100)] 
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopackage_manager: sign DEB package feeds
Ferry Toth [Sun, 3 Apr 2022 19:50:45 +0000 (21:50 +0200)] 
package_manager: sign DEB package feeds

Implement debian package repository signature.
For each Release file created in repository subdirectory, a signature
Release.gpg is created.

Signature is performed using gpg backend when the following variables
are set in local.conf:
PACKAGE_CLASSES += "sign_package_feed"
PACKAGE_FEED_GPG_NAME = "<Id of GPG key>"
PACKAGE_FEED_GPG_PASSPHRASE_FILE="<path to password file>"

Signed-off-by: Xavier Berger <xavier.berger@bio-logic.net>
Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogpg-sign: Add parameters to gpg signature function
Xavier Berger [Sun, 3 Apr 2022 19:50:44 +0000 (21:50 +0200)] 
gpg-sign: Add parameters to gpg signature function

output_suffix: If defined, add output_suffix as file name extension.
use_sha256: If True, use sha256 for gpg as digest algorithm

Signed-off-by: Xavier Berger <xavier.berger@bio-logic.net>
Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibsdl2: Disable libunwind dependency in native builds
Carlos Rafael Giani [Tue, 29 Mar 2022 07:51:01 +0000 (09:51 +0200)] 
libsdl2: Disable libunwind dependency in native builds

libunwind-native currently cannot be added to the class-native DEPENDS
due to the following problem:

https://autobuilder.yoctoproject.org/typhoon/#/builders/91/builds/5624/steps/12/logs/stdio

And without libunwind-native, libsdl2-native config fails errors like:

| -- Checking for one of the modules 'libunwind'
| CMake Error at [...]/build/tmp/work/x86_64-linux/libsdl2-native/2.0.20-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message):
|   None of the required 'libunwind' found
| Call Stack (most recent call first):
|   CMakeLists.txt:1367 (pkg_search_module)

Ideally, the libunwind issue would be fixed, and then this could be added
to the libsdl2 recipe:

DEPENDS:append:class-native = " libunwind-native"

However, the libunwind problem is not trivial to fix, and requires a
specific setup to reproduce. As an alternative workaround, turn off
libunwind support in the native SDL2 build by disabling the unwind.h
check in the CMake script (this subsequently turns off all the other
libunwind checks). The main user of libsdl2-native is qemu-native, which
does not need libunwind support in SDL2.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agou-boot: Fix condition for install_spl_helper
Sean Anderson [Tue, 5 Apr 2022 15:00:13 +0000 (11:00 -0400)] 
u-boot: Fix condition for install_spl_helper

The condition for calling install_spl_helper when compiling multiple
configs does not match the condition for a single config. This causes
compilation failures when ${UBOOT_FITIMAGE_ENABLE} is 1 but
${SPL_SIGN_ENABLE} is not.

Fixes: 5af4dfe83c2 ("u-boot: Add infrastructure to SPL verified boot")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooe-init-build-env: add quotes around variables to prevent word splitting
Abongwa Amahnui Bonalais [Tue, 5 Apr 2022 10:47:05 +0000 (11:47 +0100)] 
oe-init-build-env: add quotes around variables to prevent word splitting

Used shellcheck to add quotes to the variables. This is to make sure that
directories with names that have space between, such as
"Desktop/projects/test repo/poky" will not be considered as 2 separate
words. With this modification, running the command "source
oe-init-build-env" will not give the error "bash: oe-init-build-env: No
such file or directory"

Signed-off-by: Abongwa Bonalais Amahnui <abongwabonalais@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agometa: scripts - relocation script adapted to support big-endian machines
Sundeep KOKKONDA [Tue, 5 Apr 2022 09:58:19 +0000 (15:28 +0530)] 
meta: scripts - relocation script adapted to support big-endian machines

relocate_sdk.py was developed for little-endian architures and when tries
to install SDK for big-endian machines errors like below will be shown.
Error: struct.error: unpack requires a string argument of length 32. SDK could
not be set up. Relocate script failed. Abort!
Error: IOError: [Errno 22] Invalid argument. SDK could not be set up. Relocate
script failed. Abort!

To fix this, script is modified to support big-endian architecture.

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoos-release: add os-release-initrd package
Claudius Heine [Tue, 5 Apr 2022 10:13:26 +0000 (12:13 +0200)] 
os-release: add os-release-initrd package

When systemd is used inside an initramfs, it uses the presence of
`/etc/initrd-release` to detect when the system is in the initrd phase.
Otherwise `/etc/initrd-release` has the same format as
`/etc/os-release`.

Add `os-release-initrd` package to provide `/etc/initrd-release` as a
symlink to the os-release file. To avoid adding this file to the
`os-release` package, explicitly only add `/etc/os-release` to the
`os-release` package.

Signed-off-by: Claudius Heine <ch@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopseudo: Fix handling of absolute links
Alexandre Belloni [Tue, 5 Apr 2022 10:08:47 +0000 (12:08 +0200)] 
pseudo: Fix handling of absolute links

Update to a version of pseudo which has a fix for absolute links,
evaluating them from the chroot path.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agodepmodwrapper-cross: Fix missing $
Saul Wold [Tue, 5 Apr 2022 16:54:59 +0000 (09:54 -0700)] 
depmodwrapper-cross: Fix missing $

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoRevert "meta: rust: Bug fix for target definitions returning 'NoneType'"
Richard Purdie [Tue, 5 Apr 2022 16:36:12 +0000 (17:36 +0100)] 
Revert "meta: rust: Bug fix for target definitions returning 'NoneType'"

This reverts commit ef49f89c89889466ee3696ab680f8e10c961a677.

This appears to cause build failures which didn't originally show up in
testing, reverting for now.

2 years agometa: rust: Bug fix for target definitions returning 'NoneType'
Sundeep KOKKONDA [Mon, 4 Apr 2022 16:28:42 +0000 (21:58 +0530)] 
meta: rust: Bug fix for target definitions returning 'NoneType'

The build shows below error while building for arm machines.
Exception: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Detailed error info : https://lists.openembedded.org/g/openembedded-core/message/164004

All the target definitions within tspec dictionary are generted as
NoneType. The changes will fix this issue.

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolinux-yocto/5.10: features/security: Move x86_64 configs to separate file
Bruce Ashfield [Mon, 4 Apr 2022 15:19:16 +0000 (11:19 -0400)] 
linux-yocto/5.10: features/security: Move x86_64 configs to separate file

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

    2278ed571c1 features/security: Move x86_64 configs to separate file

Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolinux-yocto/5.15: features/security: Move x86_64 configs to separate file
Bruce Ashfield [Mon, 4 Apr 2022 15:19:15 +0000 (11:19 -0400)] 
linux-yocto/5.15: features/security: Move x86_64 configs to separate file

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

    63e25b57177 features/security: Move x86_64 configs to separate file

Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolinux-yocto-rt/5.15: aufs: compile fix
Bruce Ashfield [Mon, 4 Apr 2022 15:19:14 +0000 (11:19 -0400)] 
linux-yocto-rt/5.15: aufs: compile fix

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

    29d051cc421a aufs: update compile fix for v5.15+ preempt-rt kernels

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolinux-yocto/5.15: aufs: fixes and optimization
Bruce Ashfield [Mon, 4 Apr 2022 15:19:13 +0000 (11:19 -0400)] 
linux-yocto/5.15: aufs: fixes and optimization

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

    b98d189df02c aufs: bugfix, umount passes NULL to ->parse_monolithic()
    13b883cbbbd9 aufs standalone: cosmetic, missing copyright sentence
    21f8b0d81898 aufs: 5.15.5-20220117 ---> 5.15.5-20220221
    6199fd896645 aufs: tiny, headers after fs_context
    8ddb40e31c29 aufs: fs_context 7/7, finally remount
    69035f71c6fd aufs: fs_context 6/7, now mount
    bc841b970697 aufs: fs_context 5/7, parse all other mount options
    435188053da2 aufs: fs_context 4/7, parse xino options
    9af1f1825cbd aufs: fs_context 3/7, parse the branch-management options
    1c05eb767f8c aufs: fs_context 2/7, parse "br" mount option
    a8488f603134 aufs: fs_context 1/7, skelton of the new shceme
    8e32e0015564 aufs: pre fs_context, convert a static flag to a macro
    f90cb4144aec aufs: pre fs_context, support the incomplete sb and sbinfo case
    948762ef859c aufs: pre fs_context, convert the type of alloc_sbinfo()
    77151a08776b aufs: 5.15.5-20211129 ---> 5.15.5-20220117
    2539adbbbe1e aufs: 5.14-20211018 ---> 5.15.5-20211129
    7d32b25193c4 aufs: for v5.15-rc1, sync_inode() is gone
    66ec0c509225 aufs: for v5.15-rc1, new param 'rcu' for ->get_acl()
    69709dc518cd aufs: for v5.15-rc1, no mand-lock anymore
    ada8fe9543e5 aufs: 5.14-20210906  ---> 5.14-20211018
    b77f7f3f394a Revert "aufs: adjust to v5.15 fs changes"

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolinux-yocto/5.10: update to v5.10.109
Bruce Ashfield [Mon, 4 Apr 2022 15:19:12 +0000 (11:19 -0400)] 
linux-yocto/5.10: update to v5.10.109

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

    d9c5818a0bc0 Linux 5.10.109
    163960a7de13 llc: only change llc->dev when bind() succeeds
    2b5a6d771450 nds32: fix access_ok() checks in get/put_user
    c064268eb8ed wcn36xx: Differentiate wcn3660 from wcn3620
    95193d12f10a tpm: use try_get_ops() in tpm-space.c
    5d3ff9542a40 mac80211: fix potential double free on mesh join
    fcc9797d0d13 rcu: Don't deboost before reporting expedited quiescent state
    87f7ed7c3659 Revert "ath: add support for special 0x0 regulatory domain"
    c971e6a1c8fa crypto: qat - disable registration of algorithms
    9f4e64611ebe ACPI: video: Force backlight native for Clevo NL5xRU and NL5xNU
    0b2ffba2de50 ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3
    2724b72b225d ACPI / x86: Work around broken XSDT on Advantech DAC-BJ01 board
    2c74374c2e88 netfilter: nf_tables: initialize registers in nft_do_chain()
    eb1ba8d1c3e2 drivers: net: xgene: Fix regression in CRC stripping
    a2368d10b7fb ALSA: pci: fix reading of swapped values from pcmreg in AC97 codec
    6936d2ecf822 ALSA: cmipci: Restore aux vol on suspend/resume
    cbd27127af5f ALSA: usb-audio: Add mute TLV for playback volumes on RODE NT-USB
    0ae81ef3ea0e ALSA: pcm: Add stream lock during PCM reset ioctl operations
    b560d670c87d ALSA: pcm: Fix races among concurrent prealloc proc writes
    a38440f00697 ALSA: pcm: Fix races among concurrent prepare and hw_params/hw_free calls
    8527c8f052fb ALSA: pcm: Fix races among concurrent read/write and buffer changes
    0f6947f5f520 ALSA: pcm: Fix races among concurrent hw_params and hw_free calls
    014c81dfb319 ALSA: hda/realtek: Add quirk for ASUS GA402
    05256f3fd6c9 ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc671
    ca8247b4dfb8 ALSA: hda/realtek: Add quirk for Clevo NP50PNJ
    26fe8f31033b ALSA: hda/realtek: Add quirk for Clevo NP70PNJ
    80eab86a86d2 ALSA: usb-audio: add mapping for new Corsair Virtuoso SE
    5ce74ff70593 ALSA: oss: Fix PCM OSS buffer allocation overflow
    db03abd0dae0 ASoC: sti: Fix deadlock via snd_pcm_stop_xrun() call
    571df3393f52 llc: fix netdevice reference leaks in llc_ui_bind()
    56dc187b35d5 staging: fbtft: fb_st7789v: reset display before initialization
    351493858ebc tpm: Fix error handling in async work
    ea21245cdcab cgroup-v1: Correct privileges check in release_agent writes
    824a950c3f11 cgroup: Use open-time cgroup namespace for process migration perm checks
    f28364fe384f cgroup: Allocate cgroup_file_ctx for kernfs_open_file->priv
    9eeaa2d7d58a exfat: avoid incorrectly releasing for root inode
    ae8ec5eabb1a net: ipv6: fix skb_over_panic in __ip6_append_data
    25c23fe40e6e nfc: st21nfca: Fix potential buffer overflows in EVT_TRANSACTION
    9940314ebfc6 Linux 5.10.108
    37119edab8f4 Revert "selftests/bpf: Add test for bpf_timer overwriting crash"
    9248694dac20 esp: Fix possible buffer overflow in ESP transformation
    96340cdd5526 smsc95xx: Ignore -ENODEV errors when device is unplugged
    e27b51af5449 net: usb: Correct reset handling of smsc95xx
    b54daeafc1b0 net: usb: Correct PHY handling of smsc95xx
    204d38dc6a81 perf symbols: Fix symbol size calculation condition
    f0d43d22d241 Input: aiptek - properly check endpoint type
    98e7a654a5be scsi: mpt3sas: Page fault in reply q processing
    10a805334a11 usb: usbtmc: Fix bug in pipe direction for control transfers
    00bdd9bf1ac6 usb: gadget: Fix use-after-free bug by not setting udc->dev.driver
    28bc0267399f usb: gadget: rndis: prevent integer overflow in rndis_set_response()
    2c010c61e614 arm64: fix clang warning about TRAMP_VALIAS
    277b7f63948b net: mscc: ocelot: fix backwards compatibility with single-chain tc-flower offload
    2550afba2a30 net: bcmgenet: skip invalid partial checksums
    bf5b7aae86d3 bnx2x: fix built-in kernel driver load failure
    c07fdba12fb0 net: phy: mscc: Add MODULE_FIRMWARE macros
    ba50073cf4af net: dsa: Add missing of_node_put() in dsa_port_parse_of
    a630ad5e8b2d net: handle ARPHRD_PIMREG in dev_is_mac_header_xmit()
    336b6be6ad09 drm/panel: simple: Fix Innolux G070Y2-L01 BPP settings
    9d45aec02f7b drm/imx: parallel-display: Remove bus flags check in imx_pd_bridge_atomic_check()
    9b763ceda6f8 hv_netvsc: Add check for kvmalloc_array
    09a7264fb0d0 atm: eni: Add check for dma_map_single
    70b7b3c055fd net/packet: fix slab-out-of-bounds access in packet_recvmsg()
    169add82d201 net: phy: marvell: Fix invalid comparison in the resume and suspend functions
    01fac1ca8ab9 esp6: fix check on ipv6_skip_exthdr's return value
    d9fe590970c4 vsock: each transport cycles only on its own sockets
    ac7dd60946c0 efi: fix return value of __setup handlers
    fa3aa103e79c mm: swap: get rid of livelock in swapin readahead
    df3301dc60a3 ocfs2: fix crash when initialize filecheck kobj fails
    0f9b7b8df175 crypto: qcom-rng - ensure buffer for generate is completely filled

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolinux-yocto/5.15: update to v5.15.32
Bruce Ashfield [Mon, 4 Apr 2022 15:19:11 +0000 (11:19 -0400)] 
linux-yocto/5.15: update to v5.15.32

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

    e29be6724adb Linux 5.15.32
    60981bb5ce18 llc: only change llc->dev when bind() succeeds
    22ac37c53065 nds32: fix access_ok() checks in get/put_user
    110dea31d48f m68k: fix access_ok for coldfire
    cdb96445297b wcn36xx: Differentiate wcn3660 from wcn3620
    476ddd23f818 tpm: use try_get_ops() in tpm-space.c
    12e407a8ef17 mac80211: fix potential double free on mesh join
    e65d28d4e9bf uaccess: fix integer overflow on access_ok()
    058d62a03e7d rcu: Don't deboost before reporting expedited quiescent state
    b094fece3810 drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()
    5023652cc6e4 Revert "ath: add support for special 0x0 regulatory domain"
    4b6a48f87d03 Bluetooth: btusb: Add one more Bluetooth part for the Realtek RTL8852AE
    cb807cb52a8e crypto: qat - disable registration of algorithms
    57a2b3f8bf1c ACPI: video: Force backlight native for Clevo NL5xRU and NL5xNU
    a01ac2411489 ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3
    8942aac69016 ACPI / x86: Work around broken XSDT on Advantech DAC-BJ01 board
    1bd57dea4561 netfilter: nf_tables: validate registers coming from userspace.
    fafb904156fb netfilter: nf_tables: initialize registers in nft_do_chain()
    3e27eafac659 drivers: net: xgene: Fix regression in CRC stripping
    c2052ad0c74f ALSA: pci: fix reading of swapped values from pcmreg in AC97 codec
    9abaacd6491e ALSA: cmipci: Restore aux vol on suspend/resume
    099a1cc21b16 ALSA: usb-audio: Add mute TLV for playback volumes on RODE NT-USB
    f4827c62b649 ALSA: pcm: Add stream lock during PCM reset ioctl operations
    51fce708ab89 ALSA: pcm: Fix races among concurrent prealloc proc writes
    cb6a39c5ebd0 ALSA: pcm: Fix races among concurrent prepare and hw_params/hw_free calls
    47711ff10c7e ALSA: pcm: Fix races among concurrent read/write and buffer changes
    33061d0fba51 ALSA: pcm: Fix races among concurrent hw_params and hw_free calls
    3b1bacd00ac3 ALSA: hda/realtek: Add quirk for ASUS GA402
    0e7cdc8059a0 ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc671
    8e6ea2176222 ALSA: hda/realtek: Add quirk for Clevo NP50PNJ
    85060f4868db ALSA: hda/realtek: Add quirk for Clevo NP70PNJ
    10cdffd4854a ALSA: usb-audio: add mapping for new Corsair Virtuoso SE
    7a40cbf3579a ALSA: oss: Fix PCM OSS buffer allocation overflow
    5e431799c35b ASoC: sti: Fix deadlock via snd_pcm_stop_xrun() call
    e90729961083 llc: fix netdevice reference leaks in llc_ui_bind()
    5b2ca3b8213a Bluetooth: btusb: Add another Realtek 8761BU
    42b9f6d19faa tpm: Fix error handling in async work
    2317fd3b126c net: ipv6: fix skb_over_panic in __ip6_append_data
    a34c47b1ab07 nfc: st21nfca: Fix potential buffer overflows in EVT_TRANSACTION
    96e48ac9a685 Linux 5.15.31
    4c5d94990fa2 btrfs: skip reserved bytes warning on unmount after log cleanup failure
    23775775b9a6 perf symbols: Fix symbol size calculation condition
    e762f57ff255 Input: aiptek - properly check endpoint type
    0cd2dd4bcf4a scsi: mpt3sas: Page fault in reply q processing
    c69aef9db878 usb: usbtmc: Fix bug in pipe direction for control transfers
    2015c23610cd usb: gadget: Fix use-after-free bug by not setting udc->dev.driver
    56b38e3ca406 usb: gadget: rndis: prevent integer overflow in rndis_set_response()
    222f5e2d7f20 arm64: fix clang warning about TRAMP_VALIAS
    80974bb73027 iavf: Fix hang during reboot/shutdown
    800a17adb531 net: mscc: ocelot: fix backwards compatibility with single-chain tc-flower offload
    2d7cff7e1fee net: bcmgenet: skip invalid partial checksums
    6840fdeab423 bnx2x: fix built-in kernel driver load failure
    f07e0b020f7a net: phy: mscc: Add MODULE_FIRMWARE macros
    e396fda10ddf net: dsa: Add missing of_node_put() in dsa_port_parse_of
    11dab4a800a4 drm: Don't make DRM_PANEL_BRIDGE dependent on DRM_KMS_HELPERS
    a1adf00e1728 net: handle ARPHRD_PIMREG in dev_is_mac_header_xmit()
    8ee52c302191 drm/panel: simple: Fix Innolux G070Y2-L01 BPP settings
    43dcd410809e drm/imx: parallel-display: Remove bus flags check in imx_pd_bridge_atomic_check()
    ab0ab1761831 hv_netvsc: Add check for kvmalloc_array
    735f918cc2c8 iavf: Fix double free in iavf_reset_task
    b2bc45327e8c atm: eni: Add check for dma_map_single
    a055f5f2841f net/packet: fix slab-out-of-bounds access in packet_recvmsg()
    a296f3ae8009 net: phy: marvell: Fix invalid comparison in the resume and suspend functions
    b9820bf09f59 esp6: fix check on ipv6_skip_exthdr's return value
    093f11b49609 vsock: each transport cycles only on its own sockets
    1dcc1b888223 alx: acquire mutex for alx_reinit in alx_change_mtu
    4b49ba22a253 efi: fix return value of __setup handlers
    16ac5dca1e13 drm/mgag200: Fix PLL setup for g200wb and g200ew
    d4ad8736ac98 block: release rq qos structures for queue without disk
    6829aa17ca55 mm: swap: get rid of livelock in swapin readahead
    b786b64dcb31 ocfs2: fix crash when initialize filecheck kobj fails
    ab9337c7cb6f crypto: qcom-rng - ensure buffer for generate is completely filled

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agokmod: Update exclude patch to Accepted
Saul Wold [Mon, 4 Apr 2022 14:12:05 +0000 (07:12 -0700)] 
kmod: Update exclude patch to Accepted

Upstream made a few tweaks and accepted the patch.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agovim: Upgrade 8.2.4524 -> 8.2.4681
Richard Purdie [Mon, 4 Apr 2022 12:33:03 +0000 (13:33 +0100)] 
vim: Upgrade 8.2.4524 -> 8.2.4681

License change is a date in the license file only.

This includes a fix for CVE-2022-0943.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobitbake.conf: Drop unexports from a different era
Richard Purdie [Mon, 4 Apr 2022 11:53:04 +0000 (12:53 +0100)] 
bitbake.conf: Drop unexports from a different era

A long time ago, we used to pass our parent execution environment into our task
environments during build. We stopped doing that for reproducibility and consistency
of builds. The variables TARGET_ARCH, DISTRO and MACHINE are not exported into
tasks and hence we don't need to unexport them. The resasons these exist is
therefore no longer relavent and they can be removed. This happens to improve
bitbake -e output from a user commandline perspective.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agounzip: fix CVE-2021-4217
Joe Slater [Thu, 31 Mar 2022 18:42:30 +0000 (11:42 -0700)] 
unzip: fix CVE-2021-4217

Avoid a null pointer dereference.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agowaffle: The surfaceless-egl and gbm requires opengl
Robert Yang [Sat, 2 Apr 2022 03:22:22 +0000 (20:22 -0700)] 
waffle: The surfaceless-egl and gbm requires opengl

Fixed when opengl is not in DISTRO_FEATURES:
ERROR: Nothing PROVIDES 'virtual/libgbm' (but /path/to/waffle/waffle_1.7.0.bb DEPENDS on or otherwise requires it)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agotzdata: update to 2022a
Oleksandr Kravchuk [Sat, 2 Apr 2022 11:47:53 +0000 (13:47 +0200)] 
tzdata: update to 2022a

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobitbake.conf: Remove ERROR_QA from BB_HASHEXCLUDE_COMMON
Peter Kjellerstedt [Fri, 1 Apr 2022 23:59:05 +0000 (01:59 +0200)] 
bitbake.conf: Remove ERROR_QA from BB_HASHEXCLUDE_COMMON

If a QA test is added to ERROR_QA, all package_qa tasks should rerun
to make sure any already existing errors are caught.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoinsane.bbclass: Make changes to QA_EMPTY_DIRS trigger package_qa to rerun
Peter Kjellerstedt [Fri, 1 Apr 2022 23:59:06 +0000 (01:59 +0200)] 
insane.bbclass: Make changes to QA_EMPTY_DIRS trigger package_qa to rerun

If "empty-dirs" is in ERROR_QA, then changes to QA_EMPTY_DIRS should
trigger the package_qa tasks to be rerun.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoinsane.bbclass: Make do_qa_patch() depend on if patch-fuzz is in ERROR_QA
Peter Kjellerstedt [Fri, 1 Apr 2022 23:59:04 +0000 (01:59 +0200)] 
insane.bbclass: Make do_qa_patch() depend on if patch-fuzz is in ERROR_QA

Adding "patch-fuzz" to ERROR_QA should trigger the patch tasks to
rerun to make sure any already existing fuzz is caught. This is
achieved by using bb.utils.filter() to see if "patch-fuzz" is in
ERROR_QA/WARN_QA as it adds whether the filtered strings are set or
not to the task hash.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agomirrors: Switch glibc and binutils to use shallow mirror tarballs
Richard Purdie [Wed, 30 Mar 2022 12:23:04 +0000 (13:23 +0100)] 
mirrors: Switch glibc and binutils to use shallow mirror tarballs

These two repositories are large and overload our downloads server as a
premirror but the recipes are easier to maintain as git urls. Compromise
and use shallow clones for them.

In order to be effective, we need premirror entries on where to find
the shallow mirror tarballs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogcc: sanitizer: Fix tsan against glibc 2.34
Sundeep KOKKONDA [Tue, 15 Mar 2022 15:55:07 +0000 (21:25 +0530)] 
gcc: sanitizer: Fix tsan against glibc 2.34

The patch is needed in order to support recent glibc (2.34).

libsanitizer/ChangeLog:
PR sanitizer/101749
        * sanitizer_common/sanitizer_posix_libcdep.cpp: Prevent
generation of dependency on _cxa_guard for static
initialization.

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agokernel.bbclass: Use KERNEL_IMAGEDEST instead of hardcoded boot path
Alessio Igor Bogani [Fri, 1 Apr 2022 11:26:41 +0000 (13:26 +0200)] 
kernel.bbclass: Use KERNEL_IMAGEDEST instead of hardcoded boot path

The behaviour doesn't change because KERNEL_IMAGEDEST is defined as
'boot' in the same file (line 215).

Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopopt: add ptest
Simone Weiss [Fri, 1 Apr 2022 14:46:29 +0000 (16:46 +0200)] 
popt: add ptest

Add a ptest for popt to core-image-ptest-all. Provide a patch to popt to
adopt the test format to "simple test" and a script for running the test.
All tests passed on a trial run.

Signed-off-by: Simone Weiss <simone.weiss@elektrobit.com>
Signed-off-by: David Niederpruem <david.niederpruem@elektrobit.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-jinja2: Correct HOMEPAGE
Peter Kjellerstedt [Fri, 1 Apr 2022 21:58:20 +0000 (23:58 +0200)] 
python3-jinja2: Correct HOMEPAGE

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoglib-2.0: Backport patches C++ variant of g_atomic_int_compare_and_exchange()
Khem Raj [Fri, 1 Apr 2022 14:41:14 +0000 (07:41 -0700)] 
glib-2.0: Backport patches C++ variant of g_atomic_int_compare_and_exchange()

This fixes a regression when glib-2.0 was used with clang.

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>
2 years agodepmodwrapper: Use nonarch_base_libdir for depmod.d
Saul Wold [Thu, 31 Mar 2022 22:21:53 +0000 (15:21 -0700)] 
depmodwrapper: Use nonarch_base_libdir for depmod.d

This ensure that when depmod-native runs we can find the correct
exclude.conf information, in this case adding .debug to ignore
the .debug kernell modules. The kmod utilities like depmod can use
either /etc/depmod.d or /lib/depmod.d. The kmod recipe is installing
the existing search.conf to /lib/depmod.d (nonarch_base_lib)

When the busybox modutils are used, /lib/depmod.d is not used, so
it's safe add the exclude.conf file to /lib/depmod.d.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agokmod: Add an exclude directive to depmod
Saul Wold [Thu, 31 Mar 2022 22:21:52 +0000 (15:21 -0700)] 
kmod: Add an exclude directive to depmod

This adds a new configuration directive to depmod that causes
depmod to exclude a give path entry like .debug.

kernel-dbg provides the modules .debug/<module>.ko files and
when installed either directly or when dbg-pkgs are selected
this can cause depmod to fail.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobusybox: Exclude .debug from depmod
Saul Wold [Thu, 31 Mar 2022 22:21:51 +0000 (15:21 -0700)] 
busybox: Exclude .debug from depmod

As with the kmod version of depmod, exclude .debug from being
searched. Since busybox does not use the depmod.d and any
configuration file option is ignored we just hardcode it.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agomeson: Robustify compiler detection logic
Khem Raj [Thu, 31 Mar 2022 22:29:00 +0000 (15:29 -0700)] 
meson: Robustify compiler detection logic

meson would fail to detect compiler type in some rare care where
specific substring '-xt' is detected in compiler --version output and
it so happens that this string can be generated by clang --version if
clang is installed into a directory containing 'xt-' in its name. with
recipe specific sysroots, this is quite likely to happen in OE build
system as we are seeing the issue with newly proposed gnome-text-editor
recipe

https://lists.openembedded.org/g/openembedded-devel/topic/90150031#96301

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3: update to 3.10.4
Oleksandr Kravchuk [Thu, 31 Mar 2022 21:57:51 +0000 (23:57 +0200)] 
python3: update to 3.10.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest: generalise test_devtool_virtual_kernel_modify
Ross Burton [Thu, 31 Mar 2022 18:29:15 +0000 (19:29 +0100)] 
oeqa/selftest: generalise test_devtool_virtual_kernel_modify

Generalise this test so that it works on more than qemux86-64:

- Don't edit a file in arch/x86 to cause a rebuild, instead use init/
- Look for the edits in the build tree, as the deployed kernel could be
  of any type (zImage/bzImage/etc) and edits may be in the compressed
  part.

Also remove redundant checks on the result of runCmd(), as this will
raise AssertionError exceptions itself so the explicit asserts will
never trigger.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: use self.td instead of get_bb_var to save on bitbake calls
Ross Burton [Thu, 31 Mar 2022 18:29:14 +0000 (19:29 +0100)] 
oeqa/selftest/wic: use self.td instead of get_bb_var to save on bitbake calls

When a test case starts, self.td is populated with all the variables in
the data store.  Typically this can be used instead of get_bb_var(),
which saves a bitbake call per variable lookup.

The only catch is that in parallel runs the build directory is moved
after td is populated, so paths in the build directory are wrong: these
still need to be fetched in the test.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: use os.path.join to join paths
Ross Burton [Thu, 31 Mar 2022 18:29:13 +0000 (19:29 +0100)] 
oeqa/selftest/wic: use os.path.join to join paths

Instead of using string concatenation, use os.path.join.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: rearrange tests
Ross Burton [Thu, 31 Mar 2022 18:29:12 +0000 (19:29 +0100)] 
oeqa/selftest/wic: rearrange tests

Split the tests into further classes: one which exercises the CLI and
doesn't need to build images at all, and another which is just the
tests that manipulate existing images.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: cleanup WicTestCase.setUpLocal
Ross Burton [Thu, 31 Mar 2022 18:29:11 +0000 (19:29 +0100)] 
oeqa/selftest/wic: cleanup WicTestCase.setUpLocal

Use os.path.join to construct paths, and invoke bitbake once instead of
three times.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/oescripts: refactor skipping logic
Ross Burton [Thu, 31 Mar 2022 18:29:10 +0000 (19:29 +0100)] 
oeqa/selftest/oescripts: refactor skipping logic

OEScriptTests currently skips if cairo isn't present, and does a build
of core-image-minimal.  This is only required for the
OEPybootchartguyTests tests, so move that logic there so that the
OEListPackageconfigTests run even if cairo isn't available.

This leaves OEScriptTests as a simple class containing the scripts_dir
assignment, which can then be reused by other tests to avoid code
duplication.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa: rationalise skipifqemu decorators
Ross Burton [Thu, 31 Mar 2022 18:29:09 +0000 (19:29 +0100)] 
oeqa: rationalise skipifqemu decorators

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest: tag tests that use runqemu
Ross Burton [Thu, 31 Mar 2022 18:29:08 +0000 (19:29 +0100)] 
oeqa/selftest: tag tests that use runqemu

There may be environments or machines which don't have working runqemu,
so tag all of the tests which use runqemu() so that they can be skipped.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/core/decorators/data: improve has_* logic
Ross Burton [Thu, 31 Mar 2022 18:29:07 +0000 (19:29 +0100)] 
oeqa/core/decorators/data: improve has_* logic

has_feature() should be splitting the feature string into substrings and
then looking for membership instead of looking for simple substrings.

has_machine() should be using equality instead of substrings.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest: remove unused imports
Ross Burton [Thu, 31 Mar 2022 18:29:06 +0000 (19:29 +0100)] 
oeqa/selftest: remove unused imports

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/core/utils/misc: remove redundant file
Ross Burton [Thu, 31 Mar 2022 18:29:05 +0000 (19:29 +0100)] 
oeqa/core/utils/misc: remove redundant file

This file dates back to 2016. Half of the functions have never been used,
the rest are used in one place and have now been replaced.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agotestimage: inline updateTestData()
Ross Burton [Thu, 31 Mar 2022 18:29:04 +0000 (19:29 +0100)] 
testimage: inline updateTestData()

updateTestData() is just a simple loop that is only used here, so just
inline it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/core/decorator: remove redundant code
Ross Burton [Thu, 31 Mar 2022 18:29:03 +0000 (19:29 +0100)] 
oeqa/core/decorator: remove redundant code

There's no need to wrap *tags in a potential list, as *tags will always
be a tuple.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/runtime/decorator/package.py: remove use of strToSet
Ross Burton [Thu, 31 Mar 2022 18:29:02 +0000 (19:29 +0100)] 
oeqa/runtime/decorator/package.py: remove use of strToSet

There's no need to use a series of over-generalised functions to just
wrap a string in a tuple.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/buildoptions: set PACKAGE_CLASSES in test_arch_work_dir_and_export_source
Ross Burton [Thu, 31 Mar 2022 18:29:01 +0000 (19:29 +0100)] 
oeqa/selftest/buildoptions: set PACKAGE_CLASSES in test_arch_work_dir_and_export_source

test_arch_work_dir_and_export_source uses the archiver to generate SRPMS,
so explicitly set PACKAGE_CLASSES to ensure that package_rpm is used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: add more arch-specific annotations
Ross Burton [Thu, 31 Mar 2022 18:29:00 +0000 (19:29 +0100)] 
oeqa/selftest/wic: add more arch-specific annotations

Some tests which are marked as x86-specific will actually work on
aarch64 (e.g. use EFI), whilst some other tests really are x86-specific
(e.g. use syslinux).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: don't hardcode kernel image type in test_wic_rm
Ross Burton [Thu, 31 Mar 2022 18:28:59 +0000 (19:28 +0100)] 
oeqa/selftest/wic: don't hardcode kernel image type in test_wic_rm

Don't assume bzImage, resepct KERNEL_IMAGETYPE.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: clean up only_for_arch decorator
Ross Burton [Thu, 31 Mar 2022 18:28:58 +0000 (19:28 +0100)] 
oeqa/selftest/wic: clean up only_for_arch decorator

There's no need to pass a recipe name when determining the target
architecture, there's no need to cap the size of the lru_cache as it
will only have one entry, and __name__ is set by @wraps.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: remove redundant asserts
Ross Burton [Thu, 31 Mar 2022 18:28:57 +0000 (19:28 +0100)] 
oeqa/selftest/wic: remove redundant asserts

By default bitbake() will raise an assertion if it fails, so there's no
need to wrap it in a further assert.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/wic: use os.rename instead of bb.utils.rename
Ross Burton [Thu, 31 Mar 2022 18:28:56 +0000 (19:28 +0100)] 
oeqa/selftest/wic: use os.rename instead of bb.utils.rename

bb.utils.rename() only exists to handle moves across filesystems. As
these moves are within the same directory we can just use os.rename().

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/devtool: ensure Git username is set before upgrade tests
Ross Burton [Thu, 31 Mar 2022 18:28:55 +0000 (19:28 +0100)] 
oeqa/selftest/devtool: ensure Git username is set before upgrade tests

The 'devtool upgrade' tests fail if Git doesn't know the user's name or
email, so verify this before the tests start and skip if it is not.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoimage_types: hddimg and iso only work on x86
Ross Burton [Thu, 31 Mar 2022 18:28:54 +0000 (19:28 +0100)] 
image_types: hddimg and iso only work on x86

These image types use syslinux which is only available on x86, so only
add them to IMAGE_TYPES on x86.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobuildtools-tarball: include nativesdk-python3-pyyaml
Ross Burton [Thu, 31 Mar 2022 18:28:53 +0000 (19:28 +0100)] 
buildtools-tarball: include nativesdk-python3-pyyaml

BitBake can optionally 'import yaml' if BB_LOGCONFIG specifies a yaml
file.  This is a 3rd party module, so that this works out of the box
when buildtools is used -- either explicitly via buildtools-tarball or
implicitly via eSDK --  we can add pyyaml to the buildtools.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoinitscripts: Clean up license handling/identifiers
Richard Purdie [Thu, 31 Mar 2022 11:51:31 +0000 (12:51 +0100)] 
initscripts: Clean up license handling/identifiers

The license is clear, add an SPDX license identification headers to the scripts
and drop the weird patch, we don't need it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agokeymaps: Clean up license handling
Richard Purdie [Thu, 31 Mar 2022 11:51:30 +0000 (12:51 +0100)] 
keymaps: Clean up license handling

The license is clear, add an SPDX license identification header to the script
and drop the weird patch, we don't need it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomodutils-initscripts: Change license PD -> MIT
Richard Purdie [Thu, 31 Mar 2022 11:51:29 +0000 (12:51 +0100)] 
modutils-initscripts: Change license PD -> MIT

The file was originally added to OE here:
https://git.openembedded.org/openembedded/commit/modutils/files/modutils.sh?id=3b3989442075d0a4c6c32cb187de17d87bf65fbd

and the license added here as "PD":
https://git.openembedded.org/openembedded/commit/modutils/modutils-initscripts.oe?id=4f7d2b1b63d166e5de146d71e5c942419424446e

As "Public Domain", we can re-license it to MIT, which fits in with the rest of
our metadata and has an SPDX identifier, so lets do that and try and keep our
licenses simpler.

This also them removes the need for a weird license patch in SRC_URI.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobase: Clean up module import compatibility code
Richard Purdie [Thu, 31 Mar 2022 11:01:51 +0000 (12:01 +0100)] 
base: Clean up module import compatibility code

This code was for old versions of bitbake which we're now long past. Drop it
and simplify the code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobase: Don't add duplicates to sys.path
Richard Purdie [Thu, 31 Mar 2022 11:01:50 +0000 (12:01 +0100)] 
base: Don't add duplicates to sys.path

We can re-trigger this code and there is little point in stacking a ton of duplicate
paths which just waste time during searches for modules. This could in theory alter
layer module search order but that seems unlikely in common use.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocmake: support to create per-toolchain cmake file in SDK
Jagadeesh Krishnanjanappa [Thu, 31 Mar 2022 02:46:45 +0000 (02:46 +0000)] 
cmake: support to create per-toolchain cmake file in SDK

The patch creates ${MULTIMACH_TARGET_SYS}-toolchain.cmake file
at ${SDK_INSTALL_DIR}/sysroots/${SDK_SYS}/usr/share/cmake/, which is
per-toolchain CMake toolchain file containing arch-specific values
and independent of OE environment variables.
The file gets created after installing SDK toolchain installer
ined by running "bitbake -c populate_sdk <image>".

The changes are similar to meson-setup.py which is used to
create arch-specific
${SDK_INSTALL_DIR}/sysroots/${SDK_SYS}/usr/share/meson/*-meson.cross

[YOCTO #14644]

Tested-by: Jan Dorniak <jaskij@gmail.com>
Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoweston: Add a knob to control simple clients
Khem Raj [Wed, 30 Mar 2022 18:00:45 +0000 (11:00 -0700)] 
weston: Add a knob to control simple clients

Some graphics driver implementations ( e.g sgx ) do not yet support APIs from mesa
21.x, and some portions of weston simple clients depend on these APIs,
therefore introduce a way to specify all or a selection fo clients to
build

Fixes

clients/weston-simple-dmabuf-feedback.p/simple-dmabuf-
feedback.c.o: in function `create_dmabuf_buffer':
| simple-dmabuf-feedback.c:(.text+0x1076): undefined reference to `gbm_bo_get_fd_for_plane'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogit: make expat and curl into PACKAGECONFIG items
Rasmus Villemoes [Wed, 30 Mar 2022 10:46:15 +0000 (12:46 +0200)] 
git: make expat and curl into PACKAGECONFIG items

It can be useful to use git on target (e.g. with some wrapper like
etckeeper for keeping track of changes to /etc), and for such cases,
it is likely one has no need for pulling from/pushing to http[s]
repositories. From the INSTALL file:

    - "libcurl" library ... If you do not use http:// or https://
      repositories, and do not want to put patches into an IMAP
      mailbox, you do not have to have them (use NO_CURL).

    - "expat" library; git-http-push uses it for remote lock
      management over DAV.  Similar to "curl" above, this is
      optional (with NO_EXPAT).

Setting --without-expat and --without-curl reduces the size of the
installed "git" package from 18M to 12M, in addition to avoiding
pulling those libraries into the rootfs.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agomirrors: Add missing gitsm entries for yocto/oe mirrors
Richard Purdie [Wed, 30 Mar 2022 09:21:28 +0000 (10:21 +0100)] 
mirrors: Add missing gitsm entries for yocto/oe mirrors

The missing gitsm:// mappings looks like an oversight, add them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoconvert-variable-renames: Fix typo in description
Simon Kuhnle [Wed, 30 Mar 2022 08:35:24 +0000 (10:35 +0200)] 
convert-variable-renames: Fix typo in description

Signed-off-by: Simon Kuhnle <simon.kuhnle@methodpark.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogobject-introspection: fix default search path for girdir
Chen Qi [Wed, 30 Mar 2022 03:08:45 +0000 (20:08 -0700)] 
gobject-introspection: fix default search path for girdir

When running g-ir-scanner, we get the following error:

  Couldn't find include 'GObject-2.0.gir' (search path:
  '['/usr/lib64', 'gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0',
  '/usr/share/gir-1.0', '/usr/share/gir-1.0']')

This is because g-ir-tool-template.in is not setting girdir correctly.
It's using the prefix instead of the actual girdir.

Note that we don't get such error at do_rootfs time because the extra
directories are speicified. But we will get such error at runtime when
multilib is enabled.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocve-check: add coverage statistics on recipes with/without CVEs
Marta Rybczynska [Tue, 29 Mar 2022 12:54:32 +0000 (14:54 +0200)] 
cve-check: add coverage statistics on recipes with/without CVEs

Until now the CVE checker was giving information about CVEs found for
a product (or more products) contained in a recipe. However, there was
no easy way to find out which products or recipes have no CVEs. Having
no reported CVEs might mean there are simply none, but can also mean
a product name (CPE) mismatch.

This patch adds CVE_CHECK_COVERAGE option enabling a new type of
statistics. Then we use the new JSON format to report the information.
The legacy text mode report does not contain it.

This option is expected to help with an identification of recipes with
mismatched CPEs, issues in the database and more.

This work is based on [1], but adding the JSON format makes it easier
to implement, without additional result files.

[1] https://lists.openembedded.org/g/openembedded-core/message/159873

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocve-check: add json format
Marta Rybczynska [Tue, 29 Mar 2022 12:54:31 +0000 (14:54 +0200)] 
cve-check: add json format

Add an option to output the CVE check in a JSON-based format.
This format is easier to parse in software than the original
text-based one and allows post-processing by other tools.

Output formats are now handed by CVE_CHECK_FORMAT_TEXT and
CVE_CHECK_FORMAT_JSON. Both of them are enabled by default.

The JSON output format gets generated in a similar way to the
text format with the exception of the manifest: appending to
JSON arrays requires parsing the file. Because of that we
first write JSON fragments and then assemble them in one pass
at the end.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agozlib: backport the fix for CVE-2018-25032
Ross Burton [Tue, 29 Mar 2022 13:06:29 +0000 (14:06 +0100)] 
zlib: backport the fix for CVE-2018-25032

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-urllib3: upgrade 1.26.8 -> 1.26.9
wangmy [Tue, 29 Mar 2022 01:46:27 +0000 (09:46 +0800)] 
python3-urllib3: upgrade 1.26.8 -> 1.26.9

Changelog:
==========
- Changed urllib3[brotli] extra to favor installing Brotli libraries that are
  still receiving updates like brotli and brotlicffi instead of brotlipy.
  This change does not impact behavior of urllib3, only which dependencies are
  installed.
- Fixed a socket leaking when HTTPSConnection.connect() raises an exception.
- Fixed server_hostname being forwarded from PoolManager to HTTPConnectionPool
  when requesting an HTTP URL. Should only be forwarded when requesting an HTTPS URL.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-pytz: upgrade 2021.3 -> 2022.1
wangmy [Tue, 29 Mar 2022 01:30:58 +0000 (09:30 +0800)] 
python3-pytz: upgrade 2021.3 -> 2022.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-pytest-subtests: upgrade 0.6.0 -> 0.7.0
wangmy [Tue, 29 Mar 2022 01:26:55 +0000 (09:26 +0800)] 
python3-pytest-subtests: upgrade 0.6.0 -> 0.7.0

Changelog:
=========
Fixed support for pytest 7.0, and pytest>=7.0 is now required.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-pytest-runner: upgrade 5.3.1 -> 6.0.0
wangmy [Tue, 29 Mar 2022 01:18:24 +0000 (09:18 +0800)] 
python3-pytest-runner: upgrade 5.3.1 -> 6.0.0

Add dependency python3-distutils.

Changelog:
=========
- #49: Dropped workaround for older setuptools versions.
- Require Python 3.7.
- #58: Fixed syntax issue in changelog.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-jinja2: upgrade 3.0.3 -> 3.1.1
wangmy [Tue, 29 Mar 2022 01:02:20 +0000 (09:02 +0800)] 
python3-jinja2: upgrade 3.0.3 -> 3.1.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-imagesize: upgrade 1.2.0 -> 1.3.0
wangmy [Tue, 29 Mar 2022 00:54:00 +0000 (08:54 +0800)] 
python3-imagesize: upgrade 1.2.0 -> 1.3.0

Add dependency python3-xml.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-hypothesis: upgrade 6.39.2 -> 6.39.5
wangmy [Tue, 29 Mar 2022 00:39:40 +0000 (08:39 +0800)] 
python3-hypothesis: upgrade 6.39.2 -> 6.39.5

Changelog:
=========
Improve error detection and message when Hypothesis is
run on a Python implementation without support for "-0.0", which is
required for the "floats()" strategy but can be disabled by unsafe
compiler options (issue #3265).

If the "shrink" phase is disabled, stop the "generate" phase as
soon as an error is found regardless of the value of the
"report_multiple_examples" setting, since that's probably what you
wanted (issue #3244).

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-dbusmock: upgrade 0.26.1 -> 0.27.3
wangmy [Tue, 29 Mar 2022 00:33:38 +0000 (08:33 +0800)] 
python3-dbusmock: upgrade 0.26.1 -> 0.27.3

Changelog:
=========
packit: Fix file name to sync

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-asn1crypto: upgrade 1.4.0 -> 1.5.1
wangmy [Tue, 29 Mar 2022 00:23:49 +0000 (08:23 +0800)] 
python3-asn1crypto: upgrade 1.4.0 -> 1.5.1

License-Update: year updated to 2022

Changelog:
=========
- Handle RSASSA-PSS in keys.PrivateKeyInfo.bit_size and
  keys.PublicKeyInfo.bit_size
- Handle RSASSA-PSS in keys.PrivateKeyInfo.wrap and keys.PublicKeyInfo.wrap
- Updated docs for keys.PrivateKeyInfo.algorithm and
  keys.PublicKeyInfo.algorithm to reflect that they can return "rsassa_pss"

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agovolatile-binds: add recipe variable to allow disabling OverlayFS
Luca Boccassi [Mon, 28 Mar 2022 15:26:54 +0000 (16:26 +0100)] 
volatile-binds: add recipe variable to allow disabling OverlayFS

Use the new MOUNT_COPYBIND_AVOID_OVERLAYFS flag provided by mount-copybind.
When SELinux is enabled, processes accessing OverlayFS mounts will get a denial
if the process setting up the mount doesn't have all the permissions that
the accessor has.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agokernel-fitimage.bbclass: introduce FIT_SUPPORTED_INITRAMFS_FSTYPES
Ming Liu [Mon, 28 Mar 2022 14:15:51 +0000 (16:15 +0200)] 
kernel-fitimage.bbclass: introduce FIT_SUPPORTED_INITRAMFS_FSTYPES

It was found when a end user wants to build a squashfs type initramfs
into fitimage, it just fails without printing out any error or warning
messages, which is not right.

Introduce a FIT_SUPPORTED_INITRAMFS_FSTYPES variable to avoid
hard-coding the supported initramfs types, and it could be overridden
in config files. Also break the build when none of a supported
initramfs type is found.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agokernel-fitimage.bbclass: change 'echo' to 'bbnote'
Ming Liu [Mon, 28 Mar 2022 14:15:50 +0000 (16:15 +0200)] 
kernel-fitimage.bbclass: change 'echo' to 'bbnote'

Change 'echo' usages to 'bbnote' for better logging.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocreate-spdx: Avoid regex warning by quoting correctly
Richard Purdie [Mon, 28 Mar 2022 12:29:22 +0000 (13:29 +0100)] 
create-spdx: Avoid regex warning by quoting correctly

create-spdx.bbclass:43: DeprecationWarning: invalid escape sequence \W
  lic_regex = re.compile(b'^\W*SPDX-License-Identifier:\s*([ \w\d.()+-]+?)(?:\s+\W*)?$', re.MULTILINE)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoqemu: backport fixes for CVE-2022-26353 and CVE-2022-26354
Ross Burton [Mon, 28 Mar 2022 10:46:39 +0000 (11:46 +0100)] 
qemu: backport fixes for CVE-2022-26353 and CVE-2022-26354

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogrub: ignore CVE-2021-46705
Ross Burton [Mon, 28 Mar 2022 10:26:48 +0000 (11:26 +0100)] 
grub: ignore CVE-2021-46705

This is specific to SUSE Linux.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agosqlite3: upgrade 3.38.1 -> 3.38.2
wangmy [Mon, 28 Mar 2022 09:55:28 +0000 (17:55 +0800)] 
sqlite3: upgrade 3.38.1 -> 3.38.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agomsmtp: upgrade 1.8.19 -> 1.8.20
wangmy [Mon, 28 Mar 2022 09:55:27 +0000 (17:55 +0800)] 
msmtp: upgrade 1.8.19 -> 1.8.20

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolttng-ust: upgrade 2.13.1 -> 2.13.2
wangmy [Mon, 28 Mar 2022 09:55:26 +0000 (17:55 +0800)] 
lttng-ust: upgrade 2.13.1 -> 2.13.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolttng-modules: upgrade 2.13.2 -> 2.13.3
wangmy [Mon, 28 Mar 2022 09:52:53 +0000 (17:52 +0800)] 
lttng-modules: upgrade 2.13.2 -> 2.13.3

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibsoup: upgrade 3.0.4 -> 3.0.5
wangmy [Mon, 28 Mar 2022 09:52:52 +0000 (17:52 +0800)] 
libsoup: upgrade 3.0.4 -> 3.0.5

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibevdev: upgrade 1.12.0 -> 1.12.1
wangmy [Mon, 28 Mar 2022 09:52:51 +0000 (17:52 +0800)] 
libevdev: upgrade 1.12.0 -> 1.12.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoiproute2: upgrade 5.16.0 -> 5.17.0
wangmy [Mon, 28 Mar 2022 09:52:50 +0000 (17:52 +0800)] 
iproute2: upgrade 5.16.0 -> 5.17.0

0001-lib-fix-ax25.h-include-for-musl.patch
removed since it's included in 5.17.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoglib-networking: upgrade 2.70.1 -> 2.72.0
wangmy [Mon, 28 Mar 2022 09:52:49 +0000 (17:52 +0800)] 
glib-networking: upgrade 2.70.1 -> 2.72.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>