Richard Purdie [Fri, 7 May 2021 17:12:15 +0000 (18:12 +0100)]
oeqa/qemurunner: Fix binary vs str issue
The recent logging changes for qemurunner showed up as errors on the
autobuilder where decode couldn't be called on the returned string.
Since the code returns binary data, return b'' instead of '' to match
to avoid tracebacks.
One of these cases was newly added, copied from the other which has
been there for a long time, always broken.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Thu, 6 May 2021 12:57:21 +0000 (08:57 -0400)]
linux-yocto/5.10: qemuppc32: reduce serial shutdown issues
Integrating the following commit(s) to linux-yocto/5.10:
qemuppc32: reduce serial issues seen on shutdown
Richard reported:
We've been seeing a lot of the qemuppc shutdown issue and I decided to
look into it. The really worrying thing looking at the logs locally is the
serial ports are showing irq issues and becoming disabled as nobody would
handle them.
This is problematic as the shutdown test uses the serial interface to
shut down the system. If the serial interface fails to login or run the command,
game over for the test.
CONFIG_SERIAL_PMACZILOG_CONSOLE complicates that handling, but doesn't provide
any output or capabilities that we need. So we disable it here, and
reduce the chances of issues during shutdown.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 5 May 2021 21:13:10 +0000 (22:13 +0100)]
lib/package_manager: Use shutil.copy instead of bb.utils.copyfile for intercepts
If the scripts/postinst-intercepts is owned by root/root then the copyfile() calls
will fail due to chown issues. We don't care about ownership of these files so
use shutil.copy() instead which won't perform any chown.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 5 May 2021 18:15:54 +0000 (19:15 +0100)]
oeqa/qemurunner: Handle path length issues for qmp socket
After the addition of the qmp socket, runqemu started failing:
ERROR - Failed to run qemu: qemu-system-aarch64: -qmp unix:/home/yocto/actions-runner-meta-openembedded/_work/meta-openembedded/meta-openembedded/yoe/build/tmp/.3eg5fiid,server,wait:
UNIX socket path '/home/yocto/actions-runner-meta-openembedded/_work/meta-openembedded/meta-openembedded/yoe/build/tmp/.3eg5fiid' is too long
Path must be less than 108 bytes
To avoid this, run qemu within tmpdir and use a relative path to the socket.
This avoids having to patch the socket code within qemu.
Update the client code to chdir and only use a relative path to the socket
to match.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 5 May 2021 18:15:29 +0000 (19:15 +0100)]
oeqa/qemurunner: Improve logging thread exit handling for qemu shutdown test
Rather than totally disabling the logging, inform it we're about to exit
so we can log messages over the exit cleanly too. This aids debugging. It
also avoids a race where the logging handler could still error whilst
shutting down.
Also remove a race window by notificing the handler of the shutdown
first, before triggering it. This removes a race window I watched in
local testing.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yi Fan Yu [Fri, 23 Apr 2021 14:59:53 +0000 (10:59 -0400)]
libevent: Increase ptest timing tolerance 50 ms -> 100 ms
Adjusting the tolerance to a more reasonable time
given the load on the AB and given the high amount(100) of
events some of the tests like `common_timeout` generates.
[YOCTO #14163]
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
classes/lib/scripts: Use bb.utils.rename() instead of os.rename()
Incremental build in Docker fails with:
OSError: [Errno 18] Invalid cross-device link
when source and destination are on different overlay filesystems.
Rather than adding fallback code to every call site, use a new wrapper
in bitbake which detects this case and falls back to shutil.move
which is slower but will handtle the overlay docker filesystems correctly.
[YOCTO #14301]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
sanity.bbclass: mention CONNECTIVITY_CHECK_URIS in network failure message
This expands the error message when a network failure is detected.
It happens that some ISPs or networks block the default example.com
domain. Therefore, instead of disabling network access, it
lets the user know how to modify the test URL.
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Joshua Watt [Wed, 5 May 2021 21:40:06 +0000 (16:40 -0500)]
classes/image: Use xargs to set file timestamps
Instead of having find directly invoke touch for each file in the root
file system, pass a list to xargs for batching. This significantly
reduces the number of times the touch program is invoked and speeds up
the do_image task time:
Revert "oeqa: Set LD_LIBRARY_PATH when executing native commands"
LD_LIBRARY_PATH leaks into host executables too, and breaks them
as they are not uninative-enabled. E.g. on ubuntu 18.04 trying
to run host bash with a sysroot that was built on Fedora 33:
akanavin@ubuntu1804-ty-3:/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/build-st-24341/tmp/work/x86_64-linux/gnupg-native/2.3.1-r0/recipe-sysroot-native$ LD_LIBRARY_PATH=./usr/lib /bin/bash
/bin/bash: ./usr/lib/libtinfo.so.5: no version information available (required by /bin/bash)
/bin/bash: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./usr/lib/libtinfo.so.5)
This was seen e.g. here:
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2090/steps/14/logs/stdio
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As is the pattern with all lists, put the list of MIRRORs in
alphabetical order, and add an entry for SAMBA_MIRROR as it appears in
the samba recipe from the meta-networking layer.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Tue, 4 May 2021 12:57:40 +0000 (13:57 +0100)]
oe-buildenv-internal: add BitBake's library to PYTHONPATH
There are many Python scripts in oe-core that want to use Tinfoil, and
right now they have to know where they are to work out where BitBake is
likely to be.
This is suboptimal as BitBake could be somewhere else, so this
approach doesn't scale to other layers at all.
Solve this by adding BITBAKEDIR/lib to PYTHONPATH in oe-buildenv-internal,
so that Python has BitBake on its search path once the build system is
configured.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bastian Krause [Tue, 4 May 2021 11:39:28 +0000 (13:39 +0200)]
ccache: add packageconfig docs option
Before, ccache's configure stage built HTML documentation and man pages
depending on if asciidoc is installed. This patch makes it configurable.
Pass the new cmake option BUILD_DOCS along and add the asciidoc
dependency if necessary.
This fixes an issue when ccache's configure stage found asciidoc/a2x on
the system outside of the sysroot (e.g. installed via 'apt install
asciidoc'). ccache would then decide to build docs and manual pages, but
would fail during compilation: the system's a2x could not find the
system's asciidoc because it did not reside in the set PATH.
By enabling/disabling docs/man page generation explicitly and adding
asciidoc to DEPENDS as necessary, this is no longer an issue.
Signed-off-by: Bastian Krause <bst@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
We've reports of a number of failures from this, it causes pod2man to
reference full paths to perl rather than nativeperl from the environment.
I've also seen this issue locally now. Revert until we can find a solution
which works for everyone.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jose Quaresma [Mon, 3 May 2021 17:10:42 +0000 (18:10 +0100)]
gstreamer1.0: update ptest patch
- rework the ptest patch with a new one that are sent upstream [1].
- it uses the same approach as the existing patch in OE-Core but
is based on the glib meson installed-tests [2] logic.
Bruce Ashfield [Mon, 3 May 2021 12:54:33 +0000 (08:54 -0400)]
linux-yocto/5.4: update to v5.4.116
Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:
370636ffbb86 Linux 5.4.116 e23967af130b bpf: Update selftests to reflect new error states ef4e68f0af04 bpf: Tighten speculative pointer arithmetic mask 4dc6e55e282f bpf: Move sanitize_val_alu out of op switch 876d1cec9369 bpf: Refactor and streamline bounds check into helper 4158e5fea3b1 bpf: Improve verifier error messages for users 15de0c537bf7 bpf: Rework ptr_limit into alu_limit and add common error path f7fbedc90909 bpf: Ensure off_reg has no mixed signed bounds for all types 4a163b1c7053 bpf: Move off_reg into sanitize_ptr_alu 19bfeb47e96b Linux 5.4.115 af7099bad495 USB: CDC-ACM: fix poison/unpoison imbalance d7fad2ce15bd net: hso: fix NULL-deref on disconnect regression 699017fe0de4 x86/crash: Fix crash_setup_memmap_entries() out-of-bounds access b3962b4e8334 ia64: tools: remove duplicate definition of ia64_mf() on ia64 763cbe5e1ebb ia64: fix discontig.c section mismatches 3dce9c4bb546 csky: change a Kconfig symbol name to fix e1000 build error 892f6bc55746 cavium/liquidio: Fix duplicate argument 2ccca124620e xen-netback: Check for hotplug-status existence before watching 78687d6a3213 s390/entry: save the caller of psw_idle 026490fac496 net: geneve: check skb is large enough for IPv4/IPv6 header caaf9371ecad ARM: dts: Fix swapped mmc order for omap3 be60afbb9136 HID: wacom: Assign boolean values to a bool variable 116ee59ef886 HID: alps: fix error return code in alps_input_configured() a4e2b91cea52 HID: google: add don USB id aefb6ac6ac11 perf auxtrace: Fix potential NULL pointer dereference 39638289595b perf/x86/kvm: Fix Broadwell Xeon stepping in isolation_ucodes[] 319a06e58ed7 perf/x86/intel/uncore: Remove uncore extra PCI dev HSWEP_PCI_PCU_3 82808cc02681 locking/qrwlock: Fix ordering in queued_write_lock_slowpath() c6eb92b37af1 arm64: dts: allwinner: Revert SD card CD GPIO for Pine64-LTS 37ee803d7ed7 pinctrl: lewisburg: Update number of pins in community dbb355960ef9 gpio: omap: Save and restore sysconfig 835c8d688e1e s390/ptrace: return -ENOSYS when invalid syscall is supplied
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Mon, 3 May 2021 12:54:32 +0000 (08:54 -0400)]
linux-yocto/5.10: update to v5.10.34
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
0aa66717f684 Linux 5.10.34 47d54b990103 mei: me: add Alder Lake P device id. 2a442f11407e iwlwifi: Fix softirq/hardirq disabling in iwl_pcie_gen2_enqueue_hcmd() 8bd8301ccc11 Linux 5.10.33 8a661bad6cee USB: CDC-ACM: fix poison/unpoison imbalance 90642ee9eb58 net: hso: fix NULL-deref on disconnect regression 31720f9e87c0 x86/crash: Fix crash_setup_memmap_entries() out-of-bounds access bed21bed2e79 ia64: tools: remove duplicate definition of ia64_mf() on ia64 ba0910ad1c57 ia64: fix discontig.c section mismatches f4a777bcc8d1 csky: change a Kconfig symbol name to fix e1000 build error 393200a1b095 kasan: fix hwasan build for gcc f2b46286e326 cavium/liquidio: Fix duplicate argument 1bfefd866195 xen-netback: Check for hotplug-status existence before watching 509ae27a1874 arm64: kprobes: Restore local irqflag if kprobes is cancelled da99331fc6ce s390/entry: save the caller of psw_idle d33031a894d2 dmaengine: tegra20: Fix runtime PM imbalance on error 66d0cf7dcaa1 net: geneve: check skb is large enough for IPv4/IPv6 header 6ce64437224d ARM: dts: Fix swapped mmc order for omap3 db010ba54a96 dmaengine: xilinx: dpdma: Fix race condition in done IRQ e8d9a93ec46e dmaengine: xilinx: dpdma: Fix descriptor issuing on video group eb2c81ee764d soc: qcom: geni: shield geni_icc_get() for ACPI boot 8c4bfe30eb55 HID: wacom: Assign boolean values to a bool variable e913cbc952c3 HID cp2112: fix support for multiple gpiochips f691dc86411d HID: alps: fix error return code in alps_input_configured() 079e32723f78 HID: google: add don USB id ffe249b4fc2c perf map: Fix error return code in maps__clone() 4d0cfb3713bc perf auxtrace: Fix potential NULL pointer dereference ab112cc573cc perf/x86/kvm: Fix Broadwell Xeon stepping in isolation_ucodes[] 6f8315e5d951 perf/x86/intel/uncore: Remove uncore extra PCI dev HSWEP_PCI_PCU_3 82fa9ced35d8 locking/qrwlock: Fix ordering in queued_write_lock_slowpath() b642e493a9a0 bpf: Tighten speculative pointer arithmetic mask 2982ea926b5c bpf: Refactor and streamline bounds check into helper f3c4b01689d3 bpf: Allow variable-offset stack access f79efcb0075a bpf: Permits pointers on stack for helper calls edc5d1601389 arm64: dts: allwinner: Revert SD card CD GPIO for Pine64-LTS 83d93d05376a pinctrl: core: Show pin numbers for the controllers with base = 0 fc2454cc0c4b block: return -EBUSY when there are open partitions in blkdev_reread_part 2bbd8aafde36 pinctrl: lewisburg: Update number of pins in community a8cd07e4400d vdpa/mlx5: Set err = -ENOMEM in case dma_map_sg_attrs fails bf84ef2dd2cc KEYS: trusted: Fix TPM reservation for seal/unseal 9857fccd653c gpio: omap: Save and restore sysconfig 71777492b745 vhost-vdpa: protect concurrent access to vhost device iotlb
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Mon, 3 May 2021 12:54:29 +0000 (08:54 -0400)]
linux-yocto/5.10: update to v5.10.32
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
aea70bd5a455 Linux 5.10.32 6ac98ee9cb7c net: phy: marvell: fix detection of PHY on Topaz switches fbe6603e7cab bpf: Move sanitize_val_alu out of op switch 7723d3243857 bpf: Improve verifier error messages for users 55565c307908 bpf: Rework ptr_limit into alu_limit and add common error path 496e2fabbbe3 arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is set atomically cada2ed0bb70 ARM: 9071/1: uprobes: Don't hook on thumb instructions 480d875f1242 bpf: Move off_reg into sanitize_ptr_alu 589fd9684dfa bpf: Ensure off_reg has no mixed signed bounds for all types b2df20c0f19f r8169: don't advertise pause in jumbo mode 154fb9cb3e6f r8169: tweak max read request size for newer chips also in jumbo mtu mode 7f64753835a7 KVM: VMX: Don't use vcpu->run->internal.ndata as an array index c670ff84fac9 KVM: VMX: Convert vcpu_vmx.exit_reason to a union 4f3ff11204ea bpf: Use correct permission flag for mixed signed bounds arithmetic 8d7906c548aa arm64: dts: allwinner: h6: beelink-gs1: Remove ext. 32 kHz osc reference 286c39d08664 arm64: dts: allwinner: Fix SD card CD GPIO for SOPine systems 4f90db2e92d2 ARM: OMAP2+: Fix uninitialized sr_inst 1fc087fdb98d ARM: footbridge: fix PCI interrupt mapping 11a718ef953f ARM: 9069/1: NOMMU: Fix conversion for_each_membock() to for_each_mem_range() a13d4a1228ab ARM: OMAP2+: Fix warning for omap_init_time_of() 9143158a6bd3 gro: ensure frag0 meets IP header alignment fd766f792a56 ch_ktls: do not send snd_una update to TCB in middle 65bdd564b387 ch_ktls: tcb close causes tls connection failure 5f3c278035c0 ch_ktls: fix device connection close 8d5a9dbd2116 ch_ktls: Fix kernel panic 976da1b08784 ibmvnic: remove duplicate napi_schedule call in open function 008885a880dc ibmvnic: remove duplicate napi_schedule call in do_reset function 685bc730e3a9 ibmvnic: avoid calling napi_disable() twice e154b5060aa1 ia64: tools: remove inclusion of ia64-specific version of errno.h header f8f01fc8c653 ia64: remove duplicate entries in generic_defconfig 1aec111c944f ethtool: pause: make sure we init driver stats 44ef38c0a2b3 i40e: fix the panic when running bpf in xdpdrv mode 35d7491e2f77 net: Make tcp_allowed_congestion_control readonly in non-init netns 76af8126a6e4 mm: ptdump: fix build failure 33f3dab42ae2 net: ip6_tunnel: Unregister catch-all devices ea0340e632ba net: sit: Unregister catch-all devices 154ac84d497a net: davicom: Fix regulator not turned off on failed probe e072247938a8 net/mlx5e: Fix setting of RS FEC mode dc1732baa9da netfilter: nft_limit: avoid possible divide error in nft_limit_init cda5507d234f net/mlx5e: fix ingress_ifindex check in mlx5e_flower_parse_meta 40ed1d29f151 net: macb: fix the restore of cmp registers 7f8e59c4c5e5 libbpf: Fix potential NULL pointer dereference 7824d5a9935a netfilter: arp_tables: add pre_exit hook for table unregister 4d26865974fb netfilter: bridge: add pre_exit hooks for ebtable unregistration eb82199e377a libnvdimm/region: Fix nvdimm_has_flush() to handle ND_REGION_ASYNC a2af8a0f38e4 ice: Fix potential infinite loop when using u8 loop counter 783645e65b57 netfilter: conntrack: do not print icmpv6 as unknown via /proc 394c81e36e49 netfilter: flowtable: fix NAT IPv6 offload mangling be07581aacae ixgbe: fix unbalanced device enable/disable in suspend/resume 0ef9919a06a3 scsi: libsas: Reset num_scatter if libata marks qc as NODATA 6a70ab9769cd riscv: Fix spelling mistake "SPARSEMEM" to "SPARSMEM" f66d695c06f4 vfio/pci: Add missing range check in vfio_pci_mmap e6177990e17d arm64: alternatives: Move length validation in alternative_{insn, endif} e2931f05eb32 arm64: fix inline asm in load_unaligned_zeropad() 957f83a138f1 readdir: make sure to verify directory entry for legacy interfaces too 2b8308741cf5 dm verity fec: fix misaligned RS roots IO 18ba387261ea HID: wacom: set EV_KEY and EV_ABS only for non-HID_GENERIC type of devices dedf75aec8fc Input: i8042 - fix Pegatron C15B ID entry 8b978750dcd2 Input: s6sy761 - fix coordinate read bit shift 955da2b5cd98 lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS 024f9d048000 virt_wifi: Return micros for BSS TSF values cc413b375c6d mac80211: clear sta->fast_rx when STA removed from 4-addr VLAN 2e08d9a56838 pcnet32: Use pci_resource_len to validate PCI resource 248b9b61b951 net: ieee802154: forbid monitor for add llsec seclevel b97c7bc42d8d net: ieee802154: stop dump llsec seclevels for monitors ab9f9a1d5874 net: ieee802154: forbid monitor for del llsec devkey 4846c2debb2c net: ieee802154: forbid monitor for add llsec devkey 07714229e0e2 net: ieee802154: stop dump llsec devkeys for monitors 4c1775d6ea86 net: ieee802154: forbid monitor for del llsec dev 813b13155d14 net: ieee802154: forbid monitor for add llsec dev 2f80452951b5 net: ieee802154: stop dump llsec devs for monitors 08744a622faa net: ieee802154: forbid monitor for del llsec key 7edf4d2baa8a net: ieee802154: forbid monitor for add llsec key c09075df5e4d net: ieee802154: stop dump llsec keys for monitors 8b9485b651d4 iwlwifi: add support for Qu with AX201 device c836374bacfa scsi: scsi_transport_srp: Don't block target in SRP_PORT_LOST state d9fc084067f5 ASoC: fsl_esai: Fix TDM slot setup for I2S mode 79ef0e6c0cf8 drm/msm: Fix a5xx/a6xx timestamps d61238aa6482 ARM: omap1: fix building with clang IAS 505c48942f04 ARM: keystone: fix integer overflow warning 0d0ad98bee39 neighbour: Disregard DEAD dst in neigh_update 7a1cd9044da4 gpu/xen: Fix a use after free in xen_drm_drv_init bfb5a1523f17 ASoC: max98373: Added 30ms turn on/off time delay 58d59d9ae56f ASoC: max98373: Changed amp shutdown register as volatile b2f8476193eb xfrm: BEET mode doesn't support fragments for inner packets 806addaf8dfd iwlwifi: Fix softirq/hardirq disabling in iwl_pcie_enqueue_hcmd() b448a6a2fc5a arc: kernel: Return -EFAULT if copy_to_user() fails f12e8cf6b180 lockdep: Add a missing initialization hint to the "INFO: Trying to register non-static key" message a55de4f0d1d4 ARM: dts: Fix moving mmc devices with aliases for omap4 & 5 9f399a9d7006 ARM: dts: Drop duplicate sha2md5_fck to fix clk_disable race f338b8fffd75 ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade() e5eb9757fe4c dmaengine: idxd: fix wq cleanup of WQCFG registers 4c59c5c8668e dmaengine: plx_dma: add a missing put_device() on error path ac030f5c5680 dmaengine: Fix a double free in dma_async_device_register 56f9c04893fb dmaengine: dw: Make it dependent to HAS_IOMEM 4ecf25595273 dmaengine: idxd: fix wq size store permission state db23b7b5ca3e dmaengine: idxd: fix opcap sysfs attribute output 0e3f14755111 dmaengine: idxd: fix delta_rec and crc size field for completion record a5ad12d5d69c dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback f567fde02baa gpio: sysfs: Obey valid_mask dfed481e62e5 Input: nspire-keypad - enable interrupts only when opened b80ea54e1e71 mtd: rawnand: mtk: Fix WAITRDY break condition and timeout 5a627026be4a net/sctp: fix race condition in sctp_destroy_sock 65f1995ea1e9 Linux 5.10.31 ceee49ca34bf xen/events: fix setting irq affinity 9d9facd32d89 net: sfp: cope with SFPs that set both LOS normal and LOS inverted 2a60ab2dab3d net: sfp: relax bitrate-derived mode check cd8ce27e6caa perf map: Tighten snprintf() string precision to pass gcc check on some 32-bit arches 1f3b9000cb44 netfilter: x_tables: fix compat match/target pad out-of-bound write 5402a67ac403 block: don't ignore REQ_NOWAIT for direct IO efa7b6e4017a riscv,entry: fix misaligned base for excp_vect_table 6fbdce3cde97 io_uring: don't mark S_ISBLK async work as unbounded 5d4600017bee null_blk: fix command timeout completion handling b1f6c6f39bd6 idr test suite: Create anchor before launching throbber 9a7552daa93b idr test suite: Take RCU read lock in idr_find_test_1 edd822b69241 radix tree test suite: Register the main thread with the RCU library 1d2310d95fb8 block: only update parent bi_status when bio fail d99e22c0ea74 XArray: Fix splitting to non-zero orders 9576dd89554e gpu: host1x: Use different lock classes for each client 39af2f472f21 drm/tegra: dc: Don't set PLL clock to 0Hz e4a0956574c7 tools/kvm_stat: Add restart delay 1dcb3ebc2416 ftrace: Check if pages were allocated before calling free_pages() 6c6d58322079 gfs2: report "already frozen/thawed" errors 870c8df1d192 drm/imx: imx-ldb: fix out of bounds array access warning 5b50468a2d4d KVM: arm64: Disable guest access to trace filter controls fa0c0dce589d KVM: arm64: Hide system instruction access to Trace registers 57fb08fb9a25 gfs2: Flag a withdraw if init_threads() fails 9b57ecb01b43 interconnect: core: fix error return code of icc_link_destroy()
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Mon, 3 May 2021 12:54:27 +0000 (08:54 -0400)]
linux-yocto/5.10: aufs fixes
It was reported that aufs was behaving incorrectly on arm/x86. Although
we don't have an exact fix for the issues, the Wind River guys were able
to come up with a minimal patch set to fix just the core issue, versus
a full aufs uprev.
We didn't have time to get this in before the release, but picking it up
in a dot release is sufficient. (given that it took several months for
the issue to be noticed).
Integrating the following commit(s) to linux-yocto/5.10:
a8808e541750 aufs: linux-v5.10-rc1, no more f_op->read() and ->write() cb1c41dac775 for aufs: linux-v5.10-rc1, no more vfs_(read|write)f_t a5805df6583f aufs: linux-v5.10-rc1, no more set_fs() 64e145dcca8c Revert "aufs: initial port to v5.10"
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Stefano Babic [Mon, 3 May 2021 11:33:34 +0000 (13:33 +0200)]
libubootenv: upgrade 0.3.1 -> 0.3.2
This is a bugfix release which includes the following changes:
f4ab25d shared library: Link against zlib e663439 Always fsync file writes 80b7f31 Treat '=' as an illegal character in variable names 950f541 libuboot_env: fix calculation of usable envsize fb88032 Correct initialisations in libuboot_configure 20d1ec7 Force writing of environment if default is used 5ca11bd libuboot_env: correct length to usable env size length cd4a8f1 libuboot_env_store: fix env double-null termination 9510164 uboot_env: fix infinite loop on short read (EOF)
Signed-off-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Tue, 30 Mar 2021 21:30:19 +0000 (14:30 -0700)]
libgcc-initial: Do not build fp128 to decimal ppc functions
These functions depend on glibc headers e.g.
stdlib.h/fenv.h/string.h/stdio.h which do not exist when building
lbgcc-initial, and these functions are not needed during glibc build
so we are fine to disable them
certain applets are enabled but the long options are not enabled for
them, it results in subtle failures in ptests where its expecting these
options e.g. gzip --best is commonly used in many package tests e.g.
This patch add all the long options to this fragment. The long options
for a tool will only get enabled if the corresponding tool/feature is
enabled in main defconfig, otherwise it will be ignored in final .config
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Mon, 3 May 2021 06:36:00 +0000 (23:36 -0700)]
cml1.bbclass: Return sorted list of cfg files
Since these files are passed to merge_config.sh its better to use a
sorted list, so we can be sure that this list is always fed in same
order irrespective of python versions on host
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
rootfs.py: find .ko.gz and .ko.xz kernel modules as well
* with xz PACKAGECONFIG enabled in kmod and xz module compression enabled in kernel
the do_rootfs task doesn't run depmod in the image, because it thinks there are no modules:
NOTE: No Kernel Modules found, not running depmod
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
When run cyclictest, the parameter enable NUMA. but in some BSP
which not support NUMA, will causes the test program to exit
directly and does not carry out subsequent operations, the
latest changes have fixed this problem. so update to the
latest branch to resolve.
Signed-off-by: Zqiang <qiang.zhang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
libpam: Provide needed env for tst-pam_start_confdir ptest
tst-pam_start_confdir needs a file called confdir and it should reside
in directory pointed by srcdir env variable, therefore copy confdir into
ptest package and export srcdir before running the ptests
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
103,108d102
< cat: ../y.tab.c: No such file or directory
< cmp: ../y.tab.c: No such file or directory
< cat: /usr/lib/bash/ptest/config.h: No such file or directory
< cmp: /usr/lib/bash/ptest/config.h: No such file or directory
< cat: /usr/lib/bash/ptest/version.h: No such file or directory
< cmp: /usr/lib/bash/ptest/version.h: No such file or directory
FAIL: run-heredoc
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sat, 1 May 2021 11:25:55 +0000 (12:25 +0100)]
pybootchart/draw: Avoid divide by zero error
When disk stats don't run frequenctly enough, we see divide by zero
errors. The code already has a fallback path so ensure we use it
for this case too.
[YOCTO #14360]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Sat, 1 May 2021 21:12:21 +0000 (14:12 -0700)]
pkgconfig: Fix nativesdk builds for mingw sdk hosts
pkgconfig uses a vendored version of ancient glib-2.0, which does not
have many of fixes that current glib-2.0 will have, we enable this
internal version for nativesdk/native recipe, which on mingw hosts does
not work well, as its missing necessary mingw support. This patch
backports couple of fixes which makes GCC11 happy
but its going to be a constant source of pain as long as we support mingw
Paul Barker [Wed, 28 Apr 2021 09:51:32 +0000 (10:51 +0100)]
prservice: Use new connect API
The new prserv connect() function decouples the code in oe-core from the
exact classes and implementation details used within bitbake. This
allows us to more easily switch over to a new asyncrpc based prservice.
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This will help identifying packages using __TIME__, __DATE__ and
__TIMESTAMP__ macros in code, its a warning from the compiler and the
packages which use -Werror will break the build with this and where they
don't we will atleast have a warning in the build logs
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gcc-runtime: Fix __FILE__ related reproducablity issues
libstdc++ uses assertion macros which use __FILE__ macros and
if (__builtin_expect(!bool(_Condition), false)) \
std::__replacement_assert(__FILE__, __LINE__, __PRETTY_FUNCTION__, \
#_Condition)
This ends up using absolute paths into build tree for the cases where
the charconv header is used, therefore replace the file prefix paths
with on-target paths to make them build dir independent
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Petr Vorel [Wed, 28 Apr 2021 19:17:36 +0000 (21:17 +0200)]
ltp: Replace musl patches with do_patch[postfuncs]
MUSL related build fixes are not going to be upstreamed. They just not
compile broken files, thus replace them with upstream solution for CI:
just deleting files for musl (easier to maintain).
Signed-off-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sat, 1 May 2021 16:10:21 +0000 (17:10 +0100)]
patchelf: Fix note section alignment issues
Improve note section normalization was added to patchelf in recent versions
however if fails if there are two note sections which aren't sized to match
section alignment. Tweak the code to account for section alignment.
This fixes patchelf failures on the autobuilder, particularly to ccache-native.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Fri, 30 Apr 2021 09:35:02 +0000 (10:35 +0100)]
libxcrypt: Update to 4.4.19 release and fix symbol version issues
This patch upgrades to the 4.4.19 release and replaces a configure patch
from "libxcrypt: fix sporadic failures in nativesdk-libxcrypt-compat" with
a fix to avoid leading spaces in CFLAGS causing failures.
The license changed a few filenames listed in the license but the overall
license remains unchanged.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
buildstats.bbclass: collect data in the same file.
Previously "at interval" and "on failure" logs were collected
in separate files. Collect both types of logging in the same
file for better analysis.
Introduced new variable which allows different set of commands
to be run by the different logging, interval or failure. The
variables are BB_LOG_HOST_STAT_CMDS_INTERVAL and
BB_LOG_HOST_STAT_CMDS_FAILURE respecteviely.
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This is the first step towards rebasing the AB matrix from sato to
weston; the eventual goal is to keep sato only in core-image-sato
image.
The broader rationale is that X11 is effectively deprecated technology
at this point with only minimal maintenance; standalone X server will not
be developed any further, and all attention currently is towards making
it work well under Wayland.
I believe YP should be defaulting to Wayland and not X11.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This adds support for the Qemu Machine Protocol [0] extending
the current dump process for Host and Target. The commands are
added in the testimage.bbclass.
Currently, we setup qemu to stall until qmp gets connected and
sends the initialization and continue commands, this works
correctly. If the UNIX Socket does not exist, we wait an timeout
to ensure to socket file is created.
With this version, the monitor_dumper is created in OEQemuTarget
but then set in OESSHTarget as that's where we get the SSH failure
happens. Python's @property is used to create a setter/getter type
of setup in OESSHTarget to get overridden by OEQemuTarget.
By default the data is currently dumped to files for each command in
TMPDIR/log/runtime-hostdump/<date>_qmp/unknown_<seq>_qemu_monitor as
this is the naming convenstion in the dump.py code.
We use the qmp.py from qemu, which needs to get installed in the
recipe-sysroot-native of the target image.
The qmp python module supports the Qemu Machine Protocol [0].
This module needs to be installed in a known location so the
qemurunner python script can find the qmp module.
This change causes it to be installed in the recipe-sysroot-native
of the target image and that directory can be added to the python
sys.path that needs to use the qmp.py module.
gcc-cross-canadian: Install LTO linker plugin to BFD searchable location
This helps binutils provided tools ar/ranlib/nm to find the LTO linker
plugin automatically as well which makes it equivalent to gcc-ar/gcc-nm/gcc-ranlib
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gcc-cross: Install linker LTO plugin for binutils tools
This will ensure that ar/ranlib/nm can load the lto linker plugin like
gcc-ar, gcc-nm, gcc-ranlib does, this will let the behaviour match
between gcc wrappers for these tools, this should help LTO builds for
packages
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gcc-target: Create a LTO plugin symlink in bfd-plugins directory
This directory is scanned by binutils provided ar,ranlib,nm for plugins
that it can load automatically, putting liblto_plugin.so in their means
we do not need gcc-ar, gcc-nm, gcc-ranlib particularly as normal
ar/ranlib/nm tools will work equally well as they can now use this
linker plugin by default
This also mean we can revert back to using ar/ranlib/nm as default
providers for AR/NM/RANLIB on target
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>