summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* image,populate_sdk_base: move 'func' flag setting for sdk command varsstable/dunfell-nextChristopher Larson12 days2-1/+8
| | | | | | | | | | | | | | | Setting the 'func' flag on the commands variables ensures that they are parsed as shell, and therefore that the referenced commands contents are included in checksums. Doing this only in image.bbclass means that this is missing in recipes that are not images, but which inherit populate_sdk or populate_sdk_base directly, so move it to the latter. [YOCTO #13998] Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit edc28907ce19a7298059dd388933c58a9c6c28b9) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* buildhistory: add missing vardepsexcludesChristopher Larson12 days1-0/+3
| | | | | | | | | For POPULATE_SDK_POST_TARGET_COMMAND, POPULATE_SDK_POST_HOST_COMMAND, and SDK_POSTPROCESS_COMMAND, the appropriate entries were added to vardepvalueexclude, but we want them in vardepsexclude as well. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 554b17e0bbe5190e4b03121f2ed06f4845012a71) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* populate_sdk_ext: Avoid copying and producing .pyc filesMark Hatle2021-03-312-4/+6
| | | | | | | | | | | | Since pyc cache files are really system specific, no real reason to copy or generate them during the eSDK build process. Also generating them has the possibility of re-using inodes that pseudo may have been tracking, leading a build failure. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ce8eba263647ae63a722122e28f26af46ae083a0) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* libtool: make sure autoheader run before autoconfMingli Yu2021-03-312-0/+36
| | | | | | | | | | | | | | autoheader will update ../libtool-2.4.6/libltdl/config-h.in which autoconf needs, so there comes a race sometimes as below: | configure.ac:45: error: required file 'config-h.in' not found | touch '../libtool-2.4.6/libltdl/config-h.in' So make sure autoheader run before autoconf to avoid this race. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d8451cbef5906b67756582fdfc44eb01ed3512fc) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* bitbake.conf: correct description of HOSTTOOLS_DIRRobert P. J. Day2021-03-311-1/+1
| | | | | | | | | HOSTTOOLS_DIR contains symlinks to host tools, not copies Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit fb7692da7faa49b370680decbbaceaeb85b6889d) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* documentation-audit.sh: Fix typo in specifying LICENSE_FLAGS_WHITELISTKhem Raj2021-03-311-1/+1
| | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 410a45639d84a3d69a65133593da32062196dd59) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* run-postinsts: do not remove postinsts directory.Anton D. Kachalov2021-03-311-6/+4
| | | | | | | | | | | | | | | When running on the systems having read-only rootfs backed by overlayfs, removing the whole directory lead to create a special char device file on the upperdir to reflect directory's removal. Once it is required to upgrade the whole read-only image that might contain new postinsts scripts, it will be impossible to run such scripts with a "deletion mark" file on the overlayfs -- the whole directory will be marked as deleted regardless new files in it. Signed-off-by: Anton D. Kachalov <gmouse@google.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 1a27b62b225ffeecec47c249a0b86cc54d775add) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* cryptodev-module: fix build failure with kernel v5.10Naveen Saini2021-03-312-0/+43
| | | | | | | | | | | zc.c:77:8: error: too many arguments to function 'get_user_pages_remote' | 77 | ret = get_user_pages_remote(task, mm, | | ^~~~~~~~~~~~~~~~~~~~~ Backported patch to fix it. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
* cryptodev-module: Backport a patch to fix build failure with kernel v5.8He Zhe2021-03-312-0/+50
| | | | | | | | | | | | | | | | | | | | | | Fix the following build failure with linux-yocto-dev zc.c:61:17: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 61 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base zc.c:77:15: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 77 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base (From OE-Core rev: fe668065ad7ec83aadfa36fe6ba1ced3db2e3cad) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
* linux-firmware: Fix packagingMichael Trensch2021-03-311-9/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream directory layout has changed after update in commit 3c2f8b750ab9c53773fb5a9a1a874e475740b4ee, resulting in some package to pull in linux-firmware base package. This may cause an image size increase of approximately 700MB. See log.do_packaging: DEBUG: linux-firmware-bcm43340 contains dangling link /lib/firmware/cypress/cyfmac43340-sdio.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm43362 contains dangling link /lib/firmware/cypress/cyfmac43362-sdio.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm4339 contains dangling link /lib/firmware/cypress/cyfmac4339-sdio.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm43430 contains dangling link /lib/firmware/cypress/cyfmac43430-sdio.clm_blob DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm43430 contains dangling link /lib/firmware/cypress/cyfmac43430-sdio.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm43455 contains dangling link /lib/firmware/cypress/cyfmac43455-sdio.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm43455 contains dangling link /lib/firmware/cypress/cyfmac43455-sdio.clm_blob DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm4354 contains dangling link /lib/firmware/cypress/cyfmac4354-sdio.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm4356 contains dangling link /lib/firmware/cypress/cyfmac4356-sdio.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm4356-pcie contains dangling link /lib/firmware/cypress/cyfmac4356-pcie.clm_blob DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm4356-pcie contains dangling link /lib/firmware/cypress/cyfmac4356-pcie.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm43570 contains dangling link /lib/firmware/cypress/cyfmac43570-pcie.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-bcm4373 contains dangling link /lib/firmware/cypress/cyfmac4373-sdio.bin DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0099-0001_2x10.nffw DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0099-0001_2x25.nffw DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0081-0001_4x10.nffw DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0097-0001_8x10.nffw DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0099-0001_1x10_1x25.nffw DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0097-0001_2x40.nffw DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0096-0001_2x10.nffw DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0097-0001_4x10_1x40.nffw DEBUG: target found in linux-firmware DEBUG: linux-firmware-netronome contains dangling link /lib/firmware/netronome/nic/nic_AMDA0081-0001_1x40.nffw DEBUG: target found in linux-firmware Signed-off-by: Michael Trensch <mtrensch@hilscher.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cd273c611b03bd5972da8bf4accaba247f7c9c62) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* linux-yocto/5.4: update to v5.4.107Bruce Ashfield2021-03-313-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating linux-yocto/5.4 to the latest korg -stable release that comprises the following commits: a65e78863443 Linux 5.4.107 5161cc4350de net: dsa: b53: Support setting learning on port ebeefdc3d8ee net: dsa: tag_mtk: fix 802.1ad VLAN egress 6c3d86e6ffde crypto: x86/aes-ni-xts - use direct calls to and 4-way stride ae69c97bb76e crypto: aesni - Use TEST %reg,%reg instead of CMP $0,%reg eeb0899e0073 crypto: x86 - Regularize glue function prototypes 187ae0463653 fuse: fix live lock in fuse_iget() 28e53acd3065 drm/i915/gvt: Fix vfio_edid issue for BXT/APL 5a7c72ffb412 drm/i915/gvt: Fix port number for BDW on EDID region setup 4ab29329668d drm/i915/gvt: Fix virtual display setup for BXT/APL e46f72e1f27c drm/i915/gvt: Fix mmio handler break on BXT/APL. 8cd68991b836 drm/i915/gvt: Set SNOOP for PAT3 on BXT/APL to workaround GPU BB hang 50f83ffc58ab btrfs: scrub: Don't check free space before marking a block group RO 591ea83fd2ce bpf, selftests: Fix up some test_verifier cases for unprivileged 4e4c85404a23 bpf: Add sanity check for upper ptr_limit 524471df8fa9 bpf: Simplify alu_limit masking for pointer arithmetic 2da0540739e4 bpf: Fix off-by-one for area size in creating mask to left ea8fb45eaac1 bpf: Prohibit alu ops for pointer types not defining ptr_limit 010c5bee66bd KVM: arm64: nvhe: Save the SPE context early 0437de26e28d Linux 5.4.106 b802b6ef28d6 xen/events: avoid handling the same event on two cpus at the same time 92aefc62f483 xen/events: don't unmask an event channel when an eoi is pending 43d0b82bb45c xen/events: reset affinity of 2-level event when tearing it down 38563c1ff081 KVM: arm64: Reject VM creation when the default IPA size is unsupported da2e37b55d4c KVM: arm64: Ensure I-cache isolation between vcpus of a same VM 4e2156c0d37b nvme: release namespace head reference on error eb565f052b3e nvme: unlink head after removing last namespace 4535fb9ec5fd KVM: arm64: Fix exclusive limit for IPA size e28b19ca2aeb x86/unwind/orc: Disable KASAN checking in the ORC unwinder, part 2 c0e0ab60d0b1 binfmt_misc: fix possible deadlock in bm_register_write 106fea9ad246 powerpc/64s: Fix instruction encoding for lis in ppc_function_entry() 907f7f2cf0ff sched/membarrier: fix missing local execution of ipi_sync_rq_state() 2306580a95b7 zram: fix return value on writeback_store 29e28a134a49 include/linux/sched/mm.h: use rcu_dereference in in_vfork() 99f1960cae4f stop_machine: mark helpers __always_inline aaf92d0538d2 hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event() 88c79851b82d arm64: mm: use a 48-bit ID map when possible on 52-bit VA builds 73aa6f93e1e9 configfs: fix a use-after-free in __configfs_open_file babd55002dd4 block: rsxx: fix error return code of rsxx_pci_probe() 41deefab452a NFSv4.2: fix return value of _nfs4_get_security_label() 86954a52d829 NFS: Don't gratuitously clear the inode cache when lookup failed d29f9aa6a8b2 NFS: Don't revalidate the directory permissions on a lookup failure d5a69ed75931 SUNRPC: Set memalloc_nofs_save() for sync tasks 9c9ea7ac18b2 arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory 19bb2a20710d sh_eth: fix TRSCER mask for R7S72100 c3c1defad2dd staging: comedi: pcl818: Fix endian problem for AI command data c5916897a6e1 staging: comedi: pcl711: Fix endian problem for AI command data 7d8ec7bef320 staging: comedi: me4000: Fix endian problem for AI command data e70294943c89 staging: comedi: dmm32at: Fix endian problem for AI command data 47a2af64eea3 staging: comedi: das800: Fix endian problem for AI command data 0f2522ec71b6 staging: comedi: das6402: Fix endian problem for AI command data e91490b9edb9 staging: comedi: adv_pci1710: Fix endian problem for AI command data 4d6505edee5a staging: comedi: addi_apci_1500: Fix endian problem for command sample f258c1c26f64 staging: comedi: addi_apci_1032: Fix endian problem for COS sample e644fc4ab7bb staging: rtl8192e: Fix possible buffer overflow in _rtl92e_wx_set_scan 8f586a59829b staging: rtl8712: Fix possible buffer overflow in r8712_sitesurvey_cmd 9fe42273b2c6 staging: ks7010: prevent buffer overflow in ks_wlan_set_scan() ab42f28d5f34 staging: rtl8188eu: fix potential memory corruption in rtw_check_beacon_data() 1a866057e970 staging: rtl8712: unterminated string leads to read overflow da5abe369b03 staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan() a311b6a7f099 staging: rtl8192u: fix ->ssid overflow in r8192_wx_set_scan() e4b52c7cbaaf misc: fastrpc: restrict user apps from sending kernel RPC messages 9009b59dfd5f misc/pvpanic: Export module FDT device table 0a58a400a93b usbip: fix vudc usbip_sockfd_store races leading to gpf 8a50dda5243e usbip: fix vhci_hcd attach_store() races leading to gpf 8698133003cf usbip: fix stub_dev usbip_sockfd_store() races leading to gpf 7b76c7a91bf6 usbip: fix vudc to check for stream socket 2e24c093e264 usbip: fix vhci_hcd to check for stream socket da1be8e07852 usbip: fix stub_dev to check for stream socket ec7fb77a37af USB: serial: cp210x: add some more GE USB IDs b05ac5bcf623 USB: serial: cp210x: add ID for Acuity Brands nLight Air Adapter 0b7034401f0c USB: serial: ch341: add new Product ID 5287c3d62e91 USB: serial: io_edgeport: fix memory leak in edge_startup c1b20c6fac05 xhci: Fix repeated xhci wake after suspend due to uncleared internal wake state 3573dea8c17a usb: xhci: Fix ASMedia ASM1042A and ASM3242 DMA addressing 57ab089c09d5 xhci: Improve detection of device initiated wake signal. f4f02f9feb4e usb: xhci: do not perform Soft Retry for some xHCI hosts 45bc1c34b54e usb: renesas_usbhs: Clear PIPECFG for re-enabling pipe with other EPNUM c9e346234698 USB: usblp: fix a hang in poll() if disconnected cc495be17466 usb: dwc3: qcom: Honor wakeup enabled/disabled state f030e3c67791 usb: dwc3: qcom: Add missing DWC3 OF node refcount decrement 014e4b616313 usb: gadget: f_uac1: stop playback on function disable 117aadfc0616 usb: gadget: f_uac2: always increase endpoint max_packet_size by one audio slot ec7b0ac66539 USB: gadget: u_ether: Fix a configfs return code 0ae3101f5cf0 Goodix Fingerprint device is not a modem b0ea155fa4f7 mmc: cqhci: Fix random crash when remove mmc module/card 61fadd5f1e4e mmc: core: Fix partition switch time for eMMC 1cb73c82622c software node: Fix node registration 3bc266631a9e s390/dasd: fix hanging IO request during DASD driver unbind 87adc240df30 s390/dasd: fix hanging DASD driver unbind 12002aa2e7af arm64: kasan: fix page_alloc tagging with DEBUG_VIRTUAL 47a5d1b63f21 Revert 95ebabde382c ("capabilities: Don't allow writing ambiguous v3 file capabilities") ac85e7d4abb1 ALSA: usb-audio: Apply the control quirk to Plantronics headsets b1fe755e51df ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar 2b7615c97b0e ALSA: hda: Avoid spurious unsol event handling during S3/S4 bb060148e29f ALSA: hda: Flush pending unsolicited events before suspend 09cb42025a46 ALSA: hda: Drop the BATCH workaround for AMD controllers e1a92ad57b2c ALSA: hda/ca0132: Add Sound BlasterX AE-5 Plus support ff2152beb22c ALSA: hda/hdmi: Cancel pending works before suspend dd6d483104bf ALSA: usb: Add Plantronics C320-M USB ctrl msg delay quirk 300fba2b4e11 scsi: target: core: Prevent underflow for service actions de2cdbcb4f38 scsi: target: core: Add cmd length set before cmd complete 050e1900d617 scsi: libiscsi: Fix iscsi_prep_scsi_cmd_pdu() error handling acf0e7b15f87 sysctl.c: fix underflow value setting risk in vm_table 508d56e2c5c3 s390/smp: __smp_rescan_cpus() - move cpumask away from stack 54fc6a56f72a i40e: Fix memory leak in i40e_probe f95403013744 PCI: Fix pci_register_io_range() memory leak e9be5518af2c kbuild: clamp SUBLEVEL to 255 e622e01d44e4 PCI: mediatek: Add missing of_node_put() to fix reference leak d54c77959ece PCI: xgene-msi: Fix race in installing chained irq handler 395f24b37fe8 Input: applespi - don't wait for responses to commands indefinitely. ad93777a59c7 sparc64: Use arch_validate_flags() to validate ADI flag dec0ab3bc3a2 sparc32: Limit memblock allocation to low memory f8788ee8544c iommu/amd: Fix performance counter initialization d92afe30a665 powerpc/64: Fix stack trace not displaying final frame 61654b5d079d HID: logitech-dj: add support for the new lightspeed connection iteration 49e38713faaf powerpc/perf: Record counter overflow always if SAMPLE_IP is unset a54c278fcf8b powerpc: improve handling of unrecoverable system reset 7765b5c2c192 spi: stm32: make spurious and overrun interrupts visible 507b9bce2113 powerpc/pci: Add ppc_md.discover_phbs() 26d60799d99b Platform: OLPC: Fix probe error handling ccad3c70fcd0 mmc: mediatek: fix race condition between msdc_request_timeout and irq edf05afc9be3 mmc: mxs-mmc: Fix a resource leak in an error handling path in 'mxs_mmc_probe()' c44d966e9020 udf: fix silent AED tagLocation corruption 5f04f970d579 i2c: rcar: optimize cacheline to minimize HW race condition 1e1aace4a395 i2c: rcar: faster irq code to minimize HW race condition 2e24fd30c6f0 net: phy: fix save wrong speed and duplex problem if autoneg is on aea71e92b9a0 net: enetc: initialize RFS/RSS memories for unused ports too d1f308174a60 net: hns3: fix error mask definition of flow director cb36bf447a0c media: rc: compile rc-cec.c into rc-core 4c0c31572b67 media: v4l: vsp1: Fix bru null pointer access f56a82844c1f media: v4l: vsp1: Fix uif null pointer access 8cdc0900fc80 media: usbtv: Fix deadlock on suspend 56b9b2c25905 sh_eth: fix TRSCER mask for R7S9210 bdec0dd95cc8 qxl: Fix uninitialised struct field head.surface_id d5fc9c5d64ca s390/crypto: return -EFAULT if copy_to_user() fails 72ba965bf10d s390/cio: return -EFAULT if copy_to_user() fails d2100ef32a8c drm: meson_drv add shutdown function 72c541cc4552 drm/shmem-helper: Don't remove the offset in vm_area_struct pgoff 0d574fc463c7 drm/shmem-helper: Check for purged buffers in fault handler 3b08ea3a548f drm/compat: Clear bounce structures cabbd263c8e8 bnxt_en: reliably allocate IRQ table on reset to avoid crash dfa176f374ba s390/cio: return -EFAULT if copy_to_user() fails again 05d11eb7bd9d net: hns3: fix bug when calculating the TCAM table info 8bbc59bb0556 net: hns3: fix query vlan mask value error for flow director 4d0273ab0a79 perf traceevent: Ensure read cmdlines are null terminated. ef663d149f8e selftests: forwarding: Fix race condition in mirror installation fcce3cb62c09 net: stmmac: fix watchdog timeout during suspend/resume stress test d31ae9ec5a03 net: stmmac: stop each tx channel independently 86ea605518d7 ixgbe: fail to create xfrm offload of IPsec tunnel mode SA e8b6c1d7ced2 net: qrtr: fix error return code of qrtr_sendmsg() d28e783c2003 net: davicom: Fix regulator not turned off on driver removal 05517de4188b net: davicom: Fix regulator not turned off on failed probe 11a589205119 net: lapbether: Remove netif_start_queue / netif_stop_queue b4800e7a1c9f cipso,calipso: resolve a number of problems with the DOI refcounts 6d599697e9a8 netdevsim: init u64 stats for 32bit hardware 8e365b61bda7 net: usb: qmi_wwan: allow qmimux add/del with master up 392f34cce2b0 net: sched: avoid duplicates in classes dump 3e66c16388f5 nexthop: Do not flush blackhole nexthops when loopback goes down 7f101d035deb net: stmmac: fix incorrect DMA channel intr enable setting of EQoS v4.10 0fbbcf797e9c net/mlx4_en: update moderation when config reset 78cbd0a4749d net: enetc: don't overwrite the RSS indirection table when initializing 6547ec428619 Revert "mm, slub: consider rest of partial list if acquire_slab() fails" 55e6ede3b935 cifs: return proper error code in statfs(2) a1ff418d3eda mount: fix mounting of detached mounts onto targets that reside on shared mounts 59a057a89155 powerpc/603: Fix protection of user pages mapped with PROT_NONE da9f2219f66c mt76: dma: do not report truncated frames to mac80211 95b0a3b09094 ibmvnic: always store valid MAC address 3e8ab75f3301 samples, bpf: Add missing munmap in xdpsock c2c3a85ab01f selftests/bpf: Mask bpf_csum_diff() return value to 16 bits in test_verifier 57b9f13e8aaa selftests/bpf: No need to drop the packet when there is no geneve opt 82e85c0e7f34 netfilter: x_tables: gpf inside xt_find_revision() f66b8e738140 netfilter: nf_nat: undo erroneous tcp edemux lookup 3bf899438c12 tcp: add sanity tests to TCP_QUEUE_SEQ b7049b6156ce can: tcan4x5x: tcan4x5x_init(): fix initialization - clear MRAM before entering Normal Mode a7e187a87e8e can: flexcan: invoke flexcan_chip_freeze() to enter freeze mode e0eccdfc5c0e can: flexcan: enable RX FIFO after FRZ/HALT valid ca483b872d20 can: flexcan: assert FRZ bit in flexcan_chip_freeze() 6676e510d1a9 can: skb: can_skb_set_owner(): fix ref counting if socket was closed before setting skb ownership 718769eb1bbe sh_eth: fix TRSCER mask for SH771x 8baa52f26b3e net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0 ca278267d6cd net: check if protocol extracted by virtio_net_hdr_set_proto is correct f2d78bbbca42 net: Fix gro aggregation for udp encaps with zero csum 9be769161192 ath9k: fix transmitting to stations in dynamic SMPS mode 5555ee33b6cc ethernet: alx: fix order of calls on resume dcb95790821b powerpc/pseries: Don't enforce MSI affinity with kdump fd1824bf963a uapi: nfnetlink_cthelper.h: fix userspace compilation error Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 59ab12f804dda59ecf8954df6ef8024646bcbde7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* openssl: update to 1.1.1k to fix CVE-2021-3450 and CVE-2021-3449Mikko Rapeli2021-03-291-1/+1
| | | | | | | | Only security issues fixed in this release according to https://www.openssl.org/news/cl111.txt Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Signed-off-by: Steve Sakoman <steve@sakoman.com>
* git: fix CVE-2021-21300Minjae Kim2021-03-292-1/+308
| | | | | | | | | checkout: fix bug that makes checkout follow symlinks in leading path Upstream-Status: Acepted [https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592] CVE: CVE-2021-21300 Signed-off-by: Minjae Kim <flowergom@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
* connman: fix CVE-2021-26675, CVE-2021-26676Catalin Enache2021-03-294-0/+329
| | | | | | | | | | | | | | | | | | | | | | A stack-based buffer overflow in dnsproxy in ConnMan before 1.39 could be used by network adjacent attackers to execute code. gdhcp in ConnMan before 1.39 could be used by network-adjacent. attackers to leak sensitive stack information, allowing further exploitation of bugs in gdhcp. References: https://nvd.nist.gov/vuln/detail/CVE-2021-26675 https://nvd.nist.gov/vuln/detail/CVE-2021-26676 Upstream patches: https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=e4079a20f617a4b076af503f6e4e8b0304c9f2cb https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=58d397ba74873384aee449690a9070bacd5676fa https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=a74524b3e3fad81b0fd1084ffdf9f2ea469cd9b1 Signed-off-by: Catalin Enache <catalin.enache@windriver.com> Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
* linux-yocto/5.4: update to v5.4.105Bruce Ashfield2021-03-243-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating linux-yocto/5.4 to the latest korg -stable release that comprises the following commits: ce615a08404c Linux 5.4.105 d17cf4cb1928 nvme-pci: add quirks for Lexar 256GB SSD 1d08ff846484 nvme-pci: mark Seagate Nytro XM1440 as QUIRK_NO_NS_DESC_LIST. 9106a7844efb HID: i2c-hid: Add I2C_HID_QUIRK_NO_IRQ_AFTER_RESET for ITE8568 EC on Voyo Winpad A15 b5e10e9b3047 mmc: sdhci-of-dwcmshc: set SDHCI_QUIRK2_PRESET_VALUE_BROKEN 21f3fb36b5a2 drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register 1d113893ff9d misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom 9f1f09887551 PCI: Add function 1 DMA alias quirk for Marvell 9215 SATA controller f40fdcb7ca29 ASoC: Intel: bytcr_rt5640: Add quirk for ARCHOS Cesium 140 242be7cddd25 ACPI: video: Add DMI quirk for GIGABYTE GB-BXBT-2807 86c8848d680a media: cx23885: add more quirks for reset DMA on some AMD IOMMU fd476c6d4e1a HID: mf: add support for 0079:1846 Mayflash/Dragonrise USB Gamecube Adapter ef9fa6bb8582 platform/x86: acer-wmi: Add ACER_CAP_KBD_DOCK quirk for the Aspire Switch 10E SW3-016 3a8eb20cb87b platform/x86: acer-wmi: Add support for SW_TABLET_MODE on Switch devices e3a3a69da177 platform/x86: acer-wmi: Add ACER_CAP_SET_FUNCTION_MODE capability flag b734af305c78 platform/x86: acer-wmi: Add new force_caps module parameter 025180244251 platform/x86: acer-wmi: Cleanup accelerometer device handling 37b4324cb78e platform/x86: acer-wmi: Cleanup ACER_CAP_FOO defines 200e14759da5 mwifiex: pcie: skip cancel_work_sync() on reset failure path c699a89d385c iommu/amd: Fix sleeping in atomic in increase_address_space() fa56bf637eac ACPICA: Fix race in generic_serial_bus (I2C) and GPIO op_region parameter handling f27765adb3f6 dm table: fix zoned iterate_devices based device capability checks 06ef17b88676 dm table: fix DAX iterate_devices based device capability checks b8aedc65db40 dm table: fix iterate_devices based device capability checks c1f5fc082beb net: dsa: add GRO support via gro_cells 84d5d3c9d3fb Linux 5.4.104 d859388ea25a r8169: fix resuming from suspend on RTL8105e if machine runs on battery 1fba84f3c491 rsxx: Return -EFAULT if copy_to_user() fails 77a81b10f894 ftrace: Have recordmcount use w8 to read relp->r_info in arm64_is_fake_mcount 9a20e5782d2d ALSA: hda: intel-nhlt: verify config type 86b3b62b81c5 IB/mlx5: Add missing error code 809ef2660c1b RDMA/rxe: Fix missing kconfig dependency on CRYPTO 26a1af33c9cd ALSA: ctxfi: cthw20k2: fix mask on conf to allow 4 bits 6827415290ab usbip: tools: fix build error for multiple definition 078170924d84 crypto - shash: reduce minimum alignment of shash_desc structure 1f8884d04480 arm64: ptrace: Fix seccomp of traced syscall -1 (NO_SYSCALL) 9e15b43fdaf3 drm/amdgpu: fix parameter error of RREG32_PCIE() in amdgpu_regs_pcie b367201430dd dm verity: fix FEC for RS roots unaligned to block size 1a4182923144 dm bufio: subtract the number of initial sectors in dm_bufio_get_device_size 52a643680165 PM: runtime: Update device status before letting suppliers suspend e49baccfe299 btrfs: fix warning when creating a directory with smack enabled a87911c26a1c btrfs: unlock extents in btrfs_zero_range in case of quota reservation errors 91bc3296bffb btrfs: free correct amount of space in btrfs_delayed_inode_reserve_metadata 8674c1a72a69 btrfs: validate qgroup inherit for SNAP_CREATE_V2 ioctl 0c740d2b8c61 btrfs: fix raid6 qstripe kmap 909a8d2b1e7b btrfs: raid56: simplify tracking of Q stripe presence 15726df8c09a tpm, tpm_tis: Decorate tpm_get_timeouts() with request_locality() 6d71cbc91104 tpm, tpm_tis: Decorate tpm_tis_gen_interrupt() with request_locality() Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 589673d5cef12c98a95c83d47d30d6fc35463747) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* selftest/wic: Fix dependency issue in rawcopy testRichard Purdie2021-03-241-7/+11
| | | | | | | | | | | | | The current test code contains a subtle race. It is building an ext4, then trying to reuse that image in a wic build for the same recipe. Whilst this happened to work, the code is within its rights to clean up the output before the wic code runs. Avoid this by using separate image targets instead. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 590398080e81fb5e2f81e12b8900858837dfe25f) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* linux-dummy: add empty dependent packagesLi Wang2021-03-242-1/+27
| | | | | | | | | | | | | | some kernel includes kernel-image-image and kernel-devicetree packages. these patckages are defined in kernel.bbclass but, when use linux-dummy, these packages are not defined. so, define them as empty packages for avoiding compile error: ERROR: Nothing RPROVIDES 'kernel-devicetree' Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8dbae2dd5ac3de629957ca699f823f5438e80163) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* devshell.bbclass: Exceptions displayed within devpyshellDorinda Bassey2021-03-241-0/+1
| | | | | | | | | | | | | If you type something into devpyshell, an exception should be triggered, but that exception isn't printed out because it is not being flushed out of the buffer. This patch fixes that issue. [YOCTO #12156] Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 9f95e82a3b27bfd5177a855326dcad8a5bdf5b2d) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* scripts/verify-bashisms: Update checkbashisms.pl URLPetr Vorel2021-03-241-1/+1
| | | | | | | | | anonscm.debian.org is not used any more, update the URL. Signed-off-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 3c89071a2c19a522c1df5919f500b88339ec6294) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* externalsrc: Detect code changes in submodulesDouglas Royds2021-03-241-7/+9
| | | | | | | | | | | | | Further to 50ff9afb39, only detect code changes in submodules that are subdirectories of the EXTERNALSRC directory. git submodule status returns a path relative to the cwd for each submodule. We don't add submodules that are not within our source subtree. Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 4525310d49d115a37705f04ac5c03d639e5e8f8c) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* cmake: Fully-qualified path to arDouglas Royds2021-03-241-1/+2
| | | | | | | | | | | | | | We (correctly enough) pass in our AR to cmake via the toolchain file, but unlike the other cross-compilation tools (CC, CXX, ranlib, etc), cmake does not then do its own search in the PATH for our AR. By using cmake's own find_program() to search the PATH, make works as expected from the commandline, outside of bitbake. Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e9180c9575f0723b51915a0da58452511b6b03bf) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* cve-check: CVE_VERSION_SUFFIX to work with patched releaseLee Chee Yang2021-03-243-1/+16
| | | | | | | | | | | | | CVE_VERSION_SUFFIX in "patch" to treat version string with suffix "pX" or "patchX" as patched release. also update testcases to cover this changes and set CVE_VERSION_SUFFIX for sudo. Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8076815fc2ffc8f632e73527ce2b7d158a29e9ea) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* cve-update-db-native: consider version suffix when update CVE dbLee Chee Yang2021-03-241-1/+6
| | | | | | | | | | | | | | | some record from NVD can merge or split suffix from version, for example: CVE-2017-15906 "cpe23Uri" : "cpe:2.3:a:openbsd:openssh:5.0:p1:*:*:*:*:*:*" "cpe23Uri" : "cpe:2.3:a:openbsd:openssh:4.7p1:*:*:*:*:*:*:*" in such case include the suffix into version when update local CVE db. Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 13cc68197f81bb7c76fa1abecc5dd720b8bdb8d5) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* initrdscripts: init-install-efi.sh install extra files for ESPChee Yang Lee2021-03-241-0/+5
| | | | | | | | | | | | | | Currently the install script copy only few hard coded item while setting up target ESP, kernel artifacts, all .efi in EFI/BOOT, grub & boot cfg and loader.conf. While ESP can be much complex, eg: contain multiple initrd. Add a ESP folder to carry any other files to setup onto ESP. Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 6eaca9cf20c42501fba27dea3a6446bad948e859) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* wpa-supplicant: update CVE-2021-27803.patchMartin Jansa2021-03-201-4/+8
| | | | | | | | * update to match what was merged in master branch (and I have now sent for gatesgarth) * fixes Upstream-Status (there is a missing 'c' in 'Acepted' and 'Backport' is more accurate) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
* glibc: Pull latest 2.31 HEADAnatol Belski2021-03-204-295/+4
| | | | | | | | | | | | | | | | | | | The relevant commit log: $ git log --format="%h %s" df31c7ca927242d5d4eee97f93a01e23ff47e332..f84949f1c4bbf20e6a1d9a5859cf012cde060ede f84949f1c4 powerpc64: Workaround sigtramp vdso return call 5e43566f0f nscd: Fix double free in netgroupcache [BZ #27462] d0c84d22b6 gconv: Fix assertion failure in ISO-2022-JP-3 module (bug 27256) af316e4627 x86: Check IFUNC definition in unrelocated executable [BZ #20019] 36eb01dd85 x86: Set header.feature_1 in TCB for always-on CET [BZ #27177] 8b7be87aa2 x86-64: Avoid rep movsb with short distance [BZ #27130] c4f5e32aae Fix buffer overrun in EUC-KR conversion module (bz #24973) 0858f46440 Add NEWS entry for CVE-2020-29562 (BZ #26923) 1e40391de2 iconv: Fix incorrect UCS4 inner loop bounds (BZ#26923) 568c86274a tests-mcheck: New variable to run tests with MALLOC_CHECK_=3 Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
* iputils: fix various arping regressionsDiego Santa Cruz2021-03-206-0/+259
| | | | | | | | | | | arping in iputils s20190709 has several problems, this backports the fixes from s20200821. - -D, duplicate address detection, always returns failure - -w -f does not behave correctly - -w option hangs arping - -U option returns failure Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
* systemd-conf: do not ask for DHCP if configured on kernel command lineStefan Schmidt2021-03-202-3/+1
| | | | | | | | | | | | In cases where we configure the IP address and more on the kernel command line with ip= we should not ask for DHCP with systemd-networkd later on. We have such a setup with our runqemu script. With this match in place we can also deploy this unit on qemu systems. Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8c4981e740c0e630200dbc77c9e3dfd3e43b790b)
* maintainers: update own email addressDenys Dmytriyenko2021-03-201-20/+20
| | | | | | | Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 63e5f91d46d76800452ed8a0fade8dd3db1fc88e) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* meta-selftest: Add HOMEPAGE / DESCRIPTIONDorinda Bassey2021-03-201-0/+1
| | | | | | | | | | Added HOMEPAGE and DESCRIPTION for recipes with missing descriptions or homepage. Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f36f176dc0316a79ae288c3b4f6c2eab366810dd) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* bitbake-whatchanged: change ending quote to proper periodRobert P. J. Day2021-03-201-1/+1
| | | | | | | | | | Pretty sure that trailing quote should be a period; it appears to work properly. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 579f9ada19bd174bff0002cd6a731d12a1868252) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* populate_sdk_ext: record METADATA_REVISIONChen Qi2021-03-201-0/+3
| | | | | | | | | | | | | | | As we delete the .git/ directory, it's impossible to get METADATA_REVISION inside eSDK. Because of this, we meet the following warning when installing eSDK. WARNING: The base-files:do_install sig is computed to be 16b9d96148d45de183cc94667aae016ec7d102d48255456381e718cd4bbd0aa0, \ but the sig is locked to 6eb0dcaed504282becee94662481d79264db920dee1f7deda18230133fff8f36 in SIGGEN_LOCKEDSIGS_t-qemux86-64 So we record METADATA_REVISION in eSDK generation time to fix this problem. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ff2ad51b801fd62e2abbc573ba2c9ee8fdc7e012) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* devtool: Fix do_kernel_configme taskAlejandro Hernandez Samaniego2021-03-201-1/+6
| | | | | | | | | | | | | | | | | | | | | | | The do_kernel_configme task is no longer part of SRCTREECOVEREDTASKS, its been removed from the kernel-yocto.bbclass since b72dbb2e4, but there wasnt a matching patch for devtool for those changes. This patch enables us to invoke the do_kernel_configme task when using a devtool workspace, it also prepends a check for an existing .config file in the source directory and moves it if thats the case, since when using devtool modify a .config is created and do_kernel_configme complains about it, this is not the case when using bitbake since the .config file would be on B instead. Alowing do_kernel_configme to run also fixes the flow where testing a new config fragment from devtool workspace isnt added properly (config queue shows it as ///frg.cfg) and as a side effect it never gets merged into the final config. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alhe@linux.microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 08dcc0e68095dcf2a159546a48b29d40c9aabc0b) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* iso-codes: fix protocol in SRC_URIMartin Jansa2021-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | * it doesn't listen on http and the redirect sometimes doesn't work WARNING: iso-codes-4.6.0-r0 do_fetch: Failed to fetch URL git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http;branch=main;, attempting MIRRORS if available The protocol should be changed to https, like all other salsa.debian.org pulls are, so that it doesn't depend on mirrors.bbclass to resolve this. meta/classes/mirrors.bbclass:git://salsa.debian.org/.*     git://salsa.debian.org/PATH;protocol=https \n \ from log.do_fetch: DEBUG: Fetcher accessed the network with the command LANG=C git -c core.fsyncobjectfiles=0 fetch -f --progress http://salsa.debian.org/iso-codes-team/iso-codes.git refs/*:refs/* fatal: unable to access 'http://salsa.debian.org/iso-codes-team/iso-codes.git/': Couldn't connect to server WARNING: Failed to fetch URL git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http;branch=main;, attempting MIRRORS if available ... warning: redirecting to https://salsa.debian.org/iso-codes-team/iso-codes.git/ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 749eeb8cfaa8ffcfda29f3f06a77debaf6304288) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* Revert "sstatesig.py: show an error instead of warning when sstate manifest ↵Steve Sakoman2021-03-171-1/+1
| | | | | | | | isn't found" Causes breakage in other layers This reverts commit e0c1db170fdd6c1d78fdfce017feae26c96fac29.
* cups: use /run instead /var/run in systemd's unit fileChen Qi2021-03-111-0/+1
| | | | | | | | | | | | | /var/run has been deprecated by systemd, so use /run instead, as suggested by systemd. [Yocto #14152] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 6c3f56020da7a26c2daea73e39c2f324f1f597db) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
* insane: don't check for a warning string that is never outputRoss Burton2021-03-111-21/+1
| | | | | | | | | | | | | | | insane has checks that the compiler isn't printing "CROSS COMPILE Badness" during configure/compile/install, but this message hasn't been output by GCC since 2010 (23f522e7). The current warning is "include location [...] is unsafe for cross- compilation" and as that is a proper GCC warning, we can make it fatal in follow-up patches. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a67e9ebfd5b8002fd4a7d8d27ff0d997817f76e1) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* build-appliance-image: Drop kernel module handlingRichard Purdie2021-03-111-7/+1
| | | | | | | | | | | | | | | | kernel-devsrc is a dependency of the image so we no longer need the symlink creation code or the module-base inherit/dependency as it is included in that recipe. The KERNEL_VERSION usage was broken anyway as the module usage would have needed a: do_image[depends] += "build-appliance-image:do_configure" which wasn't present so it was indeterminate if KERNEL_VERSION was set correctly. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a46b43bb67b2f87ec370480e50a2e2d111555b75) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* ptest-packagelists: remove libinput-ptestRoss Burton2021-03-111-0/+1
| | | | | | | | | | | | | | | | | | | The libinput ptests are very sensitive to system load, and will fail if events from the kernel don't arrive sufficiently fast (from 20ms to 200ms depending on the test). This is by design as input processing is inherently time-sensitive and to avoid code bugs the test suite considers timing problems fatal. As this is causing a large proportion of ptest runs to fail in libinput, disable the execution of these tests for now. [ YOCTO #14164 ] Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 54e2eb809bdfedb64219f37b82589372bbc96905) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* bitbake-bblayers/create: Fix incorrect priority help messageCharlie Davies2021-03-111-1/+1
| | | | | | | | | | The help message for the optional argument of setting the priority of the new layer was incorrect. Signed-off-by: Charlie Davies <charles.davies@whitetree.xyz> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d10d928c6030951994bc2404cde78137c86917a4) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* runqemu: use "raw" instead of "bin" for ovmfJon Mason2021-03-111-0/+2
| | | | | | | | | | | bin is not an acceptable format for qemu and will throw an error is set. The correct format in this case is raw. Signed-off-by: Jon Mason <jon.mason@arm.com> Change-Id: I9d78e356d39ecb15bef886c19870b029d9badd65 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cd279aeb986b4676ea8ecb1e7b12c7e29e83460a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* local.conf.sample: fix typoUlrich Ölmann2021-03-111-1/+1
| | | | | | | Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 6413f56a19417fe9d2aaa0f3dba4fd12c41b98c4) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* dtc: Fix array-bounds errorKhem Raj2021-03-112-0/+37
| | | | | | | | | | | | Fixes | libfdt/libfdt.h:251:28: error: array subscript 'struct fdt_header[0]' is partly outside array bounds of 'unsigned char[4]' [-Werror=array-bounds] | 251 | fdth->name = cpu_to_fdt32(val); \ | | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cd4fe4ec658ce4861fc970149f78b0ca7fda8fe0) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* rxvt-unicode: Do not use throw specificationsKhem Raj2021-03-112-1/+33
| | | | | | | | | | | | | Fixes build with -std=c++17 | ../../rxvt-unicode-9.22/src/../libev/ev++.h:379:46: error: ISO C++17 does not allow dynamic exception specifications | 379 | default_loop (unsigned int flags = AUTO) throw (bad_loop) | | ^~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f437b226aac498240bc1e3a02eb0257a7deeedea) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* valgrind: Increase timeout duration 30 -> 90 sYi Fan Yu2021-03-111-2/+7
| | | | | | | | | | | | Attempt to fix intermittent failure of `drd/tests/std_list` Locally tested to take around 45 s on qemuarm64 [YOCTO #14228] Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit aac00b1c8042e41cd6bb1aea8e3033a1c6dd2b05) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* oeqa/pam: Need shadow installed for the testsKhem Raj2021-03-111-0/+3
| | | | | | | | | | | | | Distros may not use shadow for login manager secondly login --help returns 1 only with shadow provided login utility, with busybox it returns normal 0, the testcase clearly assumes shadow being part of image, therefore add needed checks to ensure the pre-requisites are met Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0820aeba74869bf6e85b200f39bc610a43ab9a7a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* wic: Warn if an ext filesystem affected by the Y2038 problem is usedFlorian Bezdeka2021-03-115-3/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | We are getting closer and closer to the year 2038 where the 32 bit time_t overflow will happen. While products (= embedded systems) with an expected life time of 15 years are still save the situation may change if your system has to survive the next 20 years. ext2 and ext3 filesystems are always affected by the time overflow, so let's warn the user if these filesystems are still being used. If ext4 is affected depends on the inode size chosen during filesystem creation. At least 256 bytes are necessary to be safe. As ext4 is used very often (and partitions may be created small first and extended later) this might be an issue for many users. Some filesystems created during CI runs were already affected by the Y2038 problem. By using `--mkfs-extraopts "-T default"` we tell mke2fs not to auto-detect the usage type based on the filesystem size. mke2fs will use the default values for tuning parameters instead. The inode size is one of these parameters. Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit eecbe625558406680121d2a7e84917fea45ea9dc) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* selftest/reproducible: Add ability to pull some objects from sstateRichard Purdie2021-03-111-2/+14
| | | | | | | | | | | | | | | | | | | | When debugging why a single recipe doesn't reproduce, its a pain to wait for the world to rebuild from scratch. Update the selftest to allow this to be configured, for example you could set targets as ['perf'] and sstate_targets as ['virtual/kernel'] and then it should only be rebuilding perf in the test rather than things like the toolchain (parts of the kernel may be unavoiable as they're not in sstate). Can be run as: OEQA_DEBUGGING_SAVED_OUTPUT=/tmp/perf-diffoscope oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds to save diffoscope output. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 132a17d02f29711572e14a2f38a841323fbb6df6) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* efivar: Fix reproducibility issueRichard Purdie2021-03-112-0/+19
| | | | | | | | | Add sorting to the globbing within the Makefile to make the output reproducible. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c43ae151f572786818fe048233b4bbfd6b0ba2cf) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* swig: Fix reproducibility issueRichard Purdie2021-03-112-0/+20
| | | | | | | | | Remove hardcoding the build configuration into the help/version output from swig to make the binaries reproducible. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 7ed28ae9717ea9dad4e131012186d5f08e8f0bec) Signed-off-by: Steve Sakoman <steve@sakoman.com>