]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
3 years agometa: convert nested overrides leftovers to new syntax
Denys Dmytriyenko [Wed, 4 Aug 2021 01:28:04 +0000 (21:28 -0400)]
meta: convert nested overrides leftovers to new syntax

Those were missed in previous rounds of automated and manual conversion.

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoMAINTAINERS: Saul will cover devtool and eSDK
Saul Wold [Tue, 3 Aug 2021 22:44:03 +0000 (15:44 -0700)]
MAINTAINERS: Saul will cover devtool and eSDK

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoaspell: fix CVE-2019-25051
Lee Chee Yang [Wed, 4 Aug 2021 08:21:46 +0000 (16:21 +0800)]
aspell: fix CVE-2019-25051

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinsane.bbclass: fix the file-rdeps QA message for the new override syntax
Chen Qi [Wed, 4 Aug 2021 08:10:13 +0000 (01:10 -0700)]
insane.bbclass: fix the file-rdeps QA message for the new override syntax

Instead of replacing '_<pkg>', we should be replacing ':<pkg>'.
Otherwise, when we meet a 'file-rdeps' QA error, the error message would be
like below.

  QA Issue: /usr/lib64/libatopology.so.2.0.0:libatopology contained in package libatopology ...

The ':libatopology' should not be in the error message.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorunqemu: decouple bios and kernel options
Matthias Klein [Wed, 4 Aug 2021 08:53:55 +0000 (10:53 +0200)]
runqemu: decouple bios and kernel options

This will allow the use of a bios (e.g. U-Boot) in combination with
a WIC file (from which U-Boot loads the kernel).

Signed-off-by: Matthias Klein <matthias@extraklein.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorunqemu: Fix typo in error message
Matthias Klein [Wed, 4 Aug 2021 08:53:39 +0000 (10:53 +0200)]
runqemu: Fix typo in error message

Signed-off-by: Matthias Klein <matthias@extraklein.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolicense: Exclude COPYING.MIT from pseudo
Richard Purdie [Tue, 3 Aug 2021 10:46:56 +0000 (11:46 +0100)]
license: Exclude COPYING.MIT from pseudo

Along with the other license exclusions, we need to exclude the
top level COPYING.MIT file else when:

COPY_LIC_DIRS     = "1"
COPY_LIC_MANIFEST = "1"

is set, we see eSDK failures from a pseudo abort.

[YOCTO #14366]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolocal.conf.sample.extended: Fix missed override conversion
Richard Purdie [Wed, 4 Aug 2021 18:28:51 +0000 (19:28 +0100)]
local.conf.sample.extended: Fix missed override conversion

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pip: upgrade 21.1.3 -> 21.2.1
zangrc [Tue, 3 Aug 2021 05:39:41 +0000 (13:39 +0800)]
python3-pip: upgrade 21.1.3 -> 21.2.1

Process
The source distribution re-installation feature removal has been delayed to 21.3.

Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: Define a fallback for DRIDRIVERS
Khem Raj [Tue, 3 Aug 2021 05:56:41 +0000 (22:56 -0700)]
mesa: Define a fallback for DRIDRIVERS

Some machines may not define this variable, in such cases bitbake fails
to parse

run.do_configure.3766843: line 164: -Ddri-drivers=${@strip_comma('${DRIDRIVERS}')}: bad substitution

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-dbus: upgrade 1.2.16 -> 1.2.18
zangrc [Tue, 3 Aug 2021 05:39:26 +0000 (13:39 +0800)]
python3-dbus: upgrade 1.2.16 -> 1.2.18

Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocurl: Upgrade to 7.78.0
Mingli Yu [Mon, 2 Aug 2021 08:06:56 +0000 (16:06 +0800)]
curl: Upgrade to 7.78.0

Remove libmetalink configure option as this rarely used option is
removed in the new version [1].

[1] https://github.com/curl/curl/commit/265b14d6b37c4298bd5556fabcbc37d36f911693

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-yocto: Simplify no git repo case in do_kernel_checkout
Paul Barker [Mon, 2 Aug 2021 10:44:30 +0000 (11:44 +0100)]
kernel-yocto: Simplify no git repo case in do_kernel_checkout

If the kernel sources are not fetched via git, a local git repository is
created in do_kernel_checkout. In this case we know that there will be
no remote branches and we will already be on the correct branch (since
only one branch will exist). So we can simplify things by skipping these
steps.

This also removes the assumption that the default git branch name will
be "master". Prior to this change, the final git checkout command in
do_kernel_checkout could fail if a local git repo was created and the
user had changed init.defaultBranch in their gitconfig.

Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovim: Clarify where RDEPENDS/RRECOMMENDS apply
Richard Purdie [Mon, 2 Aug 2021 15:37:03 +0000 (16:37 +0100)]
vim: Clarify where RDEPENDS/RRECOMMENDS apply

The tricky of using BPN in a common inc file is rather hard to understand.
Simplfy this by moving it to the base vim recipe and use the standard
variable form.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pytest: display correct version info
Kai Kang [Sun, 1 Aug 2021 11:41:30 +0000 (19:41 +0800)]
python3-pytest: display correct version info

It does not show correct version info of python3-pytest:

$ pip3 list | grep pytest
pytest             0.0.0

pytest requires setuptools-scm in setup.cfg. It could be met by adding
python3-setuptools-scm-native to dependency and then it will not
download egg file of setuptools-scm during do_compile any more. So
remove 0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
and depend on python3-setuptools-scm-native to make it show the correct
version info.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopopulate_sdk_ext: Fix handling of TOOLCHAIN_HOST_TASK in the eSDK case
Richard Purdie [Sun, 1 Aug 2021 13:04:15 +0000 (14:04 +0100)]
populate_sdk_ext: Fix handling of TOOLCHAIN_HOST_TASK in the eSDK case

The current way TOOLCHAIN_HOST_TASK is handled within eSDK builds is
causing much confusion, even to people who should understand the code.

For a normal SDK, some layers append to TOOLCHAIN_HOST_TASK unconditionally
which is fine, until the eSDK tries to override the variable to it's own
values. It does not support or use packages installed using this variable
and would use native recipes instead, it is a very different approach.

In the referenced bug, binaries are added but not relocated leading to
confusing errors.

To fix this, add a new variables for the eSDK TOOLCHAIN_HOST_TASK
to be explict and force the eSDK code to use this instead. The setVar
in non-parsing context will clear out any appends resolving the current
issues. The patch also gets rid of some dubious task override use.

[YCOTO #14047]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agostress-ng: Detemine minimal stack size via sysconf
Khem Raj [Sat, 31 Jul 2021 19:11:37 +0000 (12:11 -0700)]
stress-ng: Detemine minimal stack size via sysconf

This helps it compile with glibc 2.34+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosstate: Fix rebuilds when changing layer config
Richard Purdie [Sun, 1 Aug 2021 12:47:21 +0000 (13:47 +0100)]
sstate: Fix rebuilds when changing layer config

When adding a layer which changed SSTATE_EXCLUDEDEPS_SYSROOT, the state
hashes were changing when they should not. This was caused by wider use
of setscene_depvalid which means the dependency on the variable was seen
when it was previously not.

Exclude the variable since this should be be included in the hashes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosdk: Decouple default install path from built in path
Richard Purdie [Fri, 30 Jul 2021 15:44:56 +0000 (16:44 +0100)]
sdk: Decouple default install path from built in path

Add SDKPATHINSTALL which is used as the default install location of the SDK
instead of SDKPATH. This means the default install path isn't encoded into
every SDK binary, meaning if a date is used there the entire SDK doesn't
have to rebuild. Most distros can switch to only customise SDKPATHINSTALL
meaning more sstate reuse too.

[YOCTO #14100]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconvert-overrides: Allow script to handle patch/diffs
Richard Purdie [Fri, 30 Jul 2021 14:07:45 +0000 (15:07 +0100)]
convert-overrides: Allow script to handle patch/diffs

It is handy to be able to have the script convert a single patch file
and it turns out to be straightforward to make it do this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodropbear: Fix incorrect package override for postrm
Richard Purdie [Thu, 29 Jul 2021 23:20:47 +0000 (00:20 +0100)]
dropbear: Fix incorrect package override for postrm

This bug has been around for a long time (2011) but fix it to do
what was intended originally. The postrm is changed by classes but
those should append to existing entries.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogcc: update 11.1 -> 11.2
Bernhard Rosenkränzer [Thu, 29 Jul 2021 23:52:42 +0000 (01:52 +0200)]
gcc: update 11.1 -> 11.2

Update gcc, drop patches that have been merged upstream

Signed-off-by: Bernhard Rosenkränzer <bero@lindev.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.10: enable TYPEC_TCPCI in usbc fragment
Bruce Ashfield [Thu, 29 Jul 2021 04:50:02 +0000 (00:50 -0400)]
linux-yocto/5.10: enable TYPEC_TCPCI in usbc fragment

To make the usbc fragment more generally usable, we enable
the Type-C Port Controller driver for TCPCI-compliant controller.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.13: enable TYPEC_TCPCI in usbc fragment
Bruce Ashfield [Thu, 29 Jul 2021 04:50:03 +0000 (00:50 -0400)]
linux-yocto/5.13: enable TYPEC_TCPCI in usbc fragment

To make the usbc fragment more generally usable, we enable
the Type-C Port Controller driver for TCPCI-compliant controller.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto-rt/5.10: update to -rt47
Bruce Ashfield [Thu, 29 Jul 2021 04:50:01 +0000 (00:50 -0400)]
linux-yocto-rt/5.10: update to -rt47

Integrating the following commit(s) to linux-yocto/5.10:

    969fef49cbbc Linux 5.10.52-rt47
    bb5ff998ba62 Linux 5.10.47-rt46
    340f6b6cdd37 sched: Don't defer CPU pick to migration_cpu_stop()
    f3d0be7cdae8 sched: Simplify set_affinity_pending refcounts
    6b28888ca42a sched: Fix affine_move_task() self-concurrency
    ea66e426a3b7 sched: Optimize migration_cpu_stop()
    ac73ac41db62 sched: Collate affine_move_task() stoppers
    6963e6b6e008 sched: Simplify migration_cpu_stop()
    d3a5a12fd350 sched: Fix migration_cpu_stop() requeueing
    28dda3752954 Linux 5.10.47-rt45
    d5f6c5f008ee Linux 5.10.44-rt44
    ec9978fdc6aa Linux 5.10.42-rt43

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-yocto/5.4: update to v5.4.135
Bruce Ashfield [Thu, 29 Jul 2021 04:50:00 +0000 (00:50 -0400)]
linux-yocto/5.4: update to v5.4.135

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

    0a0beb1f9120 Linux 5.4.135
    d2f7b384a74f udp: annotate data races around unix_sk(sk)->gso_size
    c72374978b3f perf test bpf: Free obj_buf
    17bc942c0b96 bpftool: Properly close va_list 'ap' by va_end() on error
    84ed8340941a ipv6: tcp: drop silly ICMPv6 packet too big messages
    315033cab379 tcp: annotate data races around tp->mtu_info
    41f45e91c92c dma-buf/sync_file: Don't leak fences on merge failure
    04b06716838b net: fddi: fix UAF in fza_probe
    8aa13a86964c net: validate lwtstate->data before returning from skb_tunnel_info()
    8cff7b28ab05 net: send SYNACK packet with accepted fwmark
    b7e5563f2a78 net: ti: fix UAF in tlan:remove_one
    2b70ca92847c net: qcom/emac: fix UAF in emac:remove
    463c0addb4eb net: moxa: fix UAF in moxart_mac_probe
    7ac4a6a74e75 net: ip_tunnel: fix mtu calculation for ETHER tunnel devices
    d5dc50ca1f7a net: bcmgenet: Ensure all TX/RX queues DMAs are disabled
    7ecd40801e5b net: bridge: sync fdb to new unicast-filtering ports
    813d45499f51 net/sched: act_ct: fix err check for nf_conntrack_confirm
    24973073562f netfilter: ctnetlink: suspicious RCU usage in ctnetlink_dump_helpinfo
    c6f4a71153f4 net: ipv6: fix return value of ip6_skb_dst_mtu
    9872273b670a net: dsa: mv88e6xxx: enable .rmu_disable() on Topaz
    6148ddff2dcb net: dsa: mv88e6xxx: enable .port_set_policy() on Topaz
    d73c180e6add dm writecache: return the exact table values that were set
    8a85afc6621a mm: slab: fix kmem_cache_create failed when sysfs node not destroyed
    f53729b828db usb: cdns3: Enable TDL_CHK only for OUT ep
    52b01a808696 f2fs: Show casefolding support only when supported
    91d846016729 arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file
    f696cc7f1bc8 firmware: turris-mox-rwtm: add marvell,armada-3700-rwtm-firmware compatible string
    e2b28026b861 arm64: dts: armada-3720-turris-mox: add firmware node
    f7d1fa65e742 cifs: prevent NULL deref in cifs_compose_mount_options()
    06d8a7eb5803 s390: introduce proper type handling call_on_stack() macro
    2a47e0719ae7 sched/fair: Fix CFS bandwidth hrtimer expiry type
    5b7d065868a6 scsi: qedf: Add check to synchronize abort and flush
    0fe70c15f943 scsi: libfc: Fix array index out of bound exception
    d7b647d05586 scsi: libsas: Add LUN number check in .slave_alloc callback
    863c4bc883d5 scsi: aic7xxx: Fix unintentional sign extension issue on left shift of u8
    712e9ed6134f rtc: max77686: Do not enforce (incorrect) interrupt trigger type
    199d8ea4c7b1 kbuild: mkcompile_h: consider timestamp if KBUILD_BUILD_TIMESTAMP is set
    484193b635a7 thermal/core: Correct function name thermal_zone_device_unregister()
    556cf0283035 arm64: dts: imx8mq: assign PCIe clocks
    9d3eb68a5385 arm64: dts: ls208xa: remove bus-num from dspi node
    e054b361caec firmware: tegra: bpmp: Fix Tegra234-only builds
    94d009577033 soc/tegra: fuse: Fix Tegra234-only builds
    270a2e9fafea ARM: dts: stm32: move stmmac axi config in ethernet node on stm32mp15
    4bc66215bc22 ARM: dts: stm32: fix i2c node name on stm32f746 to prevent warnings
    856c753237ae ARM: dts: rockchip: fix supply properties in io-domains nodes
    c5bb9cc2ce23 arm64: dts: juno: Update SCPI nodes as per the YAML schema
    f572a9139396 ARM: dts: stm32: fix timer nodes on STM32 MCU to prevent warnings
    95e795474c81 ARM: dts: stm32: fix RCC node name on stm32f429 MCU
    a898aa9f88cc ARM: dts: stm32: fix gpio-keys node on STM32 MCU boards
    5c17edaaead7 ARM: dts: am437x-gp-evm: fix ti,no-reset-on-init flag for gpios
    3446233096ff ARM: dts: am57xx-cl-som-am57x: fix ti,no-reset-on-init flag for gpios
    e79e29a4e162 kbuild: sink stdout from cmd for silent build
    f817d4677582 rtc: mxc_v2: add missing MODULE_DEVICE_TABLE
    0a22b5178276 ARM: imx: pm-imx5: Fix references to imx5_cpu_suspend_info
    e20e85639e25 ARM: dts: imx6: phyFLEX: Fix UART hardware flow control
    a5b19d33ae22 ARM: dts: Hurricane 2: Fix NAND nodes names
    f83535a47ff8 ARM: dts: BCM63xx: Fix NAND nodes names
    cb05b84ad7f1 ARM: NSP: dts: fix NAND nodes names
    14e3bad3b548 ARM: Cygnus: dts: fix NAND nodes names
    587a757afe73 ARM: brcmstb: dts: fix NAND nodes names
    a9c32c7aeee6 reset: ti-syscon: fix to_ti_syscon_reset_data macro
    b400afa42739 arm64: dts: rockchip: Fix power-controller node names for rk3328
    dfb4e8ed0792 arm64: dts: rockchip: Fix power-controller node names for px30
    789070f17886 ARM: dts: rockchip: Fix power-controller node names for rk3288
    6aaffe6ce8a9 ARM: dts: rockchip: Fix power-controller node names for rk3188
    439115ee56d8 ARM: dts: rockchip: Fix power-controller node names for rk3066a
    3b4c34728382 ARM: dts: rockchip: Fix IOMMU nodes properties on rk322x
    c9d29d62da59 ARM: dts: rockchip: Fix the timer clocks order
    d105e15de610 arm64: dts: rockchip: fix pinctrl sleep nodename for rk3399.dtsi
    cfe3d29e5cde ARM: dts: rockchip: fix pinctrl sleep nodename for rk3036-kylin and rk3288
    79573c64410b ARM: dts: gemini: add device_type on pci
    7037876393ce ARM: dts: gemini: rename mdio to the right name

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.5
Bruce Ashfield [Thu, 29 Jul 2021 04:49:59 +0000 (00:49 -0400)]
linux-yocto/5.13: update to v5.13.5

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

    25423f4bd9a9 Linux 5.13.5
    c50bcc85a057 mt76: mt7921: continue to probe driver when fw already downloaded
    c1b582a7e364 udp: properly flush normal packet at GRO time
    e3104dccdd79 udp: annotate data races around unix_sk(sk)->gso_size
    010f5d09fa32 firmware: arm_scmi: Avoid padding in sensor message structure
    90ed7e5771ea drm/panel: nt35510: Do not fail if DSI read fails
    fcd280d92bad perf test bpf: Free obj_buf
    599148d40366 bpf: Track subprog poke descriptors correctly and fix use-after-free
    4edc469e4a63 bpftool: Properly close va_list 'ap' by va_end() on error
    a3b4cb28a2e8 tools: bpf: Fix error in 'make -C tools/ bpf_install'
    e023c648a764 tcp: call sk_wmem_schedule before sk_mem_charge in zerocopy path
    c0fea93d9f77 ipv6: tcp: drop silly ICMPv6 packet too big messages
    fe77b85828ca tcp: fix tcp_init_transfer() to not reset icsk_ca_initialized
    341dd0904d4f tcp: annotate data races around tp->mtu_info
    108727841c25 tcp: consistently disable header prediction for mptcp
    ed8c953ef967 ARM: dts: everest: Add phase corrections for eMMC
    cc02a1bd5b7b ARM: dts: tacoma: Add phase corrections for eMMC
    5cc4abeab14f ARM: dts: aspeed: Fix AST2600 machines line names
    6f6f8f894a55 vboxsf: Add support for the atomic_open directory-inode op
    53c4f60ed9dd vboxsf: Add vboxsf_[create|release]_sf_handle() helpers
    6e64fd2f677f vboxsf: Make vboxsf_dir_create() return the handle for the created file
    1f7cdb5def52 vboxsf: Honor excl flag to the dir-inode create op
    753b33d387ec kbuild: do not suppress Kconfig prompts for silent build
    19edcd97727a dma-buf/sync_file: Don't leak fences on merge failure
    bdfbb51f7a43 net: fddi: fix UAF in fza_probe
    d7243e2ab1c6 net: dsa: properly check for the bridge_leave methods in dsa_switch_bridge_leave()
    a915379594f1 net: validate lwtstate->data before returning from skb_tunnel_info()
    12917871d234 net: do not reuse skbuff allocated from skbuff_fclone_cache in the skb cache
    d731dcbcefd2 net: send SYNACK packet with accepted fwmark
    93efab0ef2a6 net: ti: fix UAF in tlan:remove_one
    8a225a6e07a5 net: qcom/emac: fix UAF in emac:remove
    aa92c87dc2d8 net: moxa: fix UAF in moxart_mac_probe
    db3177b7ff0e net: ip_tunnel: fix mtu calculation for ETHER tunnel devices
    02906fda9e7f net: bcmgenet: Ensure all TX/RX queues DMAs are disabled
    fd51ccd9c971 net: netdevsim: use xso.real_dev instead of xso.dev in callback functions of struct xfrmdev_ops
    c5e07e8c8ec8 net: marvell: always set skb_shared_info in mvneta_swbm_add_rx_fragment
    3863428b04be net: bridge: sync fdb to new unicast-filtering ports
    fda8adcbbc70 net/sched: act_ct: remove and free nf_table callbacks
    c3eb534eae09 vmxnet3: fix cksum offload issues for tunnels with non-default udp ports
    70a5a1950cca netfilter: nf_tables: Fix dereference of null pointer flow
    c6eb7ce9f11c net/sched: act_ct: fix err check for nf_conntrack_confirm
    a598091fc909 netfilter: ctnetlink: suspicious RCU usage in ctnetlink_dump_helpinfo
    f6eaa0620312 net: ipv6: fix return value of ip6_skb_dst_mtu
    231ea2169024 net: dsa: mv88e6xxx: enable SerDes PCS register dump via ethtool -d on Topaz
    c57e63264dfb net: dsa: mv88e6xxx: enable SerDes RX stats for Topaz
    8eef55a59620 net: dsa: mv88e6xxx: enable devlink ATU hash param for Topaz
    0104c68efb3e net: dsa: mv88e6xxx: enable .rmu_disable() on Topaz
    8263e5c08f46 net: dsa: mv88e6xxx: use correct .stats_set_histogram() on Topaz
    36d57bbdf93f net: dsa: mv88e6xxx: enable .port_set_policy() on Topaz
    c74ded51a37f net: bcmgenet: ensure EXT_ENERGY_DET_MASK is clear
    8c4f51b15196 f2fs: Show casefolding support only when supported
    ac1714556003 mm/userfaultfd: fix uffd-wp special cases for fork()
    fd26ee0a1a82 mm/thp: simplify copying of huge zero page pmd when fork
    b33e80b18a0a Revert "mm/shmem: fix shmem_swapin() race with swapoff"
    58d7ce3934ae Revert "swap: fix do_swap_page() race with swapoff"
    03c03b893661 arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file
    cffb7390312e firmware: turris-mox-rwtm: add marvell,armada-3700-rwtm-firmware compatible string
    ae3d181f4e91 cifs: prevent NULL deref in cifs_compose_mount_options()
    c007614e78a1 s390: introduce proper type handling call_on_stack() macro
    6ef3f584b593 s390/traps: do not test MONITOR CALL without CONFIG_BUG
    09f1a8d85ec1 thermal/core/thermal_of: Stop zone device before unregistering it
    505c12a1bd71 perf/x86/intel/uncore: Clean up error handling path of iio mapping
    06d6142e1421 sched/fair: Fix CFS bandwidth hrtimer expiry type
    8997002a88aa scsi: qedf: Add check to synchronize abort and flush
    8511293e643a scsi: libfc: Fix array index out of bound exception
    f661723909ad scsi: libsas: Add LUN number check in .slave_alloc callback
    9015de5e72d0 scsi: aic7xxx: Fix unintentional sign extension issue on left shift of u8
    1c033966a916 rtc: max77686: Do not enforce (incorrect) interrupt trigger type
    2a04a3607548 arch/arm64/boot/dts/marvell: fix NAND partitioning scheme
    26125ddc6904 kbuild: mkcompile_h: consider timestamp if KBUILD_BUILD_TIMESTAMP is set
    4a7f9e9b24b9 arm64: dts: qcom: sm8150: Disable Adreno and modem by default
    81c2374228cf arm64: dts: qcom: sm8250: Fix pcie2_lane unit address
    9e159edfefb1 thermal/drivers/sprd: Add missing of_node_put for loop iteration
    9a70f266994e thermal/drivers/imx_sc: Add missing of_node_put for loop iteration
    82ad14246066 thermal/drivers/rcar_gen3_thermal: Do not shadow rcar_gen3_ths_tj_1
    c3e1034bf7a2 thermal/core: Correct function name thermal_zone_device_unregister()
    bbb41aa6ee41 arm64: dts: imx8: conn: fix enet clock setting
    6d14b0e1cea1 arm64: dts: imx8mq: assign PCIe clocks
    646b6021ff2e arm64: dts: imx8mn-beacon-som: Assign PMIC clock
    5345699a5297 arm64: dts: ls208xa: remove bus-num from dspi node
    cef210690a7a arm64: dts: rockchip: Update RK3399 PCI host bridge window to 32-bit address memory
    ee3acd45dc45 firmware: tegra: bpmp: Fix Tegra234-only builds
    ad36bf954334 soc/tegra: fuse: Fix Tegra234-only builds
    7d9beefb89d0 ARM: OMAP2+: Block suspend for am3 and am4 if PM is not configured
    72ea603ebc7f arm64: dts: qcom: sc7180: Add wakeup delay for adau codec
    a38e8678f0ad ARM: dts: stm32: fix stpmic node for stm32mp1 boards
    6ea5c31a9ff6 ARM: dts: stm32: Rename spi-flash/mx66l51235l@N to flash@N on DHCOM SoM
    208d0b5c4fe8 ARM: dts: stm32: Rename eth@N to ethernet@N on DHCOM SoM
    5ba5ec23b95d ARM: dts: stm32: Drop unused linux,wakeup from touchscreen node on DHCOM SoM
    1ff4043818da ARM: dts: stm32: fix the Odyssey SoM eMMC VQMMC supply
    d3ad6193b11b ARM: dts: stm32: fix ltdc pinctrl on microdev2.0-of7
    45134048d407 ARM: dts: stm32: move stmmac axi config in ethernet node on stm32mp15
    c68df704e91f ARM: dts: stm32: fix i2c node name on stm32f746 to prevent warnings
    4d74e43113bc ARM: dts: rockchip: fix supply properties in io-domains nodes
    b6824bc92923 arm64: dts: juno: Update SCPI nodes as per the YAML schema
    6ddae8441dc2 i3c: master: svc: drop free_irq of devm_request_irq allocated irq
    81cc76202847 ARM: dts: bcm283x: Fix up GPIO LED node names
    97b95aa1abfc ARM: dts: bcm283x: Fix up MMC node names
    668f66189026 ARM: dts: aspeed: Everest: Fix cable card PCA chips
    9a92a6efb8e6 firmware: arm_scmi: Fix the build when CONFIG_MAILBOX is not selected
    b9e7b8c0b9ef firmware: arm_scmi: Add SMCCC discovery dependency in Kconfig
    8ec19b8b9c33 memory: tegra: Fix compilation warnings on 64bit platforms
    bf6e424135e3 ARM: dts: stm32: fix timer nodes on STM32 MCU to prevent warnings
    9e4183ab28b0 ARM: dts: stm32: fix RCC node name on stm32f429 MCU
    5d36882a85f7 ARM: dts: stm32: fix gpio-keys node on STM32 MCU boards
    2a735d7a8167 ARM: dts: stm32: fix stm32mp157c-odyssey card detect pin
    ea9312e7804e ARM: dts: stm32: Fix touchscreen node on dhcom-pdk2
    39fb433494c2 ARM: dts: stm32: Remove extra size-cells on dhcom-pdk2
    1dfe852260bd arm64: dts: qcom: sc7180: Move rmtfs memory region
    58e1d4a68cb5 arm64: dts: qcom: sm8250: fix display nodes
    638c3fc9774e arm64: dts: qcom: sm8350: fix the node unit addresses
    3df317941718 ARM: tegra: nexus7: Correct 3v3 regulator GPIO of PM269 variant
    94c054179d17 ARM: tegra: wm8903: Fix polarity of headphones-detection GPIO in device-trees
    cf48dfa5aa26 arm64: dts: ti: k3-am654x/j721e/j7200-common-proc-board: Fix MCU_RGMII1_TXC direction
    105f6beddcb8 arm64: tegra: Add PMU node for Tegra194
    7ac85c09d5be ARM: dts: OMAP2+: Replace underscores in sub-mailbox node names
    7752857c652f ARM: dts: am335x: fix ti,no-reset-on-init flag for gpios
    7bfbec1bf56f ARM: dts: am437x-gp-evm: fix ti,no-reset-on-init flag for gpios
    24df090958a3 ARM: dts: am57xx-cl-som-am57x: fix ti,no-reset-on-init flag for gpios
    1b45d9048ff4 kbuild: sink stdout from cmd for silent build
    3e079812f469 arm64: dts: renesas: beacon: Fix USB ref clock references
    27469bcc5b05 arm64: dts: renesas: beacon: Fix USB extal reference
    b5f38dc8381c rtc: mxc_v2: add missing MODULE_DEVICE_TABLE
    0c5b081a4d0a ARM: dts: ux500: Fix orientation of Janice accelerometer
    15cd8eb0c2e6 ARM: dts: imx6dl-riotboard: configure PHY clock and set proper EEE value
    4f0520fad7d8 ARM: dts: ux500: Fix some compatible strings
    b28ddd20572a ARM: dts: ux500: Fix orientation of accelerometer
    7f1d0da1cc41 ARM: dts: ux500: Rename gpio-controller node
    049ec888cd62 ARM: dts: ux500: Fix interrupt cells
    ea98b9eb6862 arm64: dts: rockchip: fix regulator-gpio states array
    9680f1e8f8b5 ARM: imx: pm-imx5: Fix references to imx5_cpu_suspend_info
    9b3161825b24 ARM: dts: imx6: phyFLEX: Fix UART hardware flow control
    f686c2ca9145 soc: mediatek: add missing MODULE_DEVICE_TABLE
    556e5beac048 soc: bcm: brcmstb: remove unused variable 'brcmstb_machine_match'
    3e3a7d2bf0d5 ARM: dts: BCM5301X: Fix pinmux subnodes names
    d8428468f91a ARM: dts: Hurricane 2: Fix NAND nodes names
    051500990321 ARM: dts: BCM63xx: Fix NAND nodes names
    c477ee9b6402 ARM: NSP: dts: fix NAND nodes names
    14a49e42f74c ARM: Cygnus: dts: fix NAND nodes names
    12e303c937a2 ARM: brcmstb: dts: fix NAND nodes names
    ca57a034e846 ARM: dts: BCM5301X: Fix NAND nodes names
    ea49b15d27f0 reset: ti-syscon: fix to_ti_syscon_reset_data macro
    ac00948749f1 arm64: dts: rockchip: Fix power-controller node names for rk3399
    e2cc3578a628 arm64: dts: rockchip: Fix power-controller node names for rk3328
    0ff2235f030a arm64: dts: rockchip: Fix power-controller node names for px30
    5ada42440f49 ARM: dts: rockchip: Fix power-controller node names for rk3288
    0151a90fc279 ARM: dts: rockchip: Fix power-controller node names for rk3188
    af5ca9f83fad ARM: dts: rockchip: Fix power-controller node names for rk3066a
    9015d0c9b072 ARM: dts: rockchip: Fix IOMMU nodes properties on rk322x
    991661f15817 ARM: dts: rockchip: Fix the timer clocks order
    670079df8659 arm64: dts: rockchip: fix pinctrl sleep nodename for rk3399.dtsi
    5980cb81f165 arm64: dts: rockchip: Use only supported PCIe link speed on rk3399
    68d1369daf96 ARM: dts: rockchip: fix pinctrl sleep nodename for rk3036-kylin and rk3288
    deacb07e91be ARM: dts: rockchip: Fix thermal sensor cells o rk322x
    f6e1fd15b3ee ARM: dts: gemini: add device_type on pci
    6f9ba39547e2 ARM: dts: gemini: rename mdio to the right name

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.53
Bruce Ashfield [Thu, 29 Jul 2021 04:49:58 +0000 (00:49 -0400)]
linux-yocto/5.10: update to v5.10.53

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

    71046eac2db9 Linux 5.10.53
    6cd9bd2a2ddb udp: annotate data races around unix_sk(sk)->gso_size
    bfdb38a4268a drm/panel: nt35510: Do not fail if DSI read fails
    0d90d8492fb9 perf test bpf: Free obj_buf
    a9f36bf3613c bpf: Track subprog poke descriptors correctly and fix use-after-free
    782d71e29b29 bpftool: Properly close va_list 'ap' by va_end() on error
    2381b8e882d0 tools: bpf: Fix error in 'make -C tools/ bpf_install'
    638632997c31 tcp: call sk_wmem_schedule before sk_mem_charge in zerocopy path
    2fee3cf4c97b ipv6: tcp: drop silly ICMPv6 packet too big messages
    ad4ba3404931 tcp: fix tcp_init_transfer() to not reset icsk_ca_initialized
    d60f07bcb76f tcp: annotate data races around tp->mtu_info
    ea66fcb29605 tcp: consistently disable header prediction for mptcp
    c28c747e37db ARM: dts: tacoma: Add phase corrections for eMMC
    e55160537d76 ARM: dts: aspeed: Fix AST2600 machines line names
    ff4b8f35c96c kbuild: do not suppress Kconfig prompts for silent build
    0d514185ae79 dma-buf/sync_file: Don't leak fences on merge failure
    f33605908a9b net: fddi: fix UAF in fza_probe
    66c73f187d1e net: dsa: properly check for the bridge_leave methods in dsa_switch_bridge_leave()
    7d7d0e84ac0d Revert "mm/shmem: fix shmem_swapin() race with swapoff"
    2179d96ec702 net: validate lwtstate->data before returning from skb_tunnel_info()
    b61d8814c477 net: send SYNACK packet with accepted fwmark
    f2a062fcfe1d net: ti: fix UAF in tlan:remove_one
    b560521eca03 net: qcom/emac: fix UAF in emac:remove
    dbbf5b957bd9 net: moxa: fix UAF in moxart_mac_probe
    88ff9ec9c67a net: ip_tunnel: fix mtu calculation for ETHER tunnel devices
    846829e75db5 net: bcmgenet: Ensure all TX/RX queues DMAs are disabled
    b9fa66072fee net: netdevsim: use xso.real_dev instead of xso.dev in callback functions of struct xfrmdev_ops
    59070cc43d1d net: bridge: sync fdb to new unicast-filtering ports
    7b5a2910e782 net/sched: act_ct: remove and free nf_table callbacks
    6d4476236f79 vmxnet3: fix cksum offload issues for tunnels with non-default udp ports
    c3bc9ce7d400 net/sched: act_ct: fix err check for nf_conntrack_confirm
    fc40fdefd94a netfilter: ctnetlink: suspicious RCU usage in ctnetlink_dump_helpinfo
    34365de50806 net: ipv6: fix return value of ip6_skb_dst_mtu
    73146745ff28 net: dsa: mv88e6xxx: enable devlink ATU hash param for Topaz
    a8c7ba368748 net: dsa: mv88e6xxx: enable .rmu_disable() on Topaz
    14cd8ce80ad7 net: dsa: mv88e6xxx: use correct .stats_set_histogram() on Topaz
    c657413dcddf net: dsa: mv88e6xxx: enable .port_set_policy() on Topaz
    fcb970edc0be net: bcmgenet: ensure EXT_ENERGY_DET_MASK is clear
    4e275a4aca68 usb: cdns3: Enable TDL_CHK only for OUT ep
    ce6ee46e0f39 mm/page_alloc: fix memory map initialization for descending nodes
    9e1cf2d1ed37 mm/userfaultfd: fix uffd-wp special cases for fork()
    84ff5f66c3f6 mm/thp: simplify copying of huge zero page pmd when fork
    a62177b35730 f2fs: Show casefolding support only when supported
    277b311ae170 Revert "swap: fix do_swap_page() race with swapoff"
    d92aa22f2419 arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file
    0e67c76384e9 firmware: turris-mox-rwtm: add marvell,armada-3700-rwtm-firmware compatible string
    e58c162789be cifs: prevent NULL deref in cifs_compose_mount_options()
    faa3e7da487a s390: introduce proper type handling call_on_stack() macro
    be10fff3a461 s390/traps: do not test MONITOR CALL without CONFIG_BUG
    9beba1469996 thermal/core/thermal_of: Stop zone device before unregistering it
    7412c988fe12 perf/x86/intel/uncore: Clean up error handling path of iio mapping
    892387e7619e sched/fair: Fix CFS bandwidth hrtimer expiry type
    eb859b043c2e scsi: qedf: Add check to synchronize abort and flush
    a4a54c54af25 scsi: libfc: Fix array index out of bound exception
    0d7596a954f1 scsi: libsas: Add LUN number check in .slave_alloc callback
    2f8df6332eb2 scsi: aic7xxx: Fix unintentional sign extension issue on left shift of u8
    cdb995a6cbb5 rtc: max77686: Do not enforce (incorrect) interrupt trigger type
    d3ba15fb0401 arch/arm64/boot/dts/marvell: fix NAND partitioning scheme
    e378db118925 kbuild: mkcompile_h: consider timestamp if KBUILD_BUILD_TIMESTAMP is set
    8c12a3a68d4f thermal/drivers/sprd: Add missing of_node_put for loop iteration
    20babcd83092 thermal/drivers/imx_sc: Add missing of_node_put for loop iteration
    469951ce4bb0 thermal/drivers/rcar_gen3_thermal: Do not shadow rcar_gen3_ths_tj_1
    bd40e2da3ae5 thermal/core: Correct function name thermal_zone_device_unregister()
    6c099d595fd7 arm64: dts: imx8mq: assign PCIe clocks
    24c41aa9d01b arm64: dts: ls208xa: remove bus-num from dspi node
    7e3f5739cccb firmware: tegra: bpmp: Fix Tegra234-only builds
    7c03982fa134 soc/tegra: fuse: Fix Tegra234-only builds
    ffa6f08be14a ARM: OMAP2+: Block suspend for am3 and am4 if PM is not configured
    f40a7c9b8ee1 ARM: dts: stm32: fix stpmic node for stm32mp1 boards
    2670d3d1ef47 ARM: dts: stm32: Rename spi-flash/mx66l51235l@N to flash@N on DHCOM SoM
    26cd441c529d ARM: dts: stm32: Drop unused linux,wakeup from touchscreen node on DHCOM SoM
    a5bc2a2d838e ARM: dts: stm32: fix the Odyssey SoM eMMC VQMMC supply
    e27052f21a2f ARM: dts: stm32: move stmmac axi config in ethernet node on stm32mp15
    6a7af6347810 ARM: dts: stm32: fix i2c node name on stm32f746 to prevent warnings
    160c92d728f3 ARM: dts: rockchip: fix supply properties in io-domains nodes
    d671fae04648 arm64: dts: juno: Update SCPI nodes as per the YAML schema
    fc71d8df5807 ARM: dts: bcm283x: Fix up GPIO LED node names
    4bc03e321f2a ARM: dts: bcm283x: Fix up MMC node names
    15d727c044d5 firmware: arm_scmi: Fix the build when CONFIG_MAILBOX is not selected
    b4009ea92f29 firmware: arm_scmi: Add SMCCC discovery dependency in Kconfig
    41e2bcca23f1 memory: tegra: Fix compilation warnings on 64bit platforms
    7ad965c8a723 ARM: dts: stm32: fix timer nodes on STM32 MCU to prevent warnings
    ccec32f77144 ARM: dts: stm32: fix RCC node name on stm32f429 MCU
    bfbc4b482078 ARM: dts: stm32: fix gpio-keys node on STM32 MCU boards
    34ec6702a2a1 ARM: dts: stm32: fix stm32mp157c-odyssey card detect pin
    44f4e344f4f0 ARM: dts: stm32: Fix touchscreen node on dhcom-pdk2
    3534a4b2d059 ARM: dts: stm32: Remove extra size-cells on dhcom-pdk2
    8da771b5527c arm64: dts: qcom: sc7180: Move rmtfs memory region
    a74d3bbe0553 ARM: tegra: nexus7: Correct 3v3 regulator GPIO of PM269 variant
    e89f4098d528 ARM: tegra: wm8903: Fix polarity of headphones-detection GPIO in device-trees
    c8815d6fee79 arm64: dts: ti: k3-am654x/j721e/j7200-common-proc-board: Fix MCU_RGMII1_TXC direction
    28d2ae98154e ARM: dts: OMAP2+: Replace underscores in sub-mailbox node names
    a73a22a69f6a ARM: dts: am335x: fix ti,no-reset-on-init flag for gpios
    ddf2d14894d0 ARM: dts: am437x-gp-evm: fix ti,no-reset-on-init flag for gpios
    a09b4c444941 ARM: dts: am57xx-cl-som-am57x: fix ti,no-reset-on-init flag for gpios
    3f0948569997 kbuild: sink stdout from cmd for silent build
    27582c9fa294 rtc: mxc_v2: add missing MODULE_DEVICE_TABLE
    6f5891a560df ARM: dts: imx6dl-riotboard: configure PHY clock and set proper EEE value
    5190a6604a10 ARM: dts: ux500: Fix orientation of accelerometer
    61fda04276bb ARM: dts: ux500: Rename gpio-controller node
    985947c53555 ARM: dts: ux500: Fix interrupt cells
    ff9ef21bb6fb arm64: dts: rockchip: fix regulator-gpio states array
    31e1b8c07d35 ARM: imx: pm-imx5: Fix references to imx5_cpu_suspend_info
    d05ebeffca1d ARM: dts: imx6: phyFLEX: Fix UART hardware flow control
    249d8e4ea168 ARM: dts: Hurricane 2: Fix NAND nodes names
    f6541401dbd6 ARM: dts: BCM63xx: Fix NAND nodes names
    b5fc6b9ab427 ARM: NSP: dts: fix NAND nodes names
    5f844007eb91 ARM: Cygnus: dts: fix NAND nodes names
    9525d58c5af8 ARM: brcmstb: dts: fix NAND nodes names
    4e8eb51ae633 reset: ti-syscon: fix to_ti_syscon_reset_data macro
    cabcb576fc3e arm64: dts: rockchip: Fix power-controller node names for rk3399
    81ea23d988f9 arm64: dts: rockchip: Fix power-controller node names for rk3328
    e4f97b740d6a arm64: dts: rockchip: Fix power-controller node names for px30
    95b64be2e741 ARM: dts: rockchip: Fix power-controller node names for rk3288
    5881af8d692b ARM: dts: rockchip: Fix power-controller node names for rk3188
    70abb828312a ARM: dts: rockchip: Fix power-controller node names for rk3066a
    fc01549d7b87 ARM: dts: rockchip: Fix IOMMU nodes properties on rk322x
    55014c38e73d ARM: dts: rockchip: Fix the timer clocks order
    2e1f681b680c arm64: dts: rockchip: fix pinctrl sleep nodename for rk3399.dtsi
    7d3408c72336 ARM: dts: rockchip: fix pinctrl sleep nodename for rk3036-kylin and rk3288
    e2d1e4416174 ARM: dts: rockchip: Fix thermal sensor cells o rk322x
    c8f0cef75dd7 ARM: dts: gemini: add device_type on pci
    191523dcfa68 ARM: dts: gemini: rename mdio to the right name

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: add libatomic for armv5
Trevor Woerner [Wed, 28 Jul 2021 12:29:14 +0000 (08:29 -0400)]
ffmpeg: add libatomic for armv5

The GNU Atomic library is a GCC support runtime library for atomic
operations not supported by hardware.

Otherwise we get the following when building:

| arm-oe-linux-gnueabi-gcc -mcpu=arm926ej-s -mfpu=vfp -mfloat-abi=hard -marm --sysroot=.../build/tmp-glibc/work/armv5ehf-vfp-oe-linux-gnueabi/ffmpeg/4.4-r0/recipe-sysroot -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  --sysroot=.../build/tmp-glibc/work/armv5ehf-vfp-oe-linux-gnueabi/ffmpeg/4.4-r0/recipe-sysroot -mcpu=arm926ej-s -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample   -o ffprobe_g fftools/cmdutils.o fftools/ffprobe.o  -lavdevice -lavfilter -lavformat -lavcodec -lavresample -lswresample -lswscale -lavutil  -lm -lxcb -lxcb-shm -lxcb-shape -lxcb-xfixes -lasound -lXv -lX11 -lXext -pthread -lm -lm -lbz2 -lz -pthread -lm -llzma -lz -ltheoraenc -ltheoradec -logg -lm -lm -lm -pthread -lm -lXv -lX11 -lXext
| .../build/tmp-glibc/work/armv5ehf-vfp-oe-linux-gnueabi/ffmpeg/4.4-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/../../libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/11.1.1/ld: libavformat/libavformat.so: undefined reference to `__atomic_fetch_sub_8'
| .../build/tmp-glibc/work/armv5ehf-vfp-oe-linux-gnueabi/ffmpeg/4.4-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/../../libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/11.1.1/ld: libavformat/libavformat.so: undefined reference to `__atomic_store_8'
| .../build/tmp-glibc/work/armv5ehf-vfp-oe-linux-gnueabi/ffmpeg/4.4-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/../../libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/11.1.1/ld: libavformat/libavformat.so: undefined reference to `__atomic_load_8'
| .../build/tmp-glibc/work/armv5ehf-vfp-oe-linux-gnueabi/ffmpeg/4.4-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/../../libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/11.1.1/ld: libavformat/libavformat.so: undefined reference to `__atomic_fetch_add_8'
| collect2: error: ld returned 1 exit status

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agometa-skeleton: add recipe examples from documentation sources
Michael Opdenacker [Thu, 29 Jul 2021 13:34:51 +0000 (15:34 +0200)]
meta-skeleton: add recipe examples from documentation sources

This adds three examples previously located in the yocto-docs
repository (under documentation/ref-manual/examples).

The examples were not used for building the documentation
so it's better to keep them here where they can automatically be
tested.

Fixed the "hello-single" to add a version number to the .bb file.
After this, all examples build fine with the "master" branch of Poky.

Note that the "mtd-utils" example, and example of a recipe
for an Autotools page, was not copied over. It doesn't build any
more, and anyway, we already have an official recipe for a recent version
of "mtd-utils" in OE-core.

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agozstd: fix CVE_PRODUCT
Chen Qi [Thu, 29 Jul 2021 08:25:48 +0000 (01:25 -0700)]
zstd: fix CVE_PRODUCT

zstd uses 'zstandard' in NVD database. e.g. CVE-2021-24031

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodiffoscope: upgrade 177 -> 178
wangmy [Thu, 29 Jul 2021 07:06:27 +0000 (15:06 +0800)]
diffoscope: upgrade 177 -> 178

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoi2c-tools: upgrade 4.2 -> 4.3
wangmy [Thu, 29 Jul 2021 07:06:28 +0000 (15:06 +0800)]
i2c-tools: upgrade 4.2 -> 4.3

4.3 (2021-07-22)
   decode-dimms: Attempt to decode LPDDR3 modules
   eeprom, eepromer: Removed the tools in favor of eeprog
   i2cdetect: Sort the bus list by number

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobind: upgrade 9.16.18 -> 9.16.19
wangmy [Thu, 29 Jul 2021 07:06:26 +0000 (15:06 +0800)]
bind: upgrade 9.16.18 -> 9.16.19

--- 9.16.19 released ---

5671. [bug] A race condition could occur where two threads were
competing for the same set of key file locks, leading to
a deadlock. This has been fixed. [GL #2786]

5670. [bug] create_keydata() created an invalid placeholder keydata
record upon a refresh failure, which prevented the
database of managed keys from subsequently being read
back. This has been fixed. [GL #2686]

5669. [func] KASP support was extended with the "check DS" feature.
Zones with "dnssec-policy" and "parental-agents"
configured now check for DS presence and can perform
automatic KSK rollovers. [GL #1126]

5668. [bug] Rescheduling a setnsec3param() task when a zone failed
to load on startup caused a hang on shutdown. This has
been fixed. [GL #2791]

5667. [bug] The configuration-checking code failed to account for
the inheritance rules of the "dnssec-policy" option.
This has been fixed. [GL #2780]

5666. [doc] The safe "edns-udp-size" value was tweaked to match the
probing value from BIND 9.16 for better compatibility.
[GL #2183]

5665. [bug] If nsupdate sends an SOA request and receives a REFUSED
response, it now fails over to the next available
server. [GL #2758]

5664. [func] For UDP messages larger than the path MTU, named now
sends an empty response with the TC (TrunCated) bit set.
In addition, setting the DF (Don't Fragment) flag on
outgoing UDP sockets was re-enabled. [GL #2790]

5662. [bug] Views with recursion disabled are now configured with a
default cache size of 2 MB unless "max-cache-size" is
explicitly set. This prevents cache RBT hash tables from
being needlessly preallocated for such views. [GL #2777]

5661. [bug] Change 5644 inadvertently introduced a deadlock: when
locking the key file mutex for each zone structure in a
different view, the "in-view" logic was not considered.
This has been fixed. [GL #2783]

5658. [bug] Increasing "max-cache-size" for a running named instance
(using "rndc reconfig") did not cause the hash tables
used by cache databases to be grown accordingly. This
has been fixed. [GL #2770]

5655. [bug] Signed, insecure delegation responses prepared by named
either lacked the necessary NSEC records or contained
duplicate NSEC records when both wildcard expansion and
CNAME chaining were required to prepare the response.
This has been fixed. [GL #2759]

5653. [bug] A bug that caused the NSEC3 salt to be changed on every
restart for zones using KASP has been fixed. [GL #2725]

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoshadow: update 4.8.1 -> 4.9
Alexander Kanavin [Fri, 30 Jul 2021 11:45:04 +0000 (13:45 +0200)]
shadow: update 4.8.1 -> 4.9

Add a couple backports to fix builds.

Drop 0002-Allow-for-setting-password-in-clear-text.patch;
what it adds is horribly insecure and AB testing didn't reveal any
regressions or use cases for it.

Drop /etc/default/ tweaks as files are no longer installed there.

Drop manpage alternatives as manpages are no longer installed.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest: add core-image-weston to no-gpl3-no-meta-gpl2 image test
Alexander Kanavin [Fri, 30 Jul 2021 11:45:07 +0000 (13:45 +0200)]
selftest: add core-image-weston to no-gpl3-no-meta-gpl2 image test

This demonstrates more of the tricks and techniques that can be used
to achieve gpl3-free images withough having to roll back to ancient
versions of various core items via meta-gpl2.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorpm: do not RRECOMMEND rpm-build
Alexander Kanavin [Fri, 30 Jul 2021 11:45:06 +0000 (13:45 +0200)]
rpm: do not RRECOMMEND rpm-build

This avoids pulling in perl, python and (especially) bash;
rpm building functionality should be neither hard nor soft
dependency of rpm package management.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodevtool: print a warning on upgrades if PREFERRED_VERSION is set
Alexander Kanavin [Fri, 30 Jul 2021 11:45:05 +0000 (13:45 +0200)]
devtool: print a warning on upgrades if PREFERRED_VERSION is set

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agofreetype: update 2.10.4 -> 2.11.0
Alexander Kanavin [Fri, 30 Jul 2021 11:45:03 +0000 (13:45 +0200)]
freetype: update 2.10.4 -> 2.11.0

License-Update: formatting, changed location in source tree.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoiputils: update 20210202 -> 20210722
Alexander Kanavin [Fri, 30 Jul 2021 11:45:02 +0000 (13:45 +0200)]
iputils: update 20210202 -> 20210722

Drop rdisc part from 0001-rarpd-rdisc-Drop-PrivateUsers.patch
as it's been fixed upstream; rarpd still isn't.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoutil-linux: update 2.37 -> 2.37.1
Alexander Kanavin [Fri, 30 Jul 2021 11:45:01 +0000 (13:45 +0200)]
util-linux: update 2.37 -> 2.37.1

Drop backports.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomtools: update 4.0.32 -> 4.0.34
Alexander Kanavin [Fri, 30 Jul 2021 11:45:00 +0000 (13:45 +0200)]
mtools: update 4.0.32 -> 4.0.34

Drop no-x11.gplv3.patch (the libraries are now
dynamically enabled from configure.in).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocmake: update 3.21.0 -> 3.21.1
Alexander Kanavin [Fri, 30 Jul 2021 11:44:59 +0000 (13:44 +0200)]
cmake: update 3.21.0 -> 3.21.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosanity.conf: Require bitbake 1.51.1
Richard Purdie [Fri, 30 Jul 2021 13:29:12 +0000 (14:29 +0100)]
sanity.conf: Require bitbake 1.51.1

We require 1.51.1 which has the override syntax changes in it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolocal.conf.sample: Bump version so users update their config
Richard Purdie [Thu, 29 Jul 2021 22:36:55 +0000 (23:36 +0100)]
local.conf.sample: Bump version so users update their config

It has been a while since we've done this but with the new syntax, users
need to update their local.conf if based off the template. Update the
versions to trigger this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agometa: Manual override fixes
Richard Purdie [Wed, 28 Jul 2021 13:27:33 +0000 (14:27 +0100)]
meta: Manual override fixes

The automated conversion of OE-Core to use the new override sytax isn't
perfect. This patches some mis-converted lines and some lines which were missed
by the automation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoConvert to new override syntax
Richard Purdie [Wed, 28 Jul 2021 22:28:15 +0000 (23:28 +0100)]
Convert to new override syntax

This is the result of automated script conversion:

scripts/contrib/convert-overrides.py <oe-core directory>

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolayer.conf: Override changes mean we're only compatible with honister
Richard Purdie [Thu, 29 Jul 2021 21:44:34 +0000 (22:44 +0100)]
layer.conf: Override changes mean we're only compatible with honister

Due to the override changes, we only allow compatibility with honister and
not hardknott.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconvert-overrides.py: allow specifying multiple target dirs
Martin Jansa [Fri, 30 Jul 2021 10:23:08 +0000 (12:23 +0200)]
convert-overrides.py: allow specifying multiple target dirs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconvert-overrides.py: 0.9.1 include '(' as delimiter for shortvars
Martin Jansa [Fri, 30 Jul 2021 10:23:07 +0000 (12:23 +0200)]
convert-overrides.py: 0.9.1 include '(' as delimiter for shortvars

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemtap: Fix headers issue with x86 and 5.13 headers
Richard Purdie [Thu, 29 Jul 2021 23:26:03 +0000 (00:26 +0100)]
systemtap: Fix headers issue with x86 and 5.13 headers

On some x86 platforms there were header issues causing pt_regs compile
failures for our stap tests, e.g. on genericx86-64 but not qemux86-64.

Backport a patch from upstream which fixes the issue.

[YOCTO #14491]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconvert-overrides.py: remove base_dep_prepend and autotools_dep_prepend exception
Martin Jansa [Fri, 30 Jul 2021 09:25:45 +0000 (11:25 +0200)]
convert-overrides.py: remove base_dep_prepend and autotools_dep_prepend exception

* the functions were renamed in:
  https://git.openembedded.org/openembedded-core/commit/?id=9d002acae720b0a8e96a6734424a142b86880461

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconvert-overrides.py: show processed file and version of this script
Martin Jansa [Fri, 30 Jul 2021 09:25:44 +0000 (11:25 +0200)]
convert-overrides.py: show processed file and version of this script

* on bigger layer this script takes couple minutes without showing any progress
* add a version to reference it in the conversion commit (to easily figure out
  if it's worth re-converting the layer).

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoscripts/contrib: Add override conversion script
Richard Purdie [Fri, 16 Jul 2021 13:53:23 +0000 (14:53 +0100)]
scripts/contrib: Add override conversion script

This adds a script I've developed to migrate metadata to use the new override
syntax. It is a bit rough but since its for a single use with validation, it
doesn't need to be perfect. It is run simply as:

scripts/contrib/convert-overrides.py <directory>

It is setup and has been tested to work with OE-Core, Bitbake, yocto-docs,
meta-yocto, meta-gplv2 and meta-mingw. For OE-Core, it converts around 10,100
lines with about 34 manual fixes needed.

For other layers it would need updating for override names and exclusions for
functions/variable names with "append", "prepend" or "remove" in them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoautotools/base/icecc: Remove prepend from function names
Richard Purdie [Thu, 29 Jul 2021 14:21:56 +0000 (15:21 +0100)]
autotools/base/icecc: Remove prepend from function names

Using prepend as part of a function name is a poor choice. Whilst we're
about to make the syntax explict, improve the names anyway making the
conversion easier and the intent clear that this isn't an override.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoparselogs.py: qemuarm should be qemuarmv5
Jon Mason [Wed, 28 Jul 2021 17:32:26 +0000 (13:32 -0400)]
parselogs.py: qemuarm should be qemuarmv5

All of the errors being masked off for qemuarm are legacy from before
the migration of qemuarm to qemuarmv5.  Rename the machine to that to
allow for qemuarmv5 to pass parselog test.  Light testing shows no
errors in dmesg for qemuarm.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibx11: fix xkb compilation with _EVDEVK symbols
Ross Burton [Wed, 28 Jul 2021 11:44:02 +0000 (12:44 +0100)]
libx11: fix xkb compilation with _EVDEVK symbols

New xkeyboard-config writes defines that use _EVDEVK(), which makekeys
can't parse.  Take a patch from upstream to also parse these symbols.

[ YOCTO #14489 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoperlcross: not break build if already patched
Mingli Yu [Wed, 28 Jul 2021 05:39:59 +0000 (13:39 +0800)]
perlcross: not break build if already patched

Currently the build will break if the patch already applied
as the return value of "test ! -f $@" is not 0, so make sure
to return 0 if the patch already applied.

Fixes:
 $ bitbake perl-native

 Make a change as below
 $ git diff
 diff --git a/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb b/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb
 index b77bbd1fd4..4c5e35ab80 100644
 --- a/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb
 +++ b/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb
 @@ -33,6 +33,7 @@ do_compile () {
  do_install_class-native() {
      mkdir -p ${D}/${datadir}/perl-cross/
      cp -rf ${S}/* ${D}/${datadir}/perl-cross/
 +    echo "test" > ${D}/${datadir}/perl-cross/testfile
 }

 $ bitbake perl-native
NOTE: make -j 40
make crosspatch
make[1]: Entering directory '/build/tmp-glibc/work/x86_64-linux/perl-native/5.34.0-r0/perl-5.34.0'
test ! -f cnf/diffs/perl5-5.34.0/posix-makefile.applied && (patch -p1 -i cnf/diffs/perl5-5.34.0/posix-makefile.patch && touch cnf/diffs/perl5-5.34.0/posix-makefile.applied)
test ! -f cnf/diffs/perl5-5.34.0/dynaloader.applied && (patch -p1 -i cnf/diffs/perl5-5.34.0/dynaloader.patch && touch cnf/diffs/perl5-5.34.0/dynaloader.applied)
make[1]: *** [Makefile:64: cnf/diffs/perl5-5.34.0/posix-makefile.applied] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:64: cnf/diffs/perl5-5.34.0/dynaloader.applied] Error 1
make[1]: Leaving directory '/build/tmp-glibc/work/x86_64-linux/perl-native/5.34.0-r0/perl-5.34.0'
make: *** [Makefile:78: all] Error 2

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoarchiver.bbclass: fix do_ar_configured failure for kernel
Changqing Li [Wed, 28 Jul 2021 01:21:22 +0000 (09:21 +0800)]
archiver.bbclass: fix do_ar_configured failure for kernel

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: fix CVE-2021-33815
Tony Tascioglu [Tue, 27 Jul 2021 23:20:47 +0000 (16:20 -0700)]
ffmpeg: fix CVE-2021-33815

avcodec/exr: More strictly check dc_count

Fixes: out of array access
Fixes: exr/deneme
Found-by: Burak Çarıkçı <burakcarikci@crypttech.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
CVE: CVE-2021-33815
Upstream-Status: Backport [26d3c81bc5ef2f8c3f09d45eaeacfb4b1139a777]

Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: fix CVE-2020-22033 and CVE-2020-22019
Tony Tascioglu [Tue, 27 Jul 2021 23:20:46 +0000 (16:20 -0700)]
ffmpeg: fix CVE-2020-22033 and CVE-2020-22019

avfilter/vf_vmafmotion: Check dimensions

Fixes: out of array access
Fixes: Ticket8241
Fixes: Ticket8246
Fixes: CVE-2020-22019
Fixes: CVE-2020-22033
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
CVE: CVE-2020-22033
CVE: CVE-2020-22019
Upstream-Status: Backport [82ad1b76751bcfad5005440db48c46a4de5d6f02]

Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: fix CVE-2020-22021
Tony Tascioglu [Tue, 27 Jul 2021 23:20:45 +0000 (16:20 -0700)]
ffmpeg: fix CVE-2020-22021

avfilter/vf_yadif: Fix handing of tiny images

Fixes: out of array access
Fixes: Ticket8240
Fixes: CVE-2020-22021
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
CVE: CVE-2020-22021
Upstream-Status: Backport [7971f62120a55c141ec437aa3f0bacc1c1a3526b]

Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: fix CVE-2020-22015
Tony Tascioglu [Tue, 27 Jul 2021 23:20:44 +0000 (16:20 -0700)]
ffmpeg: fix CVE-2020-22015

avformat/movenc: Check pal_size before use

Fixes: assertion failure
Fixes: out of array read
Fixes: Ticket8190
Fixes: CVE-2020-22015
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
CVE: CVE-2020-22015
Upstream-Status: Backport [4c1afa292520329eecd1cc7631bc59a8cca95c46]

Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: fix CVE-2020-20453
Tony Tascioglu [Tue, 27 Jul 2021 23:20:43 +0000 (16:20 -0700)]
ffmpeg: fix CVE-2020-20453

avcodec/aacenc: Avoid 0 lambda

Fixes: Ticket8003
Fixes: CVE-2020-20453
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
CVE: CVE-2020-20453
Upstream-Status: Backport [a7a7f32c8ad0179a1a85d0a8cff35924e6d90be8]

Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: fix-CVE-2020-20446
Tony Tascioglu [Tue, 27 Jul 2021 23:20:42 +0000 (16:20 -0700)]
ffmpeg: fix-CVE-2020-20446

avcodec/aacpsy: Avoid floating point division by 0 of norm_fac

Fixes: Ticket7995
Fixes: CVE-2020-20446
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
CVE: CVE-2020-20446
Upstream-Status: Backport [223b5e8ac9f6461bb13ed365419ec485c5b2b002]

Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agostress-ng: Drop defining daddr_t
Khem Raj [Tue, 27 Jul 2021 20:31:56 +0000 (13:31 -0700)]
stress-ng: Drop defining daddr_t

This is fixed differently upstream [1]

[1] https://github.com/ColinIanKing/stress-ng/commit/7e150ab18b0e8954ca426eb5366000a8f0d01110
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 agosystemd: Fix build on musl
Khem Raj [Tue, 27 Jul 2021 20:13:25 +0000 (13:13 -0700)]
systemd: Fix build on musl

Latest upgrade to 249 broke a working build on musl, this is incremental
fix to exisiting patches adapted to 249 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc: Fix CVE-2021-33574
Vinay Kumar [Tue, 27 Jul 2021 18:38:31 +0000 (11:38 -0700)]
glibc: Fix CVE-2021-33574

Source: https://sourceware.org/git/glibc.git
Tracking -- https://sourceware.org/bugzilla/show_bug.cgi?id=27896

Backported upstream commit 42d359350510506b87101cf77202fefcbfc790cb to
glibc-2.33 source with dependent commit id 217b6dc298156bdb0d6aea9ea93e7e394a5ff091.

Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=42d359350510506b87101cf77202fefcbfc790cb]

Signed-off-by: Vinay Kumar <vinay.m.engg@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: Fix v3d & vc4 dmabuf import
Joshua Watt [Tue, 27 Jul 2021 17:24:43 +0000 (12:24 -0500)]
mesa: Fix v3d & vc4 dmabuf import

Mesa would unnecessarily fail in the v3d and vc4 driver if a dmabuf
could not imported for scanout. In particular, this meant the
weston-simple-dmabuf-egl test program would fail on a Raspberry Pi.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-uboot: Handle gzip and lzo compression options
Marek Vasut [Tue, 27 Jul 2021 16:25:29 +0000 (18:25 +0200)]
kernel-uboot: Handle gzip and lzo compression options

Since 5c72105e29 ("kernel-uboot: allow compression option to be configurable")
it is possible to select kernel compression method, however the resulting
image is always compressed with gzip, so selecting any other method than
gzip results in unbootable images. Add support for lzo for starters, since
that is fast to decompress and useful in low boot time scenarios.

Note that we should likely add some check for unsupported compression
methods. We should also add dependency on lzop-native I think.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoimage_types: Restore pre-btrfs-tools 4.14.1 mkfs.btrfs shrink behavior
Marek Vasut [Tue, 27 Jul 2021 16:25:04 +0000 (18:25 +0200)]
image_types: Restore pre-btrfs-tools 4.14.1 mkfs.btrfs shrink behavior

Currently the mkfs.btrfs generates large images with a lot of wasted
space. This happens since OE-core updated btrfs-tools from 4.13.3 to
4.15.1 in commit 94b645aa77 ("btrfs-tools: update to 4.15.1") .

Note in mkfs.btrfs(8) manpage section -r says the following:
"
  -r|--rootdir <rootdir>
...
       Note This option may enlarge the image or file to ensure
       it’s big enough to contain the files from rootdir. Since
       version 4.14.1 the filesystem size is not minimized. Please
       see option --shrink if you need that functionality.

  --shrink
     Shrink the filesystem to its minimal size, only works with
     --rootdir option.
...
       Note prior to version 4.14.1, the shrinking was done
       automatically.
"

Add the --shrink option to EXTRA_IMAGECMD_btrfs to reinstate the
original behavior and un-waste the space.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomtd-utils: upgrade 2.1.2 -> 2.1.3
Stefano Babic [Tue, 27 Jul 2021 10:08:18 +0000 (12:08 +0200)]
mtd-utils: upgrade 2.1.2 -> 2.1.3

Drop also --enable-install-tests from configuration options because this
was removed in 2.1.3.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
CC: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorootfs: remove ldconfig auxiliary cache where appropriate
Damian Wrobel [Tue, 27 Jul 2021 10:11:46 +0000 (12:11 +0200)]
rootfs: remove ldconfig auxiliary cache where appropriate

Removes the /var/cache/ldconfig auxiliary cache directory from
the rootfs when:
 - read-only-rootfs is in IMAGE_FEATURES,
 - ldconfig is not in DISTRO_FEATURES.

In both cases the /var/cache/ldconfig/aux-cache is useless.

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoyocto-check-layer: ensure that all layer dependencies are tested too
Nicolas Dechesne [Thu, 22 Jul 2021 12:46:44 +0000 (14:46 +0200)]
yocto-check-layer: ensure that all layer dependencies are tested too

In order to be compliant with the YP compatible status, a layer also
needs to ensure that all its dependencies are compatible
too. Currently yocto-check-layer only checks the requested layer,
without testing any dependencies.

With this change, all dependencies are also checked by default, so the
summary printed at the end will give a clear picture whether all
dependencies pass the script or not.

Using --no-auto-dependency can be used to skip that.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agochecklayer: rename _find_layer_depends
Nicolas Dechesne [Thu, 22 Jul 2021 12:46:43 +0000 (14:46 +0200)]
checklayer: rename _find_layer_depends

What this function does is really to find a layer, not a 'depends'. We
are using this function to find a dependent layer, but the name is
confusing.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agochecklayer: new function get_layer_dependencies()
Nicolas Dechesne [Thu, 22 Jul 2021 12:46:42 +0000 (14:46 +0200)]
checklayer: new function get_layer_dependencies()

Split add_layer_dependencies() into 2 parts. First search for layer
dependencies, and then add them to the config. That allows us to
call get_layer_dependencies() independently.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoyocto-check-layer: improve missed dependencies
Nicolas Dechesne [Thu, 22 Jul 2021 12:46:41 +0000 (14:46 +0200)]
yocto-check-layer: improve missed dependencies

The first 2 calls to add_layer_dependencies() are here to add all
dependencies for the 'layer under test' and the additional layers
provided by the users.

In both cases, we use misssing_dependencies boolean to indicate if any
dependency is missing. But we then never really use
missing_dependencies. Instead the script is calling
add_layer_dependencies() again (for both the layer under test, and the
additional layers) to detect if there are any missing dependency. As a
result, we are trying to add again all dependencies, and we can see
that from the traces:

INFO: Detected layers:
INFO: meta-aws: LayerType.SOFTWARE, /work/oe/sources/meta-aws
INFO: checklayer: Doesn't have conf/layer.conf file, so ignoring
INFO:
INFO: Setting up for meta-aws(LayerType.SOFTWARE), /work/oe/sources/meta-aws
INFO: Adding layer meta-python
INFO: Adding layer meta-oe
INFO: Adding layer meta-networking
-->
INFO: Adding layer meta-python
INFO: meta-python is already in /work/oe/poky/master/build-checklayer/conf/bblayers.conf
INFO: Adding layer meta-oe
INFO: meta-oe is already in /work/oe/poky/master/build-checklayer/conf/bblayers.conf
INFO: Adding layer meta-networking
INFO: meta-networking is already in /work/oe/poky/master/build-checklayer/conf/bblayers.conf
<--
INFO: Getting initial bitbake variables ...

The code appears more complex than it should, and we can simply
replace the complex if statement by using missing_dependencies, and
avoid duplicating the call to add_layer_dependencies().

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot_2021.07: set UBOOT_MACHINE for qemumips and qemumips64
Kai Kang [Sun, 25 Jul 2021 14:25:36 +0000 (22:25 +0800)]
u-boot_2021.07: set UBOOT_MACHINE for qemumips and qemumips64

It fails to build u-boot 2021.07 for qemumips and qemumips64:

| *** Can't find default configuration "arch/../configs/qemu_mips64_defconfig"!

According to

https://source.denx.de/u-boot/u-boot/-/commit/5308a71

set UBOOT_MACHINE with malta defconfigs for qemumips and qemumips64.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibubootenv: Drop default-env RRECOMMENDS
Richard Purdie [Sun, 25 Jul 2021 16:11:30 +0000 (17:11 +0100)]
libubootenv: Drop default-env RRECOMMENDS

The link back to uboot's env is causing a ton of pain since it is making
this recipe machine specific. Some machines may use uboot, some may
not but you really want an architecture/machine neutral library.

Revert this part of the 0.3 upgrade (OE-Core rev:
02d55cd35aac15095fc44f0cf8f9e7a71638f485) so that we don't need some
of the horrible workarounds being seen in other layers. If a given
machine uses u-boot, the env can be pulled in by the machine directly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinit-manager-systemd: define weak dev manager
Vivien Didelot [Sun, 25 Jul 2021 15:39:08 +0000 (11:39 -0400)]
init-manager-systemd: define weak dev manager

For a full systemd distro, also add a weak assignment for systemd as
the dev manager.

Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocmake: update 3.20.5 -> 3.21.0
Alexander Kanavin [Thu, 22 Jul 2021 22:45:03 +0000 (00:45 +0200)]
cmake: update 3.20.5 -> 3.21.0

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconf-notes.txt: now suggesting to run 'runqemu qemux86-64'
Michael Opdenacker [Fri, 23 Jul 2021 17:05:49 +0000 (19:05 +0200)]
conf-notes.txt: now suggesting to run 'runqemu qemux86-64'

'runqemu qemux86' doesn't work any more.
The "Quick Build" documentation has already been updated
but this message that we get when sourcing "oe-init-build-env"

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooe-setup-builddir: update YP docs and OE URLs
Michael Opdenacker [Fri, 23 Jul 2021 16:12:37 +0000 (18:12 +0200)]
oe-setup-builddir: update YP docs and OE URLs

This updates the link to the YP docs
and proposes to access the OE website through https

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovulkan-samples: update to latest revision
Alexander Kanavin [Thu, 22 Jul 2021 22:45:08 +0000 (00:45 +0200)]
vulkan-samples: update to latest revision

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agognu-config: update to latest revision
Alexander Kanavin [Thu, 22 Jul 2021 22:45:07 +0000 (00:45 +0200)]
gnu-config: update to latest revision

Adjust lines in license check; checksum is same.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibuv: update 1.41.0 -> 1.42.0
Alexander Kanavin [Thu, 22 Jul 2021 22:45:06 +0000 (00:45 +0200)]
libuv: update 1.41.0 -> 1.42.0

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-testools: update 2.4.0 -> 2.5.0
Alexander Kanavin [Thu, 22 Jul 2021 22:45:04 +0000 (00:45 +0200)]
python3-testools: update 2.4.0 -> 2.5.0

Drop no_traceback2.patch as issue fixed upstream.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: update 248.3 -> 249.1
Alexander Kanavin [Thu, 22 Jul 2021 22:45:02 +0000 (00:45 +0200)]
systemd: update 248.3 -> 249.1

jinja is now required:
https://github.com/systemd/systemd/commit/e0698c66f4569c91e3fdd54ca77449698ae38704

Drop 0001-test-seccomp-Check-for-__NR_ppoll-before-use.patch as it is a backport.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agollvm: update 12.0.0 -> 12.0.1
Alexander Kanavin [Thu, 22 Jul 2021 22:45:01 +0000 (00:45 +0200)]
llvm: update 12.0.0 -> 12.0.1

Other than the tcmode tweak, this was done by devtool \0/

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotexinfo: Update gnulib to fix build with glibc 2.34
Khem Raj [Thu, 22 Jul 2021 19:31:19 +0000 (12:31 -0700)]
texinfo: Update gnulib to fix build with glibc 2.34

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 agoglew: fix Makefile race
Ross Burton [Thu, 22 Jul 2021 15:39:16 +0000 (16:39 +0100)]
glew: fix Makefile race

Fix a Makefile race resulting in the target creating a directory being
executed after the target to write into that directory.

[ YOCTO #14485 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoyocto-check-layer: Remove duplicated code
Richard Purdie [Thu, 22 Jul 2021 09:53:57 +0000 (10:53 +0100)]
yocto-check-layer: Remove duplicated code

Nicolas Dechesne spotted there was duplicate code I had introduced with a
previous fix. Remove the second statement since the earlier one is correct
all that is needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinitramfs-framework/setup-live: fix shebang
Ulrich Ölmann [Wed, 21 Jul 2021 20:09:11 +0000 (22:09 +0200)]
initramfs-framework/setup-live: fix shebang

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinitramfs-framework: fix whitespace issue
Ulrich Ölmann [Wed, 21 Jul 2021 19:18:00 +0000 (21:18 +0200)]
initramfs-framework: fix whitespace issue

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobitbake.conf: change GNOME_MIRROR to new one
Oleksandr Kravchuk [Wed, 21 Jul 2021 16:41:16 +0000 (18:41 +0200)]
bitbake.conf: change GNOME_MIRROR to new one

URI has been permanently moved and returns HTTP 301.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinitscripts: fix creation order for /var/log with VOLATILE_LOG_DIR=true
Matthias Schiffer [Wed, 21 Jul 2021 14:10:16 +0000 (16:10 +0200)]
initscripts: fix creation order for /var/log with VOLATILE_LOG_DIR=true

Create the /var/log symlink directly after /var/volatile/log, so
/var/log is available for the creation of /var/log/wtmp a few lines
later.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinitscripts: populate-volatile.sh: run create_file synchronously
Matthias Schiffer [Wed, 21 Jul 2021 14:10:15 +0000 (16:10 +0200)]
initscripts: populate-volatile.sh: run create_file synchronously

The behavior of running create_file in the background was introduced in
d44816bedade ("initscripts: Populate volatile from existing file")
without further explanation. Besides its questionable benefit, this
causes actual issues:

- Not all create_file processes may have finished by the time the
  initscript exits (or when it moves /etc/volatile.cache.build !)
- By making the order of commands nondeterminstic, it could hide
  dependency issues where it was attempted to create files before their
  containing directories

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinitscripts: populate-volatile.sh: do not log to tty0
Matthias Schiffer [Wed, 21 Jul 2021 14:10:14 +0000 (16:10 +0200)]
initscripts: populate-volatile.sh: do not log to tty0

tty0 may not be the intended console for log messages, or it may not
exist at all in kernel configurations without CONFIG_VT. Just use the
default stdout/stderr instead.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoarchiver.bbclass: Fix patch error for recipes that inherit dos2unix.
leimaohui [Wed, 21 Jul 2021 10:13:50 +0000 (18:13 +0800)]
archiver.bbclass: Fix patch error for recipes that inherit dos2unix.

do_unpack_and_patch error happens for these recipes inherit dos2unix.

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobinutils: Upgrade to 2.37 branch
Khem Raj [Mon, 19 Jul 2021 04:22:03 +0000 (21:22 -0700)]
binutils: Upgrade to 2.37 branch

This is next/latest release branch for binutils
Drop backports and CVE fixes which already are applied upstream

bfd_stdint.h has been removed in favor of using stdint.h

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>