Richard Purdie [Fri, 15 Apr 2022 08:43:23 +0000 (09:43 +0100)]
libxshmfence: Correct LICENSE to HPND
The license in this code is listed as MIT and whilst it is compatible with and
usable as MIT, it actually looks like HPND. Clarify the license field accordingly.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Fri, 15 Apr 2022 08:09:18 +0000 (09:09 +0100)]
alsa-tools: Ensure we install correctly
With the fix for #8621, cleandirs is now applied to autotools_do_install
and this results in a lot of the install targets to be removed. Ensure
cleandirs isn't set for autotools_do_install.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Scott Murray [Thu, 14 Apr 2022 23:37:10 +0000 (19:37 -0400)]
runqemu: Do not auto detect graphics if publicvnc is specified
The graphics option auto detection logic added in 7f78bb7a was not
checking if the publicvnc option had been specified, meaning that
it would be ignored and the auto detection result used instead.
Add setting a flag variable in the argument parsing and check
it along with the ones for the other graphics backend options.
Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
shadow: Disable the use of syslog() for the native tools
An attempt to disable the use of syslog() was made in commit 8f181686
(shadow-native: Simplify and fix syslog disable patch). However,
because the code checks if USE_SYSLOG is defined rather than checking
if it evaluates to TRUE the patch did not work as intended.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 14 Apr 2022 16:10:00 +0000 (17:10 +0100)]
bluez5: Add fix for startup issues under systemd
The systemd bluetooth service failed to start. Add a workaround for this whilst the
final fix is discussed upstream, https://github.com/bluez/bluez/issues/329.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Tue, 12 Apr 2022 21:46:02 +0000 (17:46 -0400)]
lttng-modules: support kernel 5.18+
Backporting changes from lttng master to support building against
the 5.18+ kernel. No changes required to the patches. Once a new
-stable 2.13.x is released, we can drop these patches. To enable
newer kernel development against the LTS, it is worth pulling these
in while we wait for an upstream release.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 13 Apr 2022 14:45:03 +0000 (15:45 +0100)]
runqemu: Allow auto detection of the correct graphics options
Running "runqemu qemux86 kvm" when qemu is configured for sdl and/or gtk
display output currently leads to a poor user experience with no cursor
and corrupted fonts in the gtk case. This is due to no options being
passed to qemu which leads to the loss of the font envirornment variable
and the show-cursor option.
If the user hasn't specified a display type, grep the output of
"qemu-system-xxx --help" for the display types and pick the "best"
which ensures our config is passed in. That resolves the gtk font issue
and the cursor issue with both sdl and gtk.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Konrad Weihmann [Wed, 13 Apr 2022 17:08:49 +0000 (19:08 +0200)]
python3-pip: correct license
as described in src/pip/_vendor/README.rst pip ships plenty
of vendored copies of other python modules.
Correct the license of the resulting package and
reference all the vendor copy license files correctly
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Konrad Weihmann [Wed, 13 Apr 2022 15:34:53 +0000 (17:34 +0200)]
gettext: add MIT conditional as license
depending on the actual PACKAGECONFIG some
internal vendor copies of libxml, libcroco and glib will
be used.
In the case of libxml this adds MIT to the license.
Reference the license statements based on the actual choosen
PACKAGECONFIG
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Konrad Weihmann [Wed, 13 Apr 2022 15:34:51 +0000 (17:34 +0200)]
libsdl2: fix license
by default libsdl2 is build with code from src/video/yuv2rgb, which
is licensed under BSD-2-Clause.
Additional by default hidapi is build, which is licensed under
GPL3 | BSD-2-Clause | HIDAPI license, pick the least restrictive
and best matching BSD-2-Clause.
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
kernel-devsrc: Check for gen_vdso_offsets.sh before copying on riscv
This file is introduced in newer kernels >= 5.15 but some RISCV machines
still use 5.13 kernels, this ensures that kernel-devsrc can build on
older kernels for RISCV
Richard Purdie [Wed, 13 Apr 2022 16:27:11 +0000 (17:27 +0100)]
sanity: Show a warning that make 4.2.1 is buggy on non-ubuntu systems
We keep seeing hangs on the autobuilder with make 4.2.1 on Centos8, Alma8
and OpenSuse workers. The hang occurs in perl and kernel builds in particular.
The issue is fixed in 4.3 and has been patched on Ubuntu systems:
Add a sanity test for make 4.2.1 and error for non-ubuntu systems. We're
making a buildtools-make-tarball available which can be used to
allow systems with the broken version to use the project.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Mon, 11 Apr 2022 22:02:26 +0000 (23:02 +0100)]
externalsrc/devtool: Fix to work with fixed export funcition flags handling
If we fix bitbake to correctly handle the cleandirs and fakeroot flags
for tasks handled by EXPORT_FUNCTIONS, we break devtool since it only
considers these for top level functions. Add in extra code to intercept
the cleandirs flags for commonly used sub functions too.
[YOCTO #8621]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Upstream dropped many 'legacy' low res bitmap icons and also plans to
phase out 'generic app' icons in the svg format, saying that all apps
must carry their own icons. This breaks the icons displayed in sato
so revert for now until we have a plan to mitigate that.
[YOCTO #14782]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 12 Apr 2022 10:21:13 +0000 (11:21 +0100)]
git: Ignore CVE-2022-24975
Everyone I've talked to doesn't see this as a major issue. The CVE
asks for a documentation improvement on the --mirror option to
git clone as deleted content could be leaked into a mirror. For OE's
general users/use cases, we wouldn't build or ship docs so this wouldn't
affect us.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 12 Apr 2022 10:01:51 +0000 (11:01 +0100)]
qemu: Add fix for CVE-2022-1050
Add a fix queued upstream for the issue in this CVE:
"""
Guest driver might execute HW commands when shared buffers are not yet
allocated.
This might happen on purpose (malicious guest) or because some other
guest/host address mapping.
We need to protect againts such case.
"""
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
python3: Do not detect multiarch when cross compiling
This was a long standing problem seen on aarch64 build hosts when
compiling python3 with clang cross compiler. The issue is not seen with
gcc because native glibc headers are still compatible with gcc cross compiler
Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Ross Burton <ross.burton@arm.com> Cc: Jon Mason <jdmason@kudzu.us> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Kevin Hao [Sat, 9 Apr 2022 06:04:40 +0000 (14:04 +0800)]
kernel.bbclass: Fix the do_strip() malfunction
The BB variable can't be referenced directly in a python function,
this misusage of the variable reference causes strip function to be
always skipped.
Fixed: b9c3db4953e4 ("kernel.bbclass: Use KERNEL_IMAGEDEST instead of hardcoded boot path") Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Just as pointed out in a previous commit:
"""
We'll continue tagging the repos contributing with SDK releases, as
that is when all the testing of the various projects is performed
together.
"""
Now the repo has updated and the 'stable' branch is forcely overriden.
We need to use the 'sdk-1.3.204' branch.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 7 Apr 2022 16:33:21 +0000 (17:33 +0100)]
package_ipk/deb: Fix specific version handling
We recently added a "xxx (= 1.2.3)" style dependency to a recipe and have
been having trouble with the opkg and debian backends with it.
The issues is that for debian, "=" really does mean equals and includes the
PR field. One bitbake recipe does not know the PR of another, nor shoud it.
In other words 1.2.3 != 1.2.3-r0. Debian defaults to a PR of "0", not our
"r0".
The only way I can think of to make this work is to change "=" dependencies
without revision information (no "-r" in the version) into things like:
"xxx (>= 1.2.3), xxx (<< 1.2.3.0)". This appears to work even if it is a
pretty horrible workaround.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sat, 9 Apr 2022 20:26:24 +0000 (21:26 +0100)]
uninative: Upgrade to 3.6 with gcc 12 support
There are reports of issues with the new libstdc++ from gcc 12. This upgrades
to a gcc 12 version of uninative to allow builds on those systems. Gcc 12 isn't
finalised so we may need to add a new version of this if/as appropriate when it
is.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ralph Siemsen [Sat, 9 Apr 2022 02:16:44 +0000 (22:16 -0400)]
gzip: upgrade 1.11 -> 1.12
This includes a fix for CVE-2022-1271.
The existing "wrong path" patch needed to be refreshed, because the
context changed due to the following upstream change:
https://git.savannah.gnu.org/cgit/gzip.git/commit/?id=31193bbd13cd2807d8ccaa2ba5b072303d5425e7
Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>"
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>
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>
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"
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.
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>
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.
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>
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>
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>
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>
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>
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>
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>
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.
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.
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.
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
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>
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>
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>
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>