summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bootchart2: Add missing python3-math dependencyMarek Vasut2022-01-171-1/+1
| | | | | | | | | | | | | | Without this dependency, generating the bootchart may fail with: " ModuleNotFoundError: No module named 'random' " (From OE-Core rev: 487e9f16a00f895159b79f1865fe8b626b47ddc2) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Mingli Yu <mingli.yu@windriver.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/native: Propagate dependencies to outhashJoshua Watt2022-01-172-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | Native task outputs are directly run on the build system during the build after being built. Even if the output of a native recipe doesn't change, a change in one of its dependencies may cause a change in the output it generates (e.g. rpm output depends on the output of its dependent zstd library). This can cause poor interactions with hash equivalence, since this recipe's output-changing dependency is "hidden" and downstream tasks only see that this recipe has the same outhash and therefore is equivalent. This can result in different output in different cases and issues with reproducible builds in parcular (e.g. rpm compression changes for the same content). To resolve this, unhide the output-changing dependency by adding it's unihash to this tasks outhash calculation. Unfortunately, we don't know specifically know which dependencies are output-changing, so we have to add all of them. [YOCTO #14685] (From OE-Core rev: d6c7b9f4f0e61fa6546d3644e27abe3e96f597e2) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto-rt/5.15: update to -rt22Bruce Ashfield2022-01-151-1/+1
| | | | | | | | | | | | | | | | | | Integrating the following commit(s) to linux-yocto-rt/5.15: 799919ec2113 v5.15.5-rt22 4745560a36e7 v5.15.3-rt21 9b4d36e0fbeb v5.15.2-rt20 d156320aca54 net: sched: gred: dynamically allocate tc_gred_qopt_offload d36603e0d213 v5.15.2-rt19 7ddf3a205fa3 mm/vmalloc: Remove unused `cpu' variable. 3f8e7f777049 v5.15.2-rt18 7b0fd383bb9a printk: fixup -stable merge to -rt (From OE-Core rev: 7a1a3dcae9f22a05baf11900231d28cf3d8f53ee) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto/5.10: update to v5.10.91Bruce Ashfield2022-01-153-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating linux-yocto/5.10 to the latest korg -stable release that comprises the following commits: df395c763ba0 Linux 5.10.91 674071c9eb26 Input: zinitix - make sure the IRQ is allocated before it gets enabled ef81f7d406c2 ARM: dts: gpio-ranges property is now required f63fa1a0d4df ipv6: raw: check passed optlen before reading cf07884e6bec drm/amd/display: Added power down for DCN10 10b9ccd0674d mISDN: change function names to avoid conflicts dd8a09cfbb99 atlantic: Fix buff_ring OOB in aq_ring_rx_clean c2f4bb251eb4 net: udp: fix alignment problem in udp4_seq_show() f82b48d1d86b ip6_vti: initialize __ip6_tnl_parm struct in vti6_siocdevprivate 8c87a83ef891 scsi: libiscsi: Fix UAF in iscsi_conn_get_param()/iscsi_conn_teardown() b798b677f94d usb: mtu3: fix interval value for intr and isoc 498d77fc5e38 ipv6: Do cleanup if attribute validation fails in multipath route 72b0d14a0a88 ipv6: Continue processing multipath route even if gateway attribute is invalid 5a7d650bb181 power: bq25890: Enable continuous conversion for ADC at charging 4f260ea5537d phonet: refcount leak in pep_sock_accep 61952934608c rndis_host: support Hytera digital radios 62cbde77d9c1 power: reset: ltc2952: Fix use of floating point literals 998d157e3b2a power: supply: core: Break capacity loop 16d8568378f9 xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate aa606b82cdfb net: ena: Fix error handling when calculating max IO queues number e7f5480978fd net: ena: Fix undefined state when tx request id is out of bounds 2de3d961f8e7 sch_qfq: prevent shift-out-of-bounds in qfq_init_qdisc 4c34d5fd8c96 batman-adv: mcast: don't send link-local multicast to mcast routers f403b5f96e9a lwtunnel: Validate RTA_ENCAP_TYPE attribute length 48d5adb08d60 ipv6: Check attribute length for RTA_GATEWAY when deleting multipath route 173bfa2782fa ipv6: Check attribute length for RTA_GATEWAY in multipath route 914420a2a6c5 ipv4: Check attribute length for RTA_FLOW in multipath route a8fe915be6c2 ipv4: Check attribute length for RTA_GATEWAY in multipath route 786a335fef18 ftrace/samples: Add missing prototypes direct functions c859c4de0bd7 i40e: Fix incorrect netdev's real number of RX/TX queues d0ad64438fb5 i40e: Fix for displaying message regarding NVM version 32845aa60203 i40e: fix use-after-free in i40e_sync_filters_subtask() f7edb6b9438b sfc: The RX page_ring is optional 2b3f34da0d79 mac80211: initialize variable have_higher_than_11mbit 16e5cad6eca1 RDMA/uverbs: Check for null return of kmalloc_array a7c2cae997db netrom: fix copying in user data in nr_setsockopt beeb0fdedae8 RDMA/core: Don't infoleak GRH fields 3ca132e6b065 iavf: Fix limit of total number of queues to active queues of VF 396e3016905d i40e: Fix to not show opcode msg on unsuccessful VF MAC change 7f13d14e563c ieee802154: atusb: fix uninit value in atusb_set_extended_addr 7db1e245cb71 tracing: Tag trace_percpu_buffer as a percpu pointer 760c6a625506 tracing: Fix check for trace_percpu_buffer validity in get_trace_buf() c1e2da4b3f72 selftests: x86: fix [-Wstringop-overread] warn in test_process_vm_readv() 384111e12367 f2fs: quota: fix potential deadlock (From OE-Core rev: 13b53d922df1a53913fbe7a0dfbf2adaedfe5dfd) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto/5.15: update to v5.15.14Bruce Ashfield2022-01-153-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating linux-yocto/5.15 to the latest korg -stable release that comprises the following commits: d114b082bef7 Linux 5.15.14 b8a1293e3850 drm/amd/pm: keep the BACO feature enabled for suspend 19070d812e13 Revert "drm/amdgpu: stop scheduler when calling hw_fini (v2)" b228924bb619 Input: zinitix - make sure the IRQ is allocated before it gets enabled 1917ace18375 ARM: dts: gpio-ranges property is now required 2f66e0976b4a userfaultfd/selftests: fix hugetlb area allocations ec33da9ae072 ipv6: raw: check passed optlen before reading 04d945934362 drm/amd/display: Added power down for DCN10 9b1df8dab312 drm/amd/display: fix B0 TMDS deepcolor no dislay issue 9964f0840a82 mISDN: change function names to avoid conflicts f55383e6b92b drm/amdgpu: put SMU into proper state on runpm suspending for BOCO capable platform 3c196f056666 drm/amdgpu: always reset the asic in suspend (v2) fbabb82b11b4 drm/amd/pm: skip setting gfx cgpg in the s0ix suspend-resume 80f229009b59 atlantic: Fix buff_ring OOB in aq_ring_rx_clean cf8f0e76c4ce net: udp: fix alignment problem in udp4_seq_show() 294f3fc9dc27 ip6_vti: initialize __ip6_tnl_parm struct in vti6_siocdevprivate 847050d40dc0 scsi: libiscsi: Fix UAF in iscsi_conn_get_param()/iscsi_conn_teardown() 6ebb6853108f usb: mtu3: fix interval value for intr and isoc 12a4c1092ae7 drm/amd/pm: Fix xgmi link control on aldebaran 31d95ff41cdf drm/amdgpu: fix dropped backing store handling in amdgpu_dma_buf_move_notify 4ed66cdc542f auxdisplay: charlcd: checking for pointer reference before dereferencing 8a7520c49994 ipv6: Do cleanup if attribute validation fails in multipath route c1de618c95e9 ipv6: Continue processing multipath route even if gateway attribute is invalid 5aec746bf7f2 power: bq25890: Enable continuous conversion for ADC at charging b4391e49ac1d drm/amdgpu: disable runpm if we are the primary adapter fa3d8456f7cd fbdev: fbmem: add a helper to determine if an aperture is used by a fw fb 9ca97a693aa8 phonet: refcount leak in pep_sock_accep d57da5185def net ticp:fix a kernel-infoleak in __tipc_sendmsg() 75d840c0f5d7 gpio: gpio-aspeed-sgpio: Fix wrong hwirq base in irq handler 7601a265696c rndis_host: support Hytera digital radios b381e0f98711 reset: renesas: Fix Runtime PM usage 550acd770f9f power: reset: ltc2952: Fix use of floating point literals be816676f38b power: supply: core: Break capacity loop b0e72ba9e520 xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate 800f02fa8a51 i2c: mpc: Avoid out of bounds memory access e24c6a48c6ea Revert "i2c: core: support bus regulator controlling in adapter" 43fa0b3639c5 cgroup: Use open-time cgroup namespace for process migration perm checks 50273128d640 cgroup: Allocate cgroup_file_ctx for kernfs_open_file->priv c6ebc3529884 cgroup: Use open-time credentials for process migraton perm checks 247b6244d40e KVM: x86: Check for rmaps allocation a08275570392 EDAC/i10nm: Release mdev/mbase when failing to detect HBM 3400aa7eda64 md/raid1: fix missing bitmap update w/o WriteMostly devices 15fb002977f6 net: ena: Fix error handling when calculating max IO queues number c4c20dc24e09 net: ena: Fix wrong rx request id by resetting device bf8263c71420 net: ena: Fix undefined state when tx request id is out of bounds 6511f8074b70 sch_qfq: prevent shift-out-of-bounds in qfq_init_qdisc 9b8bbe489ced batman-adv: mcast: don't send link-local multicast to mcast routers 9f00a2a0c139 sctp: hold endpoint before calling cb in sctp_transport_lookup_process 3c5c81d1e350 selftests: net: udpgro_fwd.sh: explicitly checking the available ping feature 41844e68eb92 lwtunnel: Validate RTA_ENCAP_TYPE attribute length ca0097c543fc ipv6: Check attribute length for RTA_GATEWAY when deleting multipath route 00e8b9f313b2 ipv6: Check attribute length for RTA_GATEWAY in multipath route bb471784ca85 ipv4: Check attribute length for RTA_FLOW in multipath route 72971eaad6ea ipv4: Check attribute length for RTA_GATEWAY in multipath route 5cb0bd07125f ftrace/samples: Add missing prototypes direct functions 61169d6c77de i40e: Fix incorrect netdev's real number of RX/TX queues 7b177d34a123 i40e: Fix for displaying message regarding NVM version 3f4c2ade4d65 i40e: fix use-after-free in i40e_sync_filters_subtask() 8fbbc33cf018 sfc: The RX page_ring is optional 03fb6db4ad61 mac80211: mesh: embedd mesh_paths and mpp_paths into ieee80211_if_mesh 18b224910edc mac80211: initialize variable have_higher_than_11mbit 0ea8bb0811ba RDMA/uverbs: Check for null return of kmalloc_array 6716b40d162f netrom: fix copying in user data in nr_setsockopt 21a18420ae2d Revert "net: usb: r8152: Add MAC passthrough support for more Lenovo Docks" e1e354771812 RDMA/core: Don't infoleak GRH fields 607f126d4a21 iavf: Fix limit of total number of queues to active queues of VF fda95797fc50 i40e: Fix to not show opcode msg on unsuccessful VF MAC change deb65735b5b1 ieee802154: atusb: fix uninit value in atusb_set_extended_addr c44979ace49b Revert "RDMA/mlx5: Fix releasing unallocated memory in dereg MR flow" 21f8a3b110f2 tracing: Tag trace_percpu_buffer as a percpu pointer be134e7c5b38 tracing: Fix check for trace_percpu_buffer validity in get_trace_buf() 3cf50a37286c selftests: x86: fix [-Wstringop-overread] warn in test_process_vm_readv() ef3047fca111 fscache_cookie_enabled: check cookie is valid before accessing it (From OE-Core rev: 2e9e7053ee875d6eb43ea8415e2656f1f40add87) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto/5.10: amdgpu: updates for CVE-2021-42327Bruce Ashfield2022-01-153-16/+16
| | | | | | | | | | | | | Integrating the following commit(s) to linux-yocto/5.10: fd84b99a8ccb drm/amd/display: Don't allow partial copy_from_user 024f4ff63d55 drm/amdgpu: Fix even more out of bound writes from debugfs (From OE-Core rev: f5488466ea1b332a0bfc0d27dcc5378edd842d16) Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-modules: update to 2.13.1Bruce Ashfield2022-01-153-1226/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping lttng-modules to 2.13.1, which fixes the build against 5.16+ kernels. We drop two previously backported patches. The following commits are part of this update: 8c0aec7e Version 2.13.1 533556cd fix: mm: move kvmalloc-related functions to slab.h (v5.16) 2f0087ab fix: block: don't call blk_status_to_errno in blk_update_request (v5.16) 9b092ff2 fix: KVM: MMU: change tracepoints arguments to kvm_page_fault (v5.16) 036297af fix: KVM: x86: Get exit_reason as part of kvm_x86_ops.get_exit_info (v5.16) a029f2a3 fix: isystem: delete global -isystem compile option (v5.16) d82de6f3 fix: block: move block-related definitions out of fs.h (v5.16) 4fabf854 Fix: syscall tracing: missing trigger actions 38b35aff Warn on event registration/unregistration failure e26f740b fix: implicit-int error in EXPORT_SYMBOL_GPL c570be0d fix: Revert "Makefile: Enable -Wimplicit-fallthrough for Clang" (v5.15) 8be4c8a3 fix: cpu/hotplug: Remove deprecated CPU-hotplug functions. (v5.15) (From OE-Core rev: 2edeebed4ff172f77e337af82fc1cddc681881df) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto/5.15: fix arm defconfig warningsBruce Ashfield2022-01-153-13/+13
| | | | | | | | | | | | | Integrating the following commit(s) to linux-yocto/5.15: 02bf23d26bc4 arm64: defconfig: cleanup config options 05914e2c87e5 arm: defconfig: drop unused POWER_AVS option (From OE-Core rev: 40e680de829cf0d394f0c10bb7363604b18a489b) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* oeqa/runtime/stap: rewrite testRoss Burton2022-01-152-25/+11
| | | | | | | | | | | | | | | | There's no need to copy files to the target when stap can take the short probe directly. Add more has-package decorators for the kernel source and GCC symlinks. Remove the test dependencies as it's not a hard dependency. Change the probe to print a message with some minimal logic, and verify that the message was correctly constructed in the output. (From OE-Core rev: 3954dc857df1d2a7e559b4fd357b54f39cf7374a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemtap: fix vsprintf errorsRoss Burton2022-01-152-0/+46
| | | | | | | | | | In some configurations (such as 32-bit arm), using printf() causes gcc errors. Backport a patch from upstream to fix this. (From OE-Core rev: 6340a6477ddf0fee6c18cf99262704a715491f60) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Preserve permissions when extracting tar archiveJacob Kroon2022-01-151-1/+1
| | | | | | | | | | | | This is done by default when tar is run by the superuser, but for native recipes the corresponding task is not run as root under pseudo, so pass the flag explicitly. Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org> (From OE-Core rev: 32f01e57e1e915e8121609fb48b0b0254e625957) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Avoid accessing network in ptest taskKhem Raj2022-01-152-0/+37
| | | | | | | | | Avoid calling docs validation and manpages validation to avoid it (From OE-Core rev: 4ad8059ae0769285c7b837a62e1b76fbeef4c505) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: fix building without SECURITY_LDFLAGSDmitry Baryshkov2022-01-142-2/+4
| | | | | | | | | | | | | | | | | | | | | | | Commit 9985b17a30bb ("go: correctly set debug-prefix-map and build directory") has changed CGO_LDFLAGS to the manually crafted version of LDFLAGS to strip out DEBUG_PREFIX_MAP contents. However this manually crafted version includes ${SECURITY_LDFLAGS}. If security_flags.inc is not included, the variable is not defined, thus CGO_LDFLAGS will include the '${SECURITY_LDFLAGS}' literally. When building the recipe, the build would break with the follwing message: aarch64-linaro-linux-gcc: error: ${SECURITY_LDFLAGS}: No such file or directory So, instead of manually specifying variable contents, perform the expected action: filter offending arguments out of LDFLAGS. Cc: Alexander Kanavin <alex.kanavin@gmail.com> (From OE-Core rev: e7d2d68679c1980d9e889d96c3eab49589f5b832) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity: Drop TUNEABI, TUNEABI_WHITELIST, TUNEABI_OVERRIDERichard Purdie2022-01-142-45/+0
| | | | | | | | | | | | | These were added nearly a decade ago but there are no users in OE-Core. I checked with the likely users and they seem to have no current usage either. Therefore remove them. If needed for some prebuilt library somewhere, they could be implemented in the layer using them instead but I doubt these are in use any longer. (From OE-Core rev: 95e196babc3c18dcf0aedfb03e85493c8ae54700) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub-efi: Add xen_boot support when 'xen' is in DISTRO_FEATURES for aarch64Kamil Dziezyk2022-01-141-0/+3
| | | | | | | | | 'xen-boot' module is available only for aarch64. (From OE-Core rev: bfabc6d4f8742cc1fdeb49c180b0f78faf5739a2) Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Avoid a Python deprecation warningPeter Kjellerstedt2022-01-141-2/+3
| | | | | | | | | | | | | | This avoids the following warning: WARNING: .../meta/recipes-core/systemd/systemd_250.1.bb: Var <do_install>:1: DeprecationWarning: invalid escape sequence \$ seen when doing `devtool finish --force-patch-refresh systemd meta`. (From OE-Core rev: 427ca80eb4ea6c607b00028adcc9302e29db1368) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* epiphany: update 41.0 -> 41.3Khairul Rohaizzat Jamaluddin2022-01-141-1/+1
| | | | | | | | | | | Includes fix patches for epiphany CVE. CVE: CVE-2021-45085 CVE-2021-45086 CVE-2021-45087 CVE-2021-45088 (From OE-Core rev: 1653e0bd6d26be67a9fd49392d82cf854706bc7b) Signed-off-by: Khairul Rohaizzat Jamaluddin <khairul.rohaizzat.jamaluddin@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* tune-cortexa72: Drop the redundant cortexa72-crc tuneKevin Hao2022-01-131-9/+5
| | | | | | | | | | | | | We have enabled the crc extension by default for cortexa72 in patch ("tune-cortexa72: Enable the crc extension by default for cortexa72"), then the cortexa72-crc seems redundant. So drop it. We also rename the cortexa72-crc-crypto to cortexa72-crypto. With these changes, it will break the BSPs which used these two tunes, but it should be easy to fix. (From OE-Core rev: 03cebdd7ef923a8ac5c8b7c12c7cefe7ca0158db) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* create-spdx: Add kernel work-shared sourceSaul Wold2022-01-131-1/+5
| | | | | | | | | | | Since the kernel source is stored in work-shared, we need to add it to the search path so the kernel and kernel-modules source code can be found correctly. (From OE-Core rev: 93a94890b9f2679945e96973937b209aa12302b7) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package: Add support for kernel strippingSaul Wold2022-01-132-13/+13
| | | | | | | | | | | | | | Extend runstrip() to accept additional argument to enable sharing it with the kernel do_strip() so that KERNEL_IMAGE_STRIP_EXTRA_SECTIONS can be passed. Since is_elf() understands kernel modules there is no need to keep a seperate list for kernmodules or hardcode the values to runstrip. (From OE-Core rev: e09a8fa931fe617afc05bd5e00dca5dd3fe386e8) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel.bbclass: use common strip()Saul Wold2022-01-131-25/+19
| | | | | | | | | | | | | | | Re-use the runstrip() code from oe.packaging, for the kernel stripping process. Since runstrip() is python the kernel do_strip() need to be converted to Python also. The stripped kernel image will be used for deployment in do_deploy(). This will allow the package.bbclass to split an unstripped kernel binary for the debug information and extended packagedata. The extended package data is used by create-spdx. (From OE-Core rev: e8d9caede5f08154ca615fdaba676b7a4ae05b01) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* armv9a/tune: Add the support for the Neoverse N2 coreKevin Hao2022-01-131-0/+22
| | | | | | | | | | | | | This adds the support for the Neoverse N2 core, even though the Neoverse N2 core implements the Arm v9.0-A architecture, but the support of it in GCC is based on the Arm v8.5-A architecture. Please see the commit 50d9db203bc3 ("aarch64: Add support for Neoverse N2 CPU") in GCC for more detail. (From OE-Core rev: 37597397f03b6b0082a702147dc536ff8b2fa7a3) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* arch-armv8-5a.inc: Add tune include for armv8.5aKevin Hao2022-01-131-0/+19
| | | | | | | | | | This adds support for the armv8.5a architecture and the crypto extension. (From OE-Core rev: 0cb1a6d9cb4c32526d79dad93c8053b3793053f8) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* tune-cortexa72: Enable the crc extension by default for cortexa72Kevin Hao2022-01-131-6/+6
| | | | | | | | | | | | | The crc extension is optional for the ARMv8.0 but is mandatory for the cortexa72, so there is no reason not to enable it for the cortexa72 tune. With this change, the cortexa72-crc seems redundant. But we had better to keep it to be compatible with the BSP which already used that tune. (From OE-Core rev: ca50267ab568d2f688844cb7c6cd867ed34168db) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes: Only allow network in existing network accessing codeRichard Purdie2022-01-126-0/+9
| | | | | | | | | | | | | | | | | | | Use the newly added network task flag against tasks where network access is expected. This is do_fetch, do_checkuri, do_testimage, do_testsdk and do_testsdkext. We can't disable networking in sstate tasks due to sstate downloads and also so we can report hash equivalence to the server so network access is enabled in sstate tasks. Access within build-appliance do_image is also allowed due to the use of pip, this is a poor example made rather obvious now and needs to be reworked. Network access anywhere else in any other task isn't allowed. (From OE-Core rev: 7ce1e88a3ad85bbb925bb9f7167dc0a5fd1c27f4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: runqueue: Drop BB_STAMP_POLICY/BB_STAMP_WHITELISTRichard Purdie2022-01-121-22/+1
| | | | | | | | | | | | The different stamp policies were poor versions of the siggen code and task hashes, predating it and being used by packaged staging. They had many limitations, hence their replacement. I'm not aware of any users of that code any more so I believe it and the assoicated stamp whitelist variable can simply be removed. (Bitbake rev: 98407efc8c670abd71d3fa88ec3776ee9b5c38f3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: bitbake-worker: Add/support network task flagRichard Purdie2022-01-121-0/+8
| | | | | | | | | | | | | | | | This patch changes behaviour. After this change any task which does not have the network flag set will have networking disabled on systems that support that (kernel version dependent). Add a "network" task specific flag which then triggers networking to be enabled for this task, it is otherwise disabled. This needs to happen before we enter the fakeroot environment of the task due to the need for the real uid/gid which we save in the parent process. (Bitbake rev: 0746b6a2a32fec4c18bf1a52b1454ca4c04bf543) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: utils: Add disable_network functionRichard Purdie2022-01-121-0/+31
| | | | | | | | | | | | Add a function which uses the unshare glibc call to disable networking in the current process. This doesn't work on older distros/kernels but will on more recent ones so for now we simply ignore the cases we can't execute on. uid/gid can be passed in externally so this can work with pseudo/fakeroot contexts. (Bitbake rev: 9d6341df611a1725090444f6f8eb0244aed08213) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poky: set default kernel to 5.15Bruce Ashfield2022-01-122-3/+3
| | | | | | | | | | 5.14 is no longer actively maintained, so we bump our default to the 5.15 LTS. (From meta-yocto rev: 70b3acd078ee2b09a541fc6c4e295b5c2ab386a6) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-bsp/5.14: drop recipesBruce Ashfield2022-01-121-23/+0
| | | | | | | | | | 5.14 has been removed from core, so we drop our bbappend. 5.15 is now the default kernel version for the reference BSPs. (From meta-yocto rev: fab1dac8fc7208675ced6386690bcf4249088675) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-bsp: change default to 5.15Bruce Ashfield2022-01-123-3/+3
| | | | | | | | | | 5.14 has been removed from core, so we change our default version to the 5.15 LTS kernel. (From meta-yocto rev: a0241305e3785930f806529fd1b1d1a3831203d0) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ruby: update 3.0.3 -> 3.1.0Alexander Kanavin2022-01-124-30/+44
| | | | | | | | | | | | | | Turn on "link external modules statically" option as otherwise ruby installer tries to do additional building inside installed module directories in do_install which fails horribly. License-Update: additional MIT/BSD items (From OE-Core rev: 4d4485442830bb52b152f0419f4ff9f1d581d46a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: drop unneeded multiprocessing module patchAlexander Kanavin2022-01-122-71/+0
| | | | | | | | | | | | | | | | | | | | | | | | pthread has been merged into the main libc library (and was never separate in musl), so separate linking for it is no longer needed. I ran the reproducing sequence on qemux86, qemux86_64 and same targets with musl, and it went fine: root@qemux86:~# python3 Python 3.10.0 (default, Oct 4 2021, 17:55:55) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import multiprocessing >>> pool_sema = multiprocessing.BoundedSemaphore(value=1) >>> pool_sema.acquire() True >>> pool_sema.release() >>> (From OE-Core rev: 2eabd3b611f4afa5eafa4490b6b0ef7578b742de) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm.bbclass: distutils -> sysconfig moduleTim Orling2022-01-121-1/+1
| | | | | | | | | | | | Change a comment to reference our custom changes to the sysconfig module, as dnf no longer uses distutils. [YOCTO #14610] (From OE-Core rev: b4e351c67cd6af9cabac70cddb67129ca2590222) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3native.bbclass: distutils -> sysconfigTim Orling2022-01-121-1/+1
| | | | | | | | | | | | In the comment it says we patch distutils modules, but we now are patching sysconfig and not using distutils. [YOCTO #14610] (From OE-Core rev: 4f196b26d80305366d06ad51f44dd26ce81bea16) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dnf: drop python3-distutils dependencyTim Orling2022-01-121-1/+0
| | | | | | | | | | | | | | Upstream dropped the now deprecated distutils: 18995d65 Remove distutils which are deprecated in python3.10 (RhBug:1950229) Usage was replaced with sysconfig, which is in python3-core [YOCTO #14610] (From OE-Core rev: 93e9b006007ef1afc79c45b48fd92c9e384ff6cb) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* waf.bbclass: drop usage of distutilsTim Orling2022-01-121-2/+1
| | | | | | | | | | | | Refactor to use bb.utils.vercmp_string_op() instead of StrictVersion from distutils [YOCTO #14610] (From OE-Core rev: d4d57588eb7fcd25caf51450e0d19fc58e35a19d) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipetool/create_buildsys_python.py: less distutilsTim Orling2022-01-121-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 'distutils' is deprecated in Python 3.10 with removal in Python 3.12 (~October 2023). Replace 'distutils.command.build_py' with 'setuptools.command.build_py'. To avoid an AttributeError, we call super().__init__() which provides the missing 'distribution' attribute. However, for some reason, __init__() in 'setuptools.command.build_py.build_py' class requires a 'dist' positional argument which must be a 'Distribution' instance. It is not clear why 'distutils.command.build_py.build_py' class does not require this. There is still a check which decides to inherit setuptools3 vs distutils3 that will need to be refactored when we add pyproject.toml and setup.cfg support for more modern PEP 517 packaging. Once distutils3.bbclass is dropped, any recipe inheriting distutils3 will throw a parsing error. The plan is to move distutils*.bbclasses to meta-python. However if meta-python is not in bblayers, the parsing error would still occur. [YOCTO #14610] (From OE-Core rev: 619a3eb1266459daf16e10386113e9201fbf9cf5) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gstreamer1.0-python: inherit setuptools3-baseTim Orling2022-01-121-1/+1
| | | | | | | | | | | Drop distutils3-base usage as it is now deprecated. [YOCTO #14610] (From OE-Core rev: 74ed892dbcc074ba7208f3c5bf1d7c094fbcb5e3) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools: do not depend on distutilsTim Orling2022-01-121-1/+0
| | | | | | | | | | | | No longer depend on python3-distutils, current versions of setuptools vendor as _distutils. [YOCTO #14610] (From OE-Core rev: 2b6735f648744c42484afec6edab6d5e130111e2) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pygobject: setuptools instead of distuilsTim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: 3c2fd45eacc15d2fd3ff1ae82e98cb6f6bed5af7) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bind: inherit setuptools3-base instead of distutilsTim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: 1b3c11b956085e144140a36e165a9c8fc880402a) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* btrfs-tools: use setuptools3-base not distutilsTim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: ee4c5b3ac3de168409f39f02d2b68b8d20bcefb2) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* librepo: inherit setuptools3-base not distutilsTim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: b6cb9f033e6ea5dc3009dc76a4a297905913410a) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* createrepo-c: inherit setuptools3-base not distutilsTim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: d95aa31179d208d528c118642f5932d467129653) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libcomps: inherit setuptools3-base not distutilsTim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: 93c019bc95e2ea92b2e4a6e45b25c2323c4423e1) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemtap: use setuptools-base not distutilsTim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: 83e4586ad64218a75b760d748e47ba4a4a07f8e9) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip: inherit setuptools3 not distuils3Tim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: 42b752e5dd8d6fab4aecad213b9868c3784df5ed) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gpgme: inherit setuptools-base not distuilsTim Orling2022-01-121-1/+1
| | | | | | | | | | | | What was distutils-common-base has been merged into setuptools3-base, since we no longer need to support python2 and python3. [YOCTO #14610] (From OE-Core rev: 4ca72e4e04841571ee42a838ec14f6b519c54c1e) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-dbus: inherit setuptools3-base not distuilsTim Orling2022-01-121-1/+1
| | | | | | | | | [YOCTO #14610] (From OE-Core rev: 61b987edbbcdd85cf6dac4b83c16b03332e412de) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>