]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
3 years agolinux-yocto/5.10: update to v5.10.63
Bruce Ashfield [Fri, 10 Sep 2021 14:07:58 +0000 (10:07 -0400)]
linux-yocto/5.10: update to v5.10.63

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

    e07f317d5a28 Linux 5.10.63
    4405ea221dea media: stkwebcam: fix memory leak in stk_camera_probe
    ad5e13f15db7 fuse: fix illegal access to inode with reused nodeid
    40ba433a85db new helper: inode_wrong_type()
    ded9137fcf0d spi: Switch to signed types for *_native_cs SPI controller fields
    55bb5193cec5 serial: 8250: 8250_omap: Fix possible array out of bounds access
    8e41134a92a5 ALSA: pcm: fix divide error in snd_pcm_lib_ioctl
    4ffde17862b0 ALSA: hda/realtek: Workaround for conflicting SSID on ASUS ROG Strix G17
    4ee2686b3745 ALSA: hda/realtek: Quirk for HP Spectre x360 14 amp setup
    2808d59fb29b cryptoloop: add a deprecation warning
    61a038f80c80 perf/x86/amd/power: Assign pmu.module
    ec9a82e034f6 perf/x86/amd/ibs: Work around erratum #1197
    23c29490b84d ceph: fix possible null-pointer dereference in ceph_mdsmap_decode()
    d2064a1444d6 perf/x86/intel/pt: Fix mask of num_address_ranges
    0e74bba60452 qede: Fix memset corruption
    35f223cb21b1 net: macb: Add a NULL check on desc_ptp
    cf50d02e474b qed: Fix the VF msix vectors flow
    2177c4943e40 reset: reset-zynqmp: Fixed the argument data type
    9872349b088d gpu: ipu-v3: Fix i.MX IPU-v3 offset calculations for (semi)planar U/V formats
    b983d60292a6 ARM: OMAP1: ams-delta: remove unused function ams_delta_camera_power
    bc860c3f0945 xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
    b1075d2a7052 static_call: Fix unused variable warn w/o MODULE
    ae16b7c66837 Revert "Add a reference to ucounts for each cred"
    1aa3f27e592d Revert "cred: add missing return error code when set_cred_ucounts() failed"
    0c1443874e1c Revert "ucounts: Increase ucounts reference counter before the security hook"
    0479b2bd2959 ubifs: report correct st_size for encrypted symlinks
    3ac01789f6d9 f2fs: report correct st_size for encrypted symlinks
    894a02236d0d ext4: report correct st_size for encrypted symlinks
    b8c298cf57dc fscrypt: add fscrypt_symlink_getattr() for computing st_size
    09a379549620 ext4: fix race writing to an inline_data file while its xattrs are changing
    f6dd002450bf Linux 5.10.62
    0c9a876f2897 bpf: Fix potentially incorrect results with bpf_get_local_storage()
    38c1915d3e9f audit: move put_tree() to avoid trim_trees refcount underflow and UAF
    1890ee7ff87f net: don't unconditionally copy_from_user a struct ifreq for socket ioctls
    0085646e02b2 Revert "parisc: Add assembly implementations for memset, strlen, strcpy, strncpy and strcat"
    17982c664f8b Revert "floppy: reintroduce O_NDELAY fix"
    709c162ddc83 kthread: Fix PF_KTHREAD vs to_kthread() race
    c43add24dffd btrfs: fix NULL pointer dereference when deleting device by invalid id
    1604c42a1ca9 arm64: dts: qcom: msm8994-angler: Fix gpio-reserved-ranges 85-88
    f760c1101f52 lkdtm: Enable DOUBLE_FAULT on all architectures
    b6c657abb893 net: dsa: mt7530: fix VLAN traffic leaks again
    f8242f554c82 usb: typec: ucsi: Clear pending after acking connector change
    e15e32d519fa usb: typec: ucsi: Work around PPM losing change information
    08953884aad4 usb: typec: ucsi: acpi: Always decode connector change information
    9a4f1dc8a17c tracepoint: Use rcu get state and cond sync for static call updates
    b6ae3854075e srcu: Provide polling interfaces for Tiny SRCU grace periods
    450948b06ce8 srcu: Make Tiny SRCU use multi-bit grace-period counter
    641e1d88404a srcu: Provide internal interface to start a Tiny SRCU grace period
    f789de3be808 srcu: Provide polling interfaces for Tree SRCU grace periods
    fdf66e5a7fc8 srcu: Provide internal interface to start a Tree SRCU grace period
    d3c38d8549c0 powerpc/perf: Invoke per-CPU variable access with disabled interrupts
    77b77d45a4b1 perf annotate: Fix jump parsing for C++ code.
    9f9e40ddfca3 perf tools: Fix arm64 build error with gcc-11
    94687c49b65b perf record: Fix memory leak in vDSO found using ASAN
    e0ca67030fda perf symbol-elf: Fix memory leak by freeing sdt_note.args
    0d8e39bb9416 perf env: Fix memory leak of bpf_prog_info_linear member
    133d7f93eecd riscv: Fixup patch_text panic in ftrace
    7e2087249e87 riscv: Fixup wrong ftrace remove cflag
    b42fde92cdde Bluetooth: btusb: check conditions before enabling USB ALT 3 for WBS
    60d69cb4e60d vt_kdsetmode: extend console locking
    0a178a015161 tipc: call tipc_wait_for_connect only when dlen is not 0
    ded6da217ced mtd: spinand: Fix incorrect parameters for on-die ECC
    3b2018f9c9c0 pipe: do FASYNC notifications for every pipe IO, not just state changes
    e91da23c1be1 pipe: avoid unnecessary EPOLLET wakeups under normal loads
    d845f89d59fc btrfs: fix race between marking inode needs to be logged and log syncing
    6f38d95f33be net/rds: dma_map_sg is entitled to merge entries
    b882dda2bf7a drm/nouveau/kms/nv50: workaround EFI GOP window channel format differences
    7f422cda03a6 drm/nouveau/disp: power down unused DP links during init
    6fd6e20520cc drm: Copy drm_wait_vblank to user before returning
    26ee94ba343c blk-mq: don't grab rq's refcount in blk_mq_check_expired()
    b00ca567579a drm/amd/pm: change the workload type for some cards
    3c37ec435022 Revert "drm/amd/pm: fix workload mismatch on vega10"
    cc126b400b25 qed: Fix null-pointer dereference in qed_rdma_create_qp()
    18a65ba06903 qed: qed ll2 race condition fixes
    4ac9c81e8a54 tools/virtio: fix build
    c7ee4d22614e vringh: Use wiov->used to check for read/write desc order
    6c074eaaf785 virtio_vdpa: reject invalid vq indices
    0698278e8eef virtio_pci: Support surprise removal of virtio pci device
    065a13c299b4 virtio: Improve vq->broken access to avoid any compiler optimization
    f41c7462d8ae cpufreq: blocklist Qualcomm sm8150 in cpufreq-dt-platdev
    3dea93159038 opp: remove WARN when no valid OPPs remain
    be37f7dbcd2c iwlwifi: pnvm: accept multiple HW-type TLVs
    9a6a5602c217 clk: renesas: rcar-usb2-clock-sel: Fix kernel NULL pointer dereference
    bdc5049c3698 perf/x86/intel/uncore: Fix integer overflow on 23 bit left shift of a u32
    c5600b914690 dt-bindings: sifive-l2-cache: Fix 'select' matching
    ad5329a53327 usb: gadget: u_audio: fix race condition on endpoint stop
    257ea8a5edc0 drm/i915: Fix syncmap memory leak
    e49b8d9c5e88 net: stmmac: fix kernel panic due to NULL pointer dereference of plat->est
    b2091d47a14e net: stmmac: add mutex lock to protect est parameters
    ac874290e75c Revert "mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711"
    411680a07cc6 net: hns3: fix get wrong pfc_en when query PFC configuration
    e834ca7c7924 net: hns3: fix duplicate node in VLAN list
    5931ec35e992 net: hns3: add waiting time before cmdq memory is released
    9820af16a879 net: hns3: clear hardware resource when loading driver
    ad0db8385575 rtnetlink: Return correct error on changing device netns
    51bc5c66606d cxgb4: dont touch blocked freelist bitmap after free
    beefd5f0c63a ipv4: use siphash instead of Jenkins in fnhe_hashfun()
    dced8347a727 ipv6: use siphash in rt6_exception_hash()
    f517335a61ff net/sched: ets: fix crash when flipping from 'strict' to 'quantum'
    b493af3a66e0 ucounts: Increase ucounts reference counter before the security hook
    8e0881f6f57e net: marvell: fix MVNETA_TX_IN_PRGRS bit number
    850401a23a85 xgene-v2: Fix a resource leak in the error handling path of 'xge_probe()'
    fb45459d9ddb ip_gre: add validation for csum_start
    e78006b59a30 RDMA/efa: Free IRQ vectors on error flow
    8f1e3ad94569 e1000e: Do not take care about recovery NVM checksum
    87285ac51ecf e1000e: Fix the max snoop/no-snoop latency for 10M
    58b3dbf10c01 igc: Use num_tx_queues when iterating over tx_ring queue
    ae6480ba0665 igc: fix page fault when thunderbolt is unplugged
    384dea502e91 net: usb: pegasus: fixes of set_register(s) return value evaluation;
    3217c9d4602f ice: do not abort devlink info if board identifier can't be found
    3a2c5fbb1cc6 RDMA/bnxt_re: Remove unpaired rtnl unlock in bnxt_re_dev_init()
    56ac7463a140 IB/hfi1: Fix possible null-pointer dereference in _extend_sdma_tx_descs()
    3e949aaa8bef RDMA/bnxt_re: Add missing spin lock initialization
    22c18102ec59 scsi: core: Fix hang of freezing queue between blocking and running device
    01da7c1dc4cf usb: dwc3: gadget: Stop EP0 transfers during pullup disable
    87b2016493eb usb: dwc3: gadget: Fix dwc3_calc_trbs_left()
    56c92b8ddc0c usb: renesas-xhci: Prefer firmware loading on unknown ROM state
    b0bcc8038868 USB: serial: option: add new VID/PID to support Fibocom FG150
    8437e07c370f Revert "USB: serial: ch341: fix character loss at high transfer rates"
    da3067eadcc1 drm/amdgpu: Cancel delayed work when GFXOFF is disabled
    3134292a8e79 Revert "btrfs: compression: don't try to compress if we don't have enough pages"
    921c2533aa3a riscv: Ensure the value of FP registers in the core dump file is up to date
    e55a8b461585 ceph: correctly handle releasing an embedded cap flush
    7008b9981b6a can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters
    45b7b2097153 net: mscc: Fix non-GPL export of regmap APIs
    ef2d68ef9a3b ovl: fix uninitialized pointer read in ovl_lookup_real_one()
    c94d50979f20 blk-iocost: fix lockdep warning on blkcg->lock
    6815e21fe28d once: Fix panic when module unload
    f68ad168e235 netfilter: conntrack: collect all entries in one cycle
    a13a2df0b149 ARC: Fix CONFIG_STACKDEPOT
    0af6a9f82ca3 ASoC: component: Remove misplaced prefix handling in pin control functions
    34cc80ec12d6 ASoC: rt5682: Adjust headset volume button threshold
    d81ddadabdee bpf: Fix NULL pointer dereference in bpf_get_local_storage() helper
    9dd6f6d89693 bpf: Fix ringbuf helper function compatibility
    ad41706c771a net: qrtr: fix another OOB Read in qrtr_endpoint_post

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.10: update to v5.10.61
Bruce Ashfield [Fri, 10 Sep 2021 14:07:57 +0000 (10:07 -0400)]
linux-yocto/5.10: update to v5.10.61

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

    452ea6a15ed2 Linux 5.10.61
    f15e64267393 io_uring: only assign io_uring_enter() SQPOLL error in actual error case
    695ab28a7fa1 io_uring: fix xa_alloc_cycle() error return value check
    0d5fcfc6406e fs: warn about impending deprecation of mandatory locks
    8132fc2bf4b7 mm: memcontrol: fix occasional OOMs due to proportional memory.low reclaim
    53e81668e119 ASoC: intel: atom: Fix breakage for PCM buffer address setup
    88f65f57a0b9 ALSA: hda/realtek: Limit mic boost on HP ProBook 445 G8
    b6672f67ec28 PCI: Increase D3 delay for AMD Renoir/Cezanne XHCI
    a69326e134d4 s390/pci: fix use after free of zpci_dev
    05b56e05543c ALSA: hda/via: Apply runtime PM workaround for ASUS B23E
    67fece6289a9 btrfs: prevent rename2 from exchanging a subvol with a directory from different parents
    16cfa72766b5 mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711
    2566c1d8239d mmc: sdhci-iproc: Cap min clock frequency on BCM2711
    110b7f72f6d0 ALSA: hda/realtek: Enable 4-speaker output for Dell XPS 15 9510 laptop
    258782b93701 ipack: tpci200: fix memory leak in the tpci200_register
    3ee1b08097c1 ipack: tpci200: fix many double free issues in tpci200_pci_probe
    0775bc462ae7 slimbus: ngd: reset dma setup during runtime pm
    45d6fc21cd4d slimbus: messaging: check for valid transaction id
    b700b523ddaf slimbus: messaging: start transaction ids from 1 instead of zero
    bd0c2f83d072 tracing / histogram: Fix NULL pointer dereference on strcmp() on NULL event name
    f7c125493c78 ALSA: hda - fix the 'Capture Switch' value change notifications
    7451c309c7a3 clk: qcom: gdsc: Ensure regulator init state matches GDSC state
    7203b4986d9a clk: imx6q: fix uart earlycon unwork
    3f8920c5706e mmc: sdhci-msm: Update the software timeout value for sdhc
    8f499a90e7ee mmc: mmci: stm32: Check when the voltage switch procedure should be done
    f8dac276a9b4 mmc: dw_mmc: Fix hang on data CRC error
    645fd92c3ed4 Revert "flow_offload: action should not be NULL when it is referenced"
    2f6c42806e10 iavf: Fix ping is lost after untrusted VF had tried to change MAC
    7873c29832a3 i40e: Fix ATR queue selection
    e003a8921949 r8152: fix writing USB_BP2_EN
    21ca0b18ad64 iommu/vt-d: Fix incomplete cache flush in intel_pasid_tear_down_entry()
    81578e587c08 iommu/vt-d: Consolidate duplicate cache invaliation code
    eee84eafc3bb ovs: clear skb->tstamp in forwarding path
    47a1161dacb1 net: mdio-mux: Handle -EPROBE_DEFER correctly
    13af9c81e62f net: mdio-mux: Don't ignore memory allocation errors
    df61235881c8 sch_cake: fix srchost/dsthost hashing mode
    e1ec5858bae1 ixgbe, xsk: clean up the resources in ixgbe_xsk_pool_enable error path
    3b7397b203cc net: qlcnic: add missed unlock in qlcnic_83xx_flash_read32
    9bc2d1a5a890 virtio-net: use NETIF_F_GRO_HW instead of NETIF_F_LRO
    b7adfde94930 virtio-net: support XDP when not more queues
    1ce62fe6e4cb vrf: Reset skb conntrack connection on VRF rcv
    8ae539a36194 bnxt_en: Add missing DMA memory barriers
    9751aa443695 bnxt_en: Disable aRFS if running on 212 firmware
    efd9b79b92a3 ptp_pch: Restore dependency on PCI
    85e0518f181a net: 6pack: fix slab-out-of-bounds in decode_data
    e0ae16836027 bnxt: count Tx drops
    296fe765dd02 bnxt: make sure xmit_more + errors does not miss doorbells
    d913d5cc3ba5 bnxt: disable napi before canceling DIM
    5b24ae8f05ca bnxt: don't lock the tx queue from napi poll
    585ff7344ec1 bpf: Clear zext_dst of dead insns
    8dfdeeb1e98e drm/mediatek: Add AAL output size configuration
    a8b8d61babb4 drm/mediatek: Fix aal size config
    6715cefa72f6 soc / drm: mediatek: Move DDP component defines into mtk-mmsys.h
    1b6fc6f739d4 vdpa/mlx5: Avoid destroying MR on empty iotlb
    ecdd7c488062 vhost: Fix the calculation in vhost_overflow()
    e0b603c89a93 bus: ti-sysc: Fix error handling for sysc_check_active_timer()
    1af7ccbd920a vhost-vdpa: Fix integer overflow in vhost_vdpa_process_iotlb_update()
    293180f59342 virtio: Protect vqs list access
    9108120fbe31 dccp: add do-while-0 stubs for dccp_pr_debug macros
    e352531ed020 cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant
    d2ab5491de91 iommu: Check if group is NULL before remove device
    44f454a146c0 arm64: dts: qcom: msm8992-bullhead: Remove PSCI
    95ed753d91bf arm64: dts: qcom: c630: fix correct powerdown pin for WSA881x
    d7d04c67492e Bluetooth: hidp: use correct wait queue when removing ctrl_wait
    2e6cc93e1b8c drm/amd/display: workaround for hard hang on HPD on native DP
    dcc8c5fb8d85 drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X
    8849a8c7058e net: usb: lan78xx: don't modify phy_device state concurrently
    735e613fa587 net: usb: pegasus: Check the return value of get_geristers() and friends;
    6b368411bc0f ARM: dts: nomadik: Fix up interrupt controller node names
    410d1ea4ff3a qede: fix crash in rmmod qede while automatic debug collection
    7525f2e4de00 drm/amdgpu: fix the doorbell missing when in CGPG issue for renoir.
    711459514e29 scsi: core: Fix capacity set to zero after offlinining device
    8071dbe1bdd0 scsi: core: Avoid printing an error if target_alloc() returns -ENXIO
    4f78db7df6ed scsi: scsi_dh_rdac: Avoid crash during rdac_bus_attach()
    cc312fa7e6ef scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry()
    968ee9176a44 scsi: pm80xx: Fix TMF task completion race condition
    b353028aed92 dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
    35f416223673 ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218
    505884a0c7a1 net: xfrm: Fix end of loop tests for list_for_each_entry
    f1c0533fae59 spi: spi-mux: Add module info needed for autoloading
    b618a32142c7 dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe()
    c160df90b0ca dmaengine: xilinx_dma: Fix read-after-free bug when terminating transfers
    d4930271a409 USB: core: Fix incorrect pipe calculation in do_proc_control()
    ba6c1b004ac5 USB: core: Avoid WARNings for 0-length descriptor requests
    8e100c72b6de KVM: X86: Fix warning caused by stale emulation context
    47d4c7999799 KVM: x86: Factor out x86 instruction emulation with decoding
    ff2fc9e4aaa6 media: drivers/media/usb: fix memory leak in zr364xx_probe
    56320b1ad4d0 media: zr364xx: fix memory leaks in probe()
    b5c7ec6d15af media: zr364xx: propagate errors from zr364xx_start_readpipe()
    779a0f4347a4 mtd: cfi_cmdset_0002: fix crash when erasing/writing AMD cards
    e2036bc3fc7d ath9k: Postpone key cache entry deletion for TXQ frames reference it
    609c0cfd07f0 ath: Modify ath_key_delete() to not need full key entry
    2925a8385ec7 ath: Export ath_hw_keysetmac()
    6566c207e576 ath9k: Clear key cache explicitly on disabling hardware
    8f05076983dd ath: Use safer key clearing with key cache entries

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.13: update to v5.13.15
Bruce Ashfield [Fri, 10 Sep 2021 14:07:56 +0000 (10:07 -0400)]
linux-yocto/5.13: update to v5.13.15

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

    b8c3cc76091b Linux 5.13.15
    2f939f346edb media: stkwebcam: fix memory leak in stk_camera_probe
    26874d67198b ALSA: pcm: fix divide error in snd_pcm_lib_ioctl
    0c9cca4cbd05 ALSA: hda/realtek: Workaround for conflicting SSID on ASUS ROG Strix G17
    a0bdfbbb6d79 ALSA: usb-audio: Fix regression on Sony WALKMAN NW-A45 DAC
    237d4c2abcf8 ALSA: hda/realtek: Quirk for HP Spectre x360 14 amp setup
    deb48f56a556 USB: serial: cp210x: fix flow-control error handling
    4df3f36f3e43 USB: serial: cp210x: fix control-characters error handling
    7dac6a6ae0ec USB: serial: pl2303: fix GL type detection
    af64ddb6600f xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
    391cfacf8c81 cryptoloop: add a deprecation warning
    39c6cf24c4ff perf/x86/amd/power: Assign pmu.module
    3e3bb99d69a3 perf/x86/amd/ibs: Work around erratum #1197
    c7858c55cb5d ceph: fix possible null-pointer dereference in ceph_mdsmap_decode()
    1ab026cbc7c4 perf/x86/intel/pt: Fix mask of num_address_ranges
    610832256fd2 qede: Fix memset corruption
    8475b024be01 net: macb: Add a NULL check on desc_ptp
    9809b708655a riscv: dts: microchip: Add ethernet0 to the aliases node
    b13e2bf00cc2 riscv: dts: microchip: Use 'local-mac-address' for emac1
    2aad925a0c8e net: dsa: mv88e6xxx: Update mv88e6393x serdes errata
    9bf0c451fc85 qed: Fix the VF msix vectors flow
    eb5392205208 reset: reset-zynqmp: Fixed the argument data type
    241581af858b gpu: ipu-v3: Fix i.MX IPU-v3 offset calculations for (semi)planar U/V formats
    b6de6ec37320 ext4: fix e2fsprogs checksum failure for mounted filesystem
    c764e8fa4491 ext4: fix race writing to an inline_data file while its xattrs are changing
    a603798fb168 Linux 5.13.14
    49da19a85383 platform/x86: Make dual_accel_detect() KIOX010A + KIOX020A detect more robust
    4e25ac3793f7 audit: move put_tree() to avoid trim_trees refcount underflow and UAF
    f8132a4726df net: don't unconditionally copy_from_user a struct ifreq for socket ioctls
    6b58e692a685 Revert "parisc: Add assembly implementations for memset, strlen, strcpy, strncpy and strcat"
    9caa2e5a818d ubifs: report correct st_size for encrypted symlinks
    7532df5ee085 f2fs: report correct st_size for encrypted symlinks
    f04584399d1c ext4: report correct st_size for encrypted symlinks
    2bc40caa8099 fscrypt: add fscrypt_symlink_getattr() for computing st_size
    ba17363729d2 Revert "floppy: reintroduce O_NDELAY fix"
    301aabe0239f btrfs: fix NULL pointer dereference when deleting device by invalid id
    8e2112d600b2 arm64: dts: qcom: msm8994-angler: Fix gpio-reserved-ranges 85-88
    98d1fcc6c937 net: dsa: mt7530: fix VLAN traffic leaks again
    339e8ba1a3d0 Bluetooth: btusb: check conditions before enabling USB ALT 3 for WBS
    a5dfcf3d8ecc vt_kdsetmode: extend console locking
    65f5602cd767 tipc: call tipc_wait_for_connect only when dlen is not 0
    6b7533e796aa pipe: do FASYNC notifications for every pipe IO, not just state changes
    4abb1d77321a pipe: avoid unnecessary EPOLLET wakeups under normal loads
    eec6f991bf28 arm64: initialize all of CNTHCTL_EL2
    c9ecaffe65cb net/rds: dma_map_sg is entitled to merge entries
    66d8d0677e4d platform/x86: gigabyte-wmi: add support for B450M S2H V2
    b484bcabe66b drm/nouveau/kms/nv50: workaround EFI GOP window channel format differences
    045f785ad859 drm/nouveau/disp: power down unused DP links during init
    4dc8c06fd51e drm/nouveau: recognise GA107
    2a0e1f9a62e5 platform/x86: gigabyte-wmi: add support for X570 GAMING X
    7e6c3b5c9864 drm: Copy drm_wait_vblank to user before returning
    65bafad4556d blk-mq: don't grab rq's refcount in blk_mq_check_expired()
    1ae8c1e2dbd7 drm/amd/pm: change the workload type for some cards
    19be3ad020b1 Revert "drm/amd/pm: fix workload mismatch on vega10"
    e5baac733182 qed: Fix null-pointer dereference in qed_rdma_create_qp()
    b6d485eb00e1 qed: qed ll2 race condition fixes
    e415d2209567 platform/x86: asus-nb-wmi: Add tablet_mode_sw=lid-flip quirk for the TP200s
    aa4ad193d83b platform/x86: asus-nb-wmi: Allow configuring SW_TABLET_MODE method with a module option
    0eeee5f085e6 tools/virtio: fix build
    2aef43ab6de1 vringh: Use wiov->used to check for read/write desc order
    839815ea5f1d virtio_vdpa: reject invalid vq indices
    2f18a3c91fde virtio_pci: Support surprise removal of virtio pci device
    6c4072f94fab virtio: Improve vq->broken access to avoid any compiler optimization
    25d4ff7e59aa cpufreq: blocklist Qualcomm sm8150 in cpufreq-dt-platdev
    ef3738a60d18 opp: remove WARN when no valid OPPs remain
    184caa4f8b83 iwlwifi: add new so-jf devices
    eed3c6bb51fe iwlwifi: add new SoF with JF devices
    0dabf99c08de iwlwifi: pnvm: accept multiple HW-type TLVs
    2fcb7f101fa2 clk: renesas: rcar-usb2-clock-sel: Fix kernel NULL pointer dereference
    0298f03cf8ee sched: Fix get_push_task() vs migrate_disable()
    886364f99b7c perf/x86/intel/uncore: Fix integer overflow on 23 bit left shift of a u32
    6e6822e47ee3 usb: gadget: u_audio: fix race condition on endpoint stop
    0b3d2bfa7906 net: stmmac: fix kernel panic due to NULL pointer dereference of plat->est
    5ce4cc16d471 net: stmmac: add mutex lock to protect est parameters
    01e5bad5b6b8 Revert "mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711"
    fd8b3da89096 media: ipu3-cio2: Drop reference on error path in cio2_bridge_connect_sensor()
    229db408796c net: hns3: fix get wrong pfc_en when query PFC configuration
    6434d7a17272 net: hns3: fix duplicate node in VLAN list
    5d73c3788d73 net: hns3: fix speed unknown issue in bond 4
    728d196fe469 net: hns3: add waiting time before cmdq memory is released
    13c1896f8ace net: hns3: clear hardware resource when loading driver
    6e472c800e5c rtnetlink: Return correct error on changing device netns
    8f4e74663b41 net: dsa: hellcreek: Adjust schedule look ahead window
    35844a1bde10 net: dsa: hellcreek: Fix incorrect setting of GCL
    7d1b598f92d7 cxgb4: dont touch blocked freelist bitmap after free
    fc21a98484ca ipv4: use siphash instead of Jenkins in fnhe_hashfun()
    b3f99fcc204b ipv6: use siphash in rt6_exception_hash()
    1a72ef276754 SUNRPC: Fix XPT_BUSY flag leakage in svc_handle_xprt()...
    d05330672afe net/sched: ets: fix crash when flipping from 'strict' to 'quantum'
    6faa3f1424f1 ucounts: Increase ucounts reference counter before the security hook
    768d4cf8dbaf net: marvell: fix MVNETA_TX_IN_PRGRS bit number
    a73e59683548 xgene-v2: Fix a resource leak in the error handling path of 'xge_probe()'
    01951aeafc40 ip_gre: add validation for csum_start
    4c00ae66159a RDMA/efa: Free IRQ vectors on error flow
    50092de6d9e4 e1000e: Do not take care about recovery NVM checksum
    7878e0fe833d e1000e: Fix the max snoop/no-snoop latency for 10M
    e46212393a30 igc: Use num_tx_queues when iterating over tx_ring queue
    7bc8e807665b igc: fix page fault when thunderbolt is unplugged
    89362210ac19 net: usb: pegasus: fixes of set_register(s) return value evaluation;
    2b0267118a68 ice: do not abort devlink info if board identifier can't be found
    a35de1e71b68 RDMA/rxe: Fix memory allocation while in a spin lock
    9413a11e77eb RDMA/bnxt_re: Remove unpaired rtnl unlock in bnxt_re_dev_init()
    7cfd5894226b IB/hfi1: Fix possible null-pointer dereference in _extend_sdma_tx_descs()
    4fdd674a31f2 RDMA/bnxt_re: Add missing spin lock initialization
    30067a9a1617 RDMA/uverbs: Track dmabuf memory regions
    6a4dd0859f4f RDMA/mlx5: Fix crash when unbind multiport slave
    db030881c465 scsi: core: Fix hang of freezing queue between blocking and running device
    3e07893f0f82 usb: dwc3: gadget: Stop EP0 transfers during pullup disable
    6b8951c842cd usb: dwc3: gadget: Fix dwc3_calc_trbs_left()
    24bcaabc7be2 usb: typec: tcpm: Raise vdm_sm_running flag only when VDM SM is running
    6a59c0559d74 usb: renesas-xhci: Prefer firmware loading on unknown ROM state
    155c3c86abdb USB: serial: option: add new VID/PID to support Fibocom FG150
    2159dc1c023d Revert "USB: serial: ch341: fix character loss at high transfer rates"
    05366fb0bfd1 drm/amdgpu: Fix build with missing pm_suspend_target_state module export
    164f7029a8ca drm/amdgpu: use the preferred pin domain after the check
    49db1b658914 drm/amdgpu: Cancel delayed work when GFXOFF is disabled
    05c07e76a37c drm/i915/dp: Drop redundant debug print
    65e526efa215 drm/i915: Fix syncmap memory leak
    b9d0c15e74cd net: stmmac: fix kernel panic due to NULL pointer dereference of buf->xdp
    d4a399b96e0b net: stmmac: fix kernel panic due to NULL pointer dereference of xsk_pool
    efc5eb94e7b3 Revert "btrfs: compression: don't try to compress if we don't have enough pages"
    dbce1780abeb mm/memory_hotplug: fix potential permanent lru cache disable
    0d1cf894cc24 powerpc: Re-enable ARCH_ENABLE_SPLIT_PMD_PTLOCK
    9e04475feb82 riscv: Ensure the value of FP registers in the core dump file is up to date
    31296d4fdbff dt-bindings: sifive-l2-cache: Fix 'select' matching
    904d52e1beda ceph: correctly handle releasing an embedded cap flush
    dbbf1899c6ff can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters
    1579b0f1e7bd net: mscc: Fix non-GPL export of regmap APIs
    60c1ed05cba1 ovl: fix uninitialized pointer read in ovl_lookup_real_one()
    2514e486faf7 blk-iocost: fix lockdep warning on blkcg->lock
    de14d2fc6a62 io_uring: rsrc ref lock needs to be IRQ safe
    b8eaf1e595fe once: Fix panic when module unload
    7aa03980b21f netfilter: conntrack: collect all entries in one cycle
    e0f824abe0f4 netfilter: ipset: Limit the maximal range of consecutive elements to add/delete
    3ac582bc72d7 ARC: Fix CONFIG_STACKDEPOT
    9810910bc686 platform/x86: Add and use a dual_accel_detect() helper
    dbd38b275b86 ASoC: component: Remove misplaced prefix handling in pin control functions
    6f2ec29dfd5e ASoC: rt5682: Adjust headset volume button threshold
    a31b3b8d3cbf bpf: Fix ringbuf helper function compatibility
    d6060df9b53a net: qrtr: fix another OOB Read in qrtr_endpoint_post

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.13: update to v5.13.13
Bruce Ashfield [Fri, 10 Sep 2021 14:07:55 +0000 (10:07 -0400)]
linux-yocto/5.13: update to v5.13.13

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

    7aeadb5bb82a Linux 5.13.13
    2ff626b14003 fs: warn about impending deprecation of mandatory locks
    a57b2a703e44 io_uring: fix xa_alloc_cycle() error return value check
    515b6124df6a hugetlb: don't pass page cache pages to restore_reserve_on_error
    371fb63d0926 kfence: fix is_kfence_address() for addresses below KFENCE_POOL_SIZE
    9690e6ffac0b mm/hwpoison: retry with shake_page() for unhandlable pages
    59e5c9ecdeb0 mm,hwpoison: make get_hwpoison_page() call get_any_page()
    e4e8c58cc78e mm: memcontrol: fix occasional OOMs due to proportional memory.low reclaim
    2d1704c3fe30 riscv: Fix a number of free'd resources in init_resources()
    8c5beac92d0e ASoC: intel: atom: Fix breakage for PCM buffer address setup
    8f4eb032a019 ALSA: hda/realtek: Limit mic boost on HP ProBook 445 G8
    59734f7eaaa4 PCI: Increase D3 delay for AMD Renoir/Cezanne XHCI
    00609919ec4d powerpc/32s: Fix random crashes by adding isync() after locking/unlocking KUEP
    33bd5804ac66 powerpc/32s: Refactor update of user segment registers
    efe40fdb6d30 powerpc/32s: Move setup_{kuep/kuap}() into {kuep/kuap}.c
    534a0bc7c87a usb: typec: tcpm: Fix VDMs sometimes not being forwarded to alt-mode drivers
    21d6e237bcc2 s390/pci: fix use after free of zpci_dev
    fe2edb82e5be ALSA: hda/via: Apply runtime PM workaround for ASUS B23E
    41f0262ffb44 tracing: Apply trace filters on all output channels
    f7c707f8ec18 btrfs: prevent rename2 from exchanging a subvol with a directory from different parents
    ddd7fff18986 mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711
    f41b4c30fb73 mmc: sdhci-iproc: Cap min clock frequency on BCM2711
    70063522ee90 opp: Drop empty-table checks from _put functions
    30392f88dace ALSA: hda/realtek: Enable 4-speaker output for Dell XPS 15 9510 laptop
    da8495661fe9 io_uring: only assign io_uring_enter() SQPOLL error in actual error case
    501449420a42 io_uring: fix code style problems
    606f36948a9a ipack: tpci200: fix memory leak in the tpci200_register
    d09bfebbdf22 ipack: tpci200: fix many double free issues in tpci200_pci_probe
    c1001de019ef slimbus: ngd: reset dma setup during runtime pm
    c8f6e68a95c2 slimbus: ngd: set correct device for pm
    28b55e58b864 slimbus: messaging: check for valid transaction id
    e0e46e209e9d slimbus: messaging: start transaction ids from 1 instead of zero
    65a4722bb931 tracing / histogram: Fix NULL pointer dereference on strcmp() on NULL event name
    0ce48083d843 tracing: define needed config DYNAMIC_FTRACE_WITH_ARGS
    2152ee71c164 ALSA: hda - fix the 'Capture Switch' value change notifications
    8681e95da50b cfi: Use rcu_read_{un}lock_sched_notrace
    82d1ea87b9d5 arm64: clean vdso & vdso32 files
    03c33905ee88 clk: qcom: gdsc: Ensure regulator init state matches GDSC state
    95e5238a2fba clk: imx6q: fix uart earlycon unwork
    2fcb62673120 mmc: sdhci-msm: Update the software timeout value for sdhc
    87762c77c39f mmc: mmci: stm32: Check when the voltage switch procedure should be done
    fffcf7fc898a mmc: dw_mmc: Fix hang on data CRC error
    7179eac5556e iommu/dma: Fix leak in non-contiguous API
    b89542f4a60b net: dpaa2-switch: disable the control interface on error path
    5d547d83abb2 Revert "flow_offload: action should not be NULL when it is referenced"
    260b1eb312a0 iavf: Fix ping is lost after untrusted VF had tried to change MAC
    ea1cf8a6d966 i40e: Fix ATR queue selection
    1d9d64cad2fe PCI/sysfs: Use correct variable for the legacy_mem sysfs object
    f21adfddafdf r8152: fix the maximum number of PLA bp for RTL8153C
    5809f8d9b7c0 r8152: fix writing USB_BP2_EN
    dedbf29c6b36 mptcp: full fully established support after ADD_ADDR
    828c3a32238c mptcp: fix memory leak on address flush
    11c79e1615a4 net: mscc: ocelot: allow forwarding from bridge ports to the tag_8021q CPU port
    751f4b539afb drm/amd/display: Use DCN30 watermark calc for DCN301
    e0f2d91e0869 drm/i915: Tweaked Wa_14010685332 for all PCHs
    678b67771cef drm/i915: Skip display interruption setup when display is not available
    936eca018fee iommu/vt-d: Fix incomplete cache flush in intel_pasid_tear_down_entry()
    4e4f3cb41d68 net: usb: asix: refactor asix_read_phy_addr() and handle errors on return
    cf4c1661c40e ovs: clear skb->tstamp in forwarding path
    9581895b37fe net: mdio-mux: Handle -EPROBE_DEFER correctly
    b2973b87ba11 net: mdio-mux: Don't ignore memory allocation errors
    0e805b74cd13 sch_cake: fix srchost/dsthost hashing mode
    ac161cf77818 ixgbe, xsk: clean up the resources in ixgbe_xsk_pool_enable error path
    7af09aeddbae net: qlcnic: add missed unlock in qlcnic_83xx_flash_read32
    39af3583c8fb mac80211: fix locking in ieee80211_restart_work()
    0de9c4de5ca1 virtio-net: use NETIF_F_GRO_HW instead of NETIF_F_LRO
    9213ce667258 vrf: Reset skb conntrack connection on VRF rcv
    a5607b1d8e34 bnxt_en: Add missing DMA memory barriers
    020761f49efb bnxt_en: Disable aRFS if running on 212 firmware
    1a2798f36805 ptp_pch: Restore dependency on PCI
    010d7ad77e2d net: 6pack: fix slab-out-of-bounds in decode_data
    47d43f06fd87 soc: fsl: qe: fix static checker warning
    5eb70221eb03 bnxt: count Tx drops
    40c767494e15 bnxt: make sure xmit_more + errors does not miss doorbells
    781279257968 bnxt: disable napi before canceling DIM
    7edc1a0deca8 bnxt: don't lock the tx queue from napi poll
    a89ba11b263b bpf: Clear zext_dst of dead insns
    3d7f5031f870 drm/mediatek: Add component_del in OVL and COLOR remove function
    e5f25a6ea31a drm/mediatek: Add AAL output size configuration
    88e35118e7c9 vdpa/mlx5: Fix queue type selection logic
    c903a1fd0968 vdpa/mlx5: Avoid destroying MR on empty iotlb
    29236481a883 vDPA/ifcvf: Fix return value check for vdpa_alloc_device()
    080d65ba644f vp_vdpa: Fix return value check for vdpa_alloc_device()
    434887c6ac41 vdpa_sim: Fix return value check for vdpa_alloc_device()
    83f6738578b3 vhost: Fix the calculation in vhost_overflow()
    dcd6c72344f3 bus: ti-sysc: Fix error handling for sysc_check_active_timer()
    8a821b88b1a6 vhost-vdpa: Fix integer overflow in vhost_vdpa_process_iotlb_update()
    6caaf9fcb7b4 virtio: Protect vqs list access
    b380dfb298da dccp: add do-while-0 stubs for dccp_pr_debug macros
    5238de0459c0 cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant
    ed6b6c758b67 soc: fsl: qe: convert QE interrupt controller to platform_device
    b39db8c4397d mtd: rawnand: Fix probe failure due to of_get_nand_secure_regions()
    dd53a5f93b2e mt76: fix enum type mismatch
    c442bd5a0e20 arm64: dts: qcom: sdm845-oneplus: fix reserved-mem
    ae19ca1cb3f0 arm64: dts: qcom: msm8994-angler: Disable cont_splash_mem
    1c4678cb01ee cpufreq: arm_scmi: Fix error path when allocation failed
    731825e59e1d iommu: Check if group is NULL before remove device
    02491c3d81ef arm64: dts: qcom: msm8992-bullhead: Fix cont_splash_mem mapping
    aa9cac63e49c arm64: dts: qcom: msm8992-bullhead: Remove PSCI
    6fed550393b8 arm64: dts: qcom: c630: fix correct powerdown pin for WSA881x
    73bb2572339d mtd: rawnand: Add a check in of_get_nand_secure_regions()
    85f5d3d0bc2e kyber: make trace_block_rq call consistent with documentation
    a6488cc30f01 drm/amd/display: workaround for hard hang on HPD on native DP
    a4ebe05cd99e drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X
    5fd92907a473 spi: cadence-quadspi: Fix check condition for DTR ops
    d6080ac32e3e perf/x86: Fix out of bound MSR access
    cae49c93c71c net: usb: lan78xx: don't modify phy_device state concurrently
    d45f37c6120e net: usb: pegasus: Check the return value of get_geristers() and friends;
    e5f45fdefd8d ARM: dts: nomadik: Fix up interrupt controller node names
    56dcfd2e0145 qede: fix crash in rmmod qede while automatic debug collection
    0620a81e8040 drm/amdgpu: fix the doorbell missing when in CGPG issue for renoir.
    c6751ce1a2a4 scsi: core: Fix capacity set to zero after offlinining device
    87820c748fda scsi: core: Avoid printing an error if target_alloc() returns -ENXIO
    7bbfccc78e0e scsi: scsi_dh_rdac: Avoid crash during rdac_bus_attach()
    f57f3722788e scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry()
    fa3c19ceaa8b scsi: pm80xx: Fix TMF task completion race condition
    c589360bd3a9 dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
    d09867c795c3 ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218
    38df50afe852 net: xfrm: Fix end of loop tests for list_for_each_entry
    1718285e1419 spi: spi-mux: Add module info needed for autoloading
    7c6e26d59bfb dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe()
    fcd998a0536e dmaengine: xilinx_dma: Fix read-after-free bug when terminating transfers
    d9aee1535e7b USB: core: Fix incorrect pipe calculation in do_proc_control()
    08fb58a2c3dc USB: core: Avoid WARNings for 0-length descriptor requests
    261d195d5fe6 io_uring: Use WRITE_ONCE() when writing to sq_flags
    e8daa0dd99c9 mtd: cfi_cmdset_0002: fix crash when erasing/writing AMD cards

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoRevert "default-distrovars.inc: Set BBINCLUDELOGS to empty to disable printing failed...
Richard Purdie [Fri, 10 Sep 2021 10:03:55 +0000 (11:03 +0100)]
Revert "default-distrovars.inc: Set BBINCLUDELOGS to empty to disable printing failed task output multiple times"

There are fixes in bitbake which should now allow this to operate as expected.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopseudo: Update with fcntl and glibc 2.34 fixes
Richard Purdie [Wed, 8 Sep 2021 22:45:54 +0000 (23:45 +0100)]
pseudo: Update with fcntl and glibc 2.34 fixes

Pull in the following changes:

* ports/linux/guts: Add closefrom support for glibc 2.34
* pseudo_client: Make msg static in pseudo_op_client
* ports/linux/guts: Add close_range wrapper for glibc 2.34
* pseudo_client: Do not pass null argument to pseudo_diag()
* test-openat: Consider device as well as inode number
* test: Add missing test-statx test case
* fcntl: Add support for fcntl F_GETPIPE_SZ and F_SETPIPE_SZ

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocross-canadian: make android pass target sys check
Hsia-Jun(Randy) Li [Mon, 6 Sep 2021 10:30:34 +0000 (18:30 +0800)]
cross-canadian: make android pass target sys check

We could build an Android toolchain but its triple should
always contain the string android or clang can't link
the right object files for it.

Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocore-image-ptest-all: bump RAM requirement to 4G
Alexander Kanavin [Mon, 6 Sep 2021 09:38:49 +0000 (11:38 +0200)]
core-image-ptest-all: bump RAM requirement to 4G

/tmp is half that, and lttng-ptest writes just under 1G there
(and just over 1G on aarch64), so let's have a safe margin.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolttng: update 2.12 -> 2.13.0
Alexander Kanavin [Mon, 6 Sep 2021 09:38:48 +0000 (11:38 +0200)]
lttng: update 2.12 -> 2.13.0

Drop 0001-tests-regression-disable-the-tools-live-tests.patch
(mass-disabling of ptests) and replace that with more targeted fixes:

- a patch that adds explicit sleeps where races due to too tight timings
were observed (not a proper fix; upstream needs to figure out how
to sync explicitly and reliably)

- LD_LIBRARY_PATH so that helper binaries are able to find their
custom libraries they're linked with (we strip rpath from them
for reproducibility)

- set pgrep location explicitly as it used unconditionally
on target, but auto-detected (incorrectly) on the host

- enable kmod as it is available in target images

- correct various missing scripts, binaries, and inhibit stripping
where that is expected.

License-Update: license info consolidated in LICENSE
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: handle CLOSED license
Ross Burton [Mon, 6 Sep 2021 14:36:13 +0000 (15:36 +0100)]
create-spdx: handle CLOSED license

The special CLOSED license means that this is closed source code with
no other licensing assertions.  It's not a generic license in oe-core,
and not a SPDX license, so transform it to NONE explicitly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoassimp: Remove it
Robert Yang [Tue, 7 Sep 2021 09:17:04 +0000 (17:17 +0800)]
assimp: Remove it

Remove it since it has license issues:

* scripts/StepImporter/schema_ifc2x3.exp
Copyright by: International Alliance for Interoperability, 1996-2005 All rights
reserved. No part of this documentation may be reproduced, stored in a
retrieval system, or transmitted in any form or by any means, without the prior
written permission of the owner

* test/models-nonbsd/X/dwarf-Read-Me.txt
RESTRICTIONS: This model pack is available for use in freeware, shareware,
commercial games/software with the following restrictions:- **You may not
sell/re-sell this model pack or claim it as your own. ***You may not
redistribute this pack in some other model pack through a website or on a
compilation CD of any kind, without my written consent. Psi
http://www.psionic3d.co.uk

* test/models-nonbsd/B3D/turtle.source.txt
Copyright 2004, Psionic Design e-mail: psionic@blueyonder.co.uk Used with
permission. RESTRICTIONS: This model pack is available for use in freeware,
shareware, commercial games/software with the following restrictions:- **You
may not sell/re-sell this model pack or claim it as your own. ***You may not
redistribute this pack in some other model pack through a website or on a
compilation CD of any kind, without my written consent.

And no recipes depend on it, so remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconf/mips: mips16e: prepend override to MACHINEOVERRIDES
Quentin Schulz [Wed, 8 Sep 2021 08:56:46 +0000 (10:56 +0200)]
conf/mips: mips16e: prepend override to MACHINEOVERRIDES

Add the tune specific override to MACHINEOVERRIDES and not OVERRIDES as
is done for all other tune include files.

Also prepend it instead of appending so that it's among the leftmost
overrides in MACHINEOVERRIDES and has a lower precedence compared to
other MACHINEOVERRIDES added later (which usually are added via a =.
(prepend)).

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/oescripts: Fix after tar recipe changes
Richard Purdie [Thu, 9 Sep 2021 08:56:16 +0000 (09:56 +0100)]
oeqa/oescripts: Fix after tar recipe changes

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotar: add pkgconfig for selinux
Mingli Yu [Wed, 8 Sep 2021 08:05:05 +0000 (16:05 +0800)]
tar: add pkgconfig for selinux

Add pkgconfig setting for selinux.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agofindutils: add pkgconfig for selinux
Mingli Yu [Wed, 8 Sep 2021 08:05:04 +0000 (16:05 +0800)]
findutils: add pkgconfig for selinux

Add pkgconfig setting for selinux.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocoreutils: add pkgconfig for selinux
Mingli Yu [Wed, 8 Sep 2021 08:05:03 +0000 (16:05 +0800)]
coreutils: add pkgconfig for selinux

Add pkgconfig setting for selinux.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: remove trailing comma
Saul Wold [Tue, 7 Sep 2021 16:02:25 +0000 (09:02 -0700)]
create-spdx: remove trailing comma

The trailing comma turns ref_id into an object instead of a string
when added to the relationship table.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agotcmode-default: add rust to the default toolchains
Randy MacLeod [Mon, 6 Sep 2021 01:26:48 +0000 (21:26 -0400)]
tcmode-default: add rust to the default toolchains

Remove the rust_versions.inc file and put it's content
in tcmode-default.inc is done for other toolchains.

Rename RUST_VERSION to RUSTVERSION to adhere to the
naming format used for other languages.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: '${systemd_unitdir}/system' => '${systemd_system_unitdir}'
Robert P. J. Day [Thu, 26 Aug 2021 09:42:06 +0000 (05:42 -0400)]
systemd: '${systemd_unitdir}/system' => '${systemd_system_unitdir}'

Repo-wide replacement to use newer variable to represent systemd
system unitdir directory.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoimage_types_wic.bbclass: alphabetize list of WICVARS
Robert P. J. Day [Sun, 15 Aug 2021 08:54:57 +0000 (04:54 -0400)]
image_types_wic.bbclass: alphabetize list of WICVARS

It's way easier to scan a list of variables if they're sorted one per
line.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo: Exclude CVE-2021-29923 from report list
Richard Purdie [Mon, 6 Sep 2021 14:11:51 +0000 (15:11 +0100)]
go: Exclude CVE-2021-29923 from report list

Upstream don't believe it is a signifiant real world issue and will only
fix in 1.17 onwards. Therefore exclude it from our reports.

https://github.com/golang/go/issues/30999#issuecomment-910470358

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoflex: Add CVE-2019-6293 to exclusions for checks
Richard Purdie [Mon, 6 Sep 2021 12:49:26 +0000 (13:49 +0100)]
flex: Add CVE-2019-6293 to exclusions for checks

CVE is effectively disputed - yes there is stack exhaustion but no bug and it
is building the parser, not running it, effectively similar to a compiler ICE.
Upstream no plans to address and there is no security issue.

https://github.com/westes/flex/issues/414

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoutils: Drop obsolete oe_machinstall function
Richard Purdie [Mon, 6 Sep 2021 08:57:31 +0000 (09:57 +0100)]
utils: Drop obsolete oe_machinstall function

This function does something similar to the bitbake fetcher file search
paths and is an old remnant of how this could have once been handled. There
are no users in OE-Core and we'd always prefer the fetcher to handle this now
as it handles signatures correctly. The direct OVERRIDES reference would
likely break any user of the function. Remove it to be safe and ensure it
isn't being used anywhere.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoutils: Drop unused variable staging_install from oe_libinstall
Richard Purdie [Mon, 6 Sep 2021 08:55:16 +0000 (09:55 +0100)]
utils: Drop unused variable staging_install from oe_libinstall

Remove unused variable/code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovim: Add packageconfig for sound notification support
Khem Raj [Sat, 4 Sep 2021 16:31:46 +0000 (09:31 -0700)]
vim: Add packageconfig for sound notification support

vim uses libcanberra to implement sound, currently its ok for target
since we have captured dependencies in recipe sysroot but things go a
bit out of control when building vim-native, where configure starts to
poke at host system and if it find libcanberra then silently enables it
lets make it consistent

(From OE-Core rev: 7bf11ce14336eff07a4e7216fb485f98757088ed)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowic: Add extra-space argument
Kristian Klausen [Fri, 3 Sep 2021 13:52:53 +0000 (15:52 +0200)]
wic: Add extra-space argument

This allows extra space to be added after the last partition and is
especially useful when free space is needed for ex: adding partitions on
first boot with ex: systemd-repart[1] and the image is tested in QEMU.

[1] https://www.freedesktop.org/software/systemd/man/systemd-repart.html

Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocommon-licenses, licenses.conf: Remove duplicate licenses
Peter Kjellerstedt [Fri, 3 Sep 2021 21:40:14 +0000 (23:40 +0200)]
common-licenses, licenses.conf: Remove duplicate licenses

This removes BSD-0-Clause, Nauman, tcl and vim and adds mappings for
them to their SPDX counterparts (0BSD, Naumen, TCL and Vim).

It also removes FreeType, which already had a mapping to FTL.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: Add homed PACKAGECONFIG
Kristian Klausen [Fri, 3 Sep 2021 21:36:22 +0000 (23:36 +0200)]
systemd: Add homed PACKAGECONFIG

If systemd is built with fdisk support[1] and the openssl and cryptsetup
PACKAGECONFIG are enabled, systemd-homed[1] is automatically enabled.
The org.freedesktop.home1.conf file was forgotten, so this commit adds
the file and make enabling homed a explicit choice.

systemd-homed.service and systemd-homed-activate.service have a Also= on
each other, so "systemctl" has been fixed to handle the circular
dependency.

userdb isn't strictly speaking needed for homed but "systemctl" can't
handle the missing unit file and upstream recommend enabling both[3].

[1] Automatically enabled if the fdisk dependency is installed which it
    is as util-linux is pulled in by systemd
[2] https://www.freedesktop.org/software/systemd/man/systemd-homed.service.html
[3] https://github.com/systemd/systemd/commit/871dc8d644eef7542a5330f84c25b1db2617317c

Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Sat, 4 Sep 2021 07:54:51 +0000 (08:54 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: don't duplicate license texts in each package
Ross Burton [Fri, 3 Sep 2021 16:00:33 +0000 (17:00 +0100)]
create-spdx: don't duplicate license texts in each package

Instead of putting the full license text for non-SPDX licenses into the
recipe and every package, use links to the recipe from the packages if
possible.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: embed unknown license texts
Ross Burton [Fri, 3 Sep 2021 16:00:32 +0000 (17:00 +0100)]
create-spdx: embed unknown license texts

For licenses which are not known to SPDX, find and embed the actual
license text in an ExtractedLicesingInfo block.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: remove redundant test
Ross Burton [Fri, 3 Sep 2021 16:00:31 +0000 (17:00 +0100)]
create-spdx: remove redundant test

add_extracted_document() is only called if the license isn't known to
SPDX, so there's no need to check again.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: transform license list into a dict for faster lookups
Ross Burton [Fri, 3 Sep 2021 16:00:30 +0000 (17:00 +0100)]
create-spdx: transform license list into a dict for faster lookups

spdx-licenses.json contains an array of licenses objects. As we'll be
searching it often, convert that to a dictionary when we parse it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/selftest/recipetool: update for license changes
Ross Burton [Fri, 3 Sep 2021 15:23:47 +0000 (16:23 +0100)]
oeqa/selftest/recipetool: update for license changes

Now that recipetool writes BSD-3-Clause, update the test appropriately.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo: upgrade 1.16.5 -> 1.16.7
Sakib Sajal [Tue, 24 Aug 2021 16:25:08 +0000 (00:25 +0800)]
go: upgrade 1.16.5 -> 1.16.7

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoxdg-utils: Add fix for CVE-2020-27748
Richard Purdie [Fri, 3 Sep 2021 13:24:17 +0000 (14:24 +0100)]
xdg-utils: Add fix for CVE-2020-27748

Backport an upstream patch for the CVE.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodefault-distrovars.inc: Set BBINCLUDELOGS to empty to disable printing failed task...
Martin Jansa [Fri, 3 Sep 2021 11:55:21 +0000 (13:55 +0200)]
default-distrovars.inc: Set BBINCLUDELOGS to empty to disable printing failed task output multiple times

* the output is shown 3 times with default configuration and 5 times when --verbose
  is being used with knotty, there might be other use-cases where we actually need
  this, but until the logging is resolved better, setting this to empty looks like
  more reasonable option (considering that e.g. log.do_compile from chromium-x11
  can be over 50MB long, generating 150MB+ cooker log)

* more details in:
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=14542

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorecipetool/create_buildsys_python: treat BSD as BSD-3-Clause
Ross Burton [Fri, 3 Sep 2021 13:24:59 +0000 (14:24 +0100)]
recipetool/create_buildsys_python: treat BSD as BSD-3-Clause

The PyPI license classifiers include "OSI Approved: BSD", which does not
specify which of the many variations of BSD license it actually means.

The generic "BSD" license in the oe-core set is actually BSD-3-Clause.
>From a random sample of ten PyPI modules that use "BSD", they are all
BSD-3-Clause.  As we expect the recipe maintainer to verify the license
anyway, and this matches the previous license text, explicitly set the
license to BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agohdparm: set correct license
Ross Burton [Fri, 3 Sep 2021 13:24:58 +0000 (14:24 +0100)]
hdparm: set correct license

The bulk of hdparm is under a unique license. Set the correct BSD
version, and specify that the hdparm license is also used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: update LICENSE
Ross Burton [Fri, 3 Sep 2021 13:24:57 +0000 (14:24 +0100)]
ffmpeg: update LICENSE

"BSD" is ambiguous, ffmpeg comprises of several licenses which are
BSD-like.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoppp: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:56 +0000 (14:24 +0100)]
ppp: set precise BSD license

"BSD" is ambiguous, use the precise licenses BSD-3-Clause-Attribution
and BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoovmf: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:55 +0000 (14:24 +0100)]
ovmf: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause-Patent.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoshadow-sysroot: sync license with shadow
Ross Burton [Fri, 3 Sep 2021 13:24:54 +0000 (14:24 +0100)]
shadow-sysroot: sync license with shadow

This recipe is just a single data file from shadow, but as we can't
easily tell what license that specific file is under just copy the full
license statement.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovalgrind: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:53 +0000 (14:24 +0100)]
valgrind: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibxfont: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:52 +0000 (14:24 +0100)]
libxfont: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Note that the actual license text is BSD 4-Clause with clause 3 rescinded:

https://gitlab.freedesktop.org/xorg/lib/libxfont/-/blob/master/COPYING#L157

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/recipeutils: update for license change to python-async-test
Ross Burton [Fri, 3 Sep 2021 13:24:50 +0000 (14:24 +0100)]
oeqa/recipeutils: update for license change to python-async-test

The python-async-test recipe is now BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoxinetd: correct LICENSE
Ross Burton [Fri, 3 Sep 2021 13:24:48 +0000 (14:24 +0100)]
xinetd: correct LICENSE

The xinetd license is superficially BSD-like, but it isn't BSD. Now that
we have the full SPDX license set in oe-core, use the specific xinetd
license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolsof: add upstream check
Ross Burton [Fri, 3 Sep 2021 13:24:47 +0000 (14:24 +0100)]
lsof: add upstream check

Upstream has moved to GitHub.  Whilst it's now too late to upgrade to
the latest release, we can add upstream check variables so that we get
notified we're out of date.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest/python-async-test: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:49 +0000 (14:24 +0100)]
selftest/python-async-test: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolsof: correct LICENSE
Ross Burton [Fri, 3 Sep 2021 13:24:46 +0000 (14:24 +0100)]
lsof: correct LICENSE

The lsof LICENSE is superficially BSD-like, but it isn't BSD.  Now that
we have the full SPDX license set in oe-core, use Spencer-94.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotcl: Exclude CVE-2021-35331 from checks
Richard Purdie [Fri, 3 Sep 2021 09:17:58 +0000 (10:17 +0100)]
tcl: Exclude CVE-2021-35331 from checks

Upstream don't believe this is an issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/runtime/parselogs: Make DVD ata error apply to all qemux86 machines
Richard Purdie [Fri, 3 Sep 2021 08:22:46 +0000 (09:22 +0100)]
oeqa/runtime/parselogs: Make DVD ata error apply to all qemux86 machines

This log checking fix is needed for both qemux86 and qemux86-64 so move
to the common section.

[YOCTO #14528]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomirrors.bbclass: remove redundant server-specific mirrors
Daniel Wagenknecht [Thu, 2 Sep 2021 06:31:19 +0000 (08:31 +0200)]
mirrors.bbclass: remove redundant server-specific mirrors

With the previously added general git repo fallback rule the server
specific fallback mirrors for git.savannah.gnu.org and
git.yoctoproject.org are redundant. Remove them.

Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomirrors.bbclass: provide additional rule for git repo fallbacks
Daniel Wagenknecht [Thu, 2 Sep 2021 06:31:17 +0000 (08:31 +0200)]
mirrors.bbclass: provide additional rule for git repo fallbacks

Git hosting servers that require a slightly different URL when accessing
repositories via https protocol instead of the git native protocol
are not uncommon (servers using cgit as web UI). Provide a general rule
to try HOST/git/PATH via https as git repo fallback.

Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoreadline: correct pkg-config dependency for termcap
Denys Dmytriyenko [Wed, 1 Sep 2021 22:23:41 +0000 (18:23 -0400)]
readline: correct pkg-config dependency for termcap

readline uses ncurses for terminal capabilities database, but it fails to
specify it correctly in the pkg-config .pc file, resulting in:
Requires.private: termcap

As ncurses by default provides newer terminfo instead of termcap, there's
no termcap.pc in the system and pkg-config fails when linking with readline:
readline.pc X-> termcap.pc

Help configure script to set pkg-config to use ncurses for the correct
terminal capabilities database:
Requires.private: ncurses

This fixes pkg-config dependency chain:
readline.pc -> ncurses.pc -> tinfo.pc

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Comment out placeholder license warning
Joshua Watt [Wed, 1 Sep 2021 13:44:56 +0000 (08:44 -0500)]
classes/create-spdx: Comment out placeholder license warning

We don't want this warning causing problems on the AB, so leave it
comment out for now

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Skip package processing for native recipes
Joshua Watt [Wed, 1 Sep 2021 13:44:55 +0000 (08:44 -0500)]
classes/create-spdx: Skip package processing for native recipes

Native recipes do not produce packages and should not process them,
otherwise it can trigger an error in read_subpackage_metadata

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Collect all task dependencies
Joshua Watt [Wed, 1 Sep 2021 13:44:54 +0000 (08:44 -0500)]
classes/create-spdx: Collect all task dependencies

Stop filtering the runtime dependencies based on do_create_sdpx (makes
it only pick up things in DEPENDS) and instead include all task
dependencies that are not the current PN. This allows other dependency
methods to be picked up correctly, for example the dependency on the
kernel used by kernel modules.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add special exception for Public Domain license
Joshua Watt [Wed, 1 Sep 2021 13:44:53 +0000 (08:44 -0500)]
classes/create-spdx: Add special exception for Public Domain license

The Public Domain license (PD) needs a special exception in the license
processing since there is no common license text to be extracted for
these licenses.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Fix file:// in downloadLocation
Joshua Watt [Wed, 1 Sep 2021 13:44:52 +0000 (08:44 -0500)]
classes/create-spdx: Fix file:// in downloadLocation

file:// URIs should not be included as the downloadLocation. Instead,
loop until a non-file:// URI is found, or set the location to
NOASSERTION if none is found

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Speed up hash calculations
Joshua Watt [Wed, 1 Sep 2021 13:44:51 +0000 (08:44 -0500)]
classes/create-spdx: Speed up hash calculations

Use the bb.utils.sha* utilities to hash files since they are much faster
than the loops we were rolling ourselves

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Fix up license reporting
Joshua Watt [Wed, 1 Sep 2021 13:44:50 +0000 (08:44 -0500)]
classes/create-spdx: Fix up license reporting

Licenses reported in the SPDX documents should be either:
 A) A valid SPDX identifier cross referenced from the SPDX license
    database
 B) A "LicenseRef" to a license described in the SPDX document

The licensing code will now add a placeholder extracted license with
corresponding "LicenseRef" for any licenses that are not matched to the
SPDX database

Parenthesis in the license expression are now handled correctly

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: extend DocumentRef to include name
Saul Wold [Wed, 1 Sep 2021 13:44:48 +0000 (08:44 -0500)]
classes/create-spdx: extend DocumentRef to include name

This will create a more uniq DocumentRef, which will allow
the individual spdx files to be merged into a single SBOM
file reflecting the image. Do the same with the runtime dependencies
also

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Fix another creator
Joshua Watt [Wed, 1 Sep 2021 13:44:47 +0000 (08:44 -0500)]
classes/create-spdx: Fix another creator

Fixes another creator that was missed earlier

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add NOASSERTION for unknown debug sources
Joshua Watt [Wed, 1 Sep 2021 13:44:46 +0000 (08:44 -0500)]
classes/create-spdx: Add NOASSERTION for unknown debug sources

If a debug source cannot be found, mark it as NOASSERTION so that other
tools at least know we were unable to locate it.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add runtime dependency mapping
Joshua Watt [Wed, 1 Sep 2021 13:44:45 +0000 (08:44 -0500)]
classes/create-spdx: Add runtime dependency mapping

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add index to DEPLOYDIR
Joshua Watt [Wed, 1 Sep 2021 13:44:44 +0000 (08:44 -0500)]
classes/create-spdx: Add index to DEPLOYDIR

Add the index to DEPLOYDIR in addition to adding it to the SPDX archive

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add SHA1 to index file
Joshua Watt [Wed, 1 Sep 2021 13:44:43 +0000 (08:44 -0500)]
classes/create-spdx: Add SHA1 to index file

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Change creator
Joshua Watt [Wed, 1 Sep 2021 13:44:42 +0000 (08:44 -0500)]
classes/create-spdx: Change creator

Update the creator name since this no longer lives in meta-doubleopen

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add class
Joshua Watt [Wed, 1 Sep 2021 13:44:41 +0000 (08:44 -0500)]
classes/create-spdx: Add class

Adds a class as a first attempt to create SPDX SBoM documents during the
build. This initial work was influenced by [meta-doubleopen][1],
although almost completely rewritten.

[1]: https://github.com/doubleopen-project/meta-doubleopen

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/package: Add extended packaged data
Joshua Watt [Wed, 1 Sep 2021 13:44:40 +0000 (08:44 -0500)]
classes/package: Add extended packaged data

Adds extended package data which is encoded as JSON which allows it to
encode more structure than the "flat" package data files. The extended
data might be much larger than the standard package data, so it is not
read by default and instead requires
oe.packagedata.read_subpkgdata_extended() to be called

Currently, the file sizes and ELF debug sources are saved off into the
extended package data

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Reviewed-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoAdd SPDX licenses
Joshua Watt [Wed, 1 Sep 2021 13:44:49 +0000 (08:44 -0500)]
Add SPDX licenses

Adds the SPDX license database from https://github.com/spdx/license-list-data

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocommon-licenses: add missing SPDX licences
Ross Burton [Wed, 1 Sep 2021 19:43:58 +0000 (20:43 +0100)]
common-licenses: add missing SPDX licences

As part of the work to converge our license support with SPDX, ensure
that we have all of the licenses that SPDX supports.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowpebackend-fdo: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:35 +0000 (17:24 +0100)]
wpebackend-fdo: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibwpe: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:34 +0000 (17:24 +0100)]
libwpe: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowebkitgtk: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:33 +0000 (17:24 +0100)]
webkitgtk: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibx11-compose-data: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:32 +0000 (17:24 +0100)]
libx11-compose-data: set precise BSD license

"BSD" is ambiguous, use the precise licenses BSD-2-Clause BSD-4-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoiputils: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:31 +0000 (17:24 +0100)]
iputils: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-packaging: fix license statement
Ross Burton [Thu, 2 Sep 2021 16:24:30 +0000 (17:24 +0100)]
python3-packaging: fix license statement

This is licensed as Apache OR BSD, not AND.

Also use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoopenssh: remove redundant BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:29 +0000 (17:24 +0100)]
openssh: remove redundant BSD license

The license statement already includes BSD-2-Clause and BSD-3-Clause, so
remove the redundant and ambiguous BSD license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibevent: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:28 +0000 (17:24 +0100)]
libevent: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoacpica: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:27 +0000 (17:24 +0100)]
acpica: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodtc: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:26 +0000 (17:24 +0100)]
dtc: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonfs-utils: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:25 +0000 (17:24 +0100)]
nfs-utils: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoquota: remove BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:24 +0000 (17:24 +0100)]
quota: remove BSD license

Only the 'quot' tool was BSD licensed, and this was removed upstream in
commit 5d30a29 (since 4.05).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-numpy: remove redundant BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:23 +0000 (17:24 +0100)]
python3-numpy: remove redundant BSD license

The license list already includes BSD-2-Clause and BSD-3-Clause, so
remove the redundant and ambiguous BSD license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolz4: remove redundant BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:22 +0000 (17:24 +0100)]
lz4: remove redundant BSD license

The upstream license is BSD-2-Clause or GPLv2, so remove the redundant
and ambiguous BSD license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: enable crocus driver for older intel graphics
Alexander Kanavin [Thu, 2 Sep 2021 08:05:19 +0000 (10:05 +0200)]
mesa: enable crocus driver for older intel graphics

See here for the full story:
https://www.phoronix.com/scan.php?page=news_item&px=Intel-Crocus-Default-Gallium3D

Once crocus does become the default over i965, upstream is likely to retire
classic pre-gallium drivers altogether, which (with the exception of
i965, superseded by crocus) are all for retrocomputing hardware.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust: remove unused patches
Martin Jansa [Thu, 2 Sep 2021 06:45:16 +0000 (08:45 +0200)]
rust: remove unused patches

* 0001-nfc-Fix-missing-include.patch was only used in 1.51.0 version recently removed
* 0001-rustc_target-Fix-dash-vs-underscore-mismatches-in-op.patch was only used in 1.49.0 version in meta-rust

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-common: Hack around LD_LIBRARY_PATH issues on centos7
Richard Purdie [Wed, 1 Sep 2021 14:28:26 +0000 (15:28 +0100)]
rust-common: Hack around LD_LIBRARY_PATH issues on centos7

When building cargo-native on centos7 with buildtools tarball installed,
we see failures:

/bin/sh: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /home/pokybuild/yocto-worker/reproducible-centos/build/build-st/tmp/work/x86_64-linux/cargo-native/1.54.0-r0/recipe-sysroot-native/usr/lib/libtinfo.so.5)

We also see this for libstd-rs once cargo-native is fixed.

The reason for this is that the wrapper script
cargo-native/1.54.0-r0/wrapper/target-rust-ccld has /bin/sh as it's
interpreter and cargo calls this with LD_LIBRARY_PATH set to include the
recipe-sysroot-native. The host /bin/sh links to libtinfo from the host
but it finds the version in the sysroot which needs a newer libc. This
results in the above error since the loader is an older libc and the two
are incompatible.

Our ccld wrapper calls gcc/ld which don't need the LD_LIBRARY_PATH
variable set. We can't patch this out the source since we're using
a prebuilt binary to generate a new cargo binary so this is impossible
to bootstrap.

Instead, put a binary wrapper into place which removes LD_LIBRARY_PATH
from the environment before calling the original wrapper (left in shell
as it is simpler to maintain).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocargo: Apply uninative fix to snapshot as with rust
Richard Purdie [Wed, 1 Sep 2021 10:37:38 +0000 (11:37 +0100)]
cargo: Apply uninative fix to snapshot as with rust

Also add the interpreter relocation trick from uninative to the prebuilt
cargo binary to match rust-native, just in case that causes other problems
later too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoweston: Add rdp PACKAGECONFIG
Marek Vasut [Mon, 30 Aug 2021 13:00:31 +0000 (15:00 +0200)]
weston: Add rdp PACKAGECONFIG

Weston has RDP backend support. This can be used e.g. for screen mirroring.
Add PACKAGECONFIG so it can be enabled by the user. By default, this is not
enabled, to retain the old behavior of the recipe.

Below is an example testcase of using the RDP backend for screen mirroring,
i.e. two devices display the same content across ethernet link, input on
either is passed across the link.

- Add the following to weston.ini:
  [core]
  modules=screen-share.so
  screen-share=true
  [screen-share]
  command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/path/to/board.crt --rdp-tls-key=/path/to/board.key --no-config

- Generate keys on the board (the board.key and board.crt above):
  $ winpr-makecert -rdp -path /path/to/

- Restart weston on the board. To start screen sharing, press
  Ctrl-Alt-S
  on the keyboard (see weston compositor/screen-share.c).

- Connect to the weston using freerdp, e.g.:
  $ xfreerdp /v:192.168.1.300

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoptest: allow the ptest-packagelists.inc warning to be disabled
Ross Burton [Wed, 1 Sep 2021 16:57:03 +0000 (17:57 +0100)]
ptest: allow the ptest-packagelists.inc warning to be disabled

ptest.bbclass has a sanity check that all recipes in oe-core which
inherit ptest are also listed in the ptest-packagelists.inc file, and
the build fails if this is not the case.

Whilst this is a laudable goal, it is over-zealous as if the recipe has
a bbappend in another layer which inherits ptest, the build will fail.

By changing the combination of anonymous Python and bb.error() to a
recipe-scope QA test, this can be handled with the other sanity checks
and bbappends can skip the test if desired.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: Add repart PACKAGECONFIG
Kristian Klausen [Wed, 1 Sep 2021 16:21:39 +0000 (18:21 +0200)]
systemd: Add repart PACKAGECONFIG

systemd-repart[1] is useful for partitioning the disk:
"systemd-repart grows and adds partitions to a partition table, based on
the configuration files described in repart.d(5)."[1]

openssl is required by repart, so it can be enabled like so:
PACKAGECONFIG += "openssl repart"

[1] https://www.freedesktop.org/software/systemd/man/systemd-repart.html

Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: fix build on Arm V5 with soft float
Ross Burton [Wed, 1 Sep 2021 15:32:01 +0000 (16:32 +0100)]
mesa: fix build on Arm V5 with soft float

Since 80923e8d ("util/format: Add some NEON intrinsics-based
u_format_unpack.") upstream the build fails on Arm platforms which use
the soft-float ABI, such as qemuarmv5:

 arm_neon.h:31:2: error: #error "NEON intrinsics not available with the
 soft-float ABI.  Please use -mfloat-abi=softfp or -mfloat-abi=hard"

Take a patch from upstream to check the ABI being used before trying to
use NEON instructions.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Make UBOOT_BINARYNAME configurable
Stefan Herbrechtsmeier [Wed, 1 Sep 2021 10:29:53 +0000 (12:29 +0200)]
u-boot: Make UBOOT_BINARYNAME configurable

Make the u-boot binary name configurable. Use the existing variable
UBOOT_BINARYNAME which is evaluated from the UBOOT_BINARY.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Make SPL suffix configurable
Stefan Herbrechtsmeier [Wed, 1 Sep 2021 10:29:54 +0000 (12:29 +0200)]
u-boot: Make SPL suffix configurable

Make the SPL suffix configurable via SPL_SUFFIX variable to support SPL
binaries with suffix. The suffix is optional and empty per default. The
delimiter in front of the suffix is added automatically if the suffix
is not empty. A new variable SPL_BINARYFILE contains the binary file
name inclusive optional delimiter and suffix and the old variable
SPL_BINARYNAME contains only the name of the binary without directory,
delimiter and specified suffix. This behavior is backward compatible
with empty SPL_SUFFIX variable.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Remove misplaced configuration type variable
Stefan Herbrechtsmeier [Wed, 1 Sep 2021 10:29:52 +0000 (12:29 +0200)]
u-boot: Remove misplaced configuration type variable

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Remove redundancy from installed and deployed SPL artifact names
Stefan Herbrechtsmeier [Wed, 1 Sep 2021 10:29:51 +0000 (12:29 +0200)]
u-boot: Remove redundancy from installed and deployed SPL artifact names

Remove redundant parts from the deployed and installed SPL artifact
names of multi config configurations to match the other U-Boot artifact
names.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoswig: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:10 +0000 (08:45 -0500)]
swig: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>