meta-freescale/recipes-graphics/wayland/wayland-protocols_%.bbappend
Max Krummenacher 48dfc5f5f3 wayland-protocols: use upstream repo with NXP downstream patches
OE-core update wayland-utils to 1.3.0 which now requires
wayland-protocols version >= 1.44.
As the imx-nxp-bsp forked wayland protocols and does not provide
a version later than 1.41 the build fails in do_configure of
wayland-utils.

Drop the wayland-protocol recipe of the downstream fork, extract
the 3 relevant patches on top of upstream v1.41 and apply them
in a bbappend on top of whatever OE-core provides for wayland-protocols.
(6 downstream patches not relevant for the build are dropped)

| ../sources/wayland-utils-1.3.0/wayland-info/meson.build:4:9:
|   ERROR: Dependency lookup for wayland-protocols with method 'pkgconfig' failed:
|     Invalid version, need 'wayland-protocols' ['>= 1.44'] found '1.41'.

The `inherit allarch` from OE-core can not easily be overridden. I.e.
just setting `PACKAGE_ARCH:imx-nxp-bsp = "${MACHINE_SOCARCH}"` was
ignored and the packages were still allarch without the workaround.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>

wayland-protocol: drop patches 0004-0009
2026-01-07 10:09:01 +01:00

17 lines
486 B
Plaintext

FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
NXP_PATCHES = " \
file://0001-unstable-Add-alpha-compositing-protocol.patch \
file://0002-unstable-Add-hdr10-metadata-protocol.patch \
file://0003-linux-dmabuf-support-passing-buffer-DTRC-meta-to-com.patch \
"
SRC_URI:append:imx-nxp-bsp = " ${NXP_PATCHES}"
# override the effect of "inherit allarch"
python allarch_package_arch_handler:prepend:imx-nxp-bsp () {
return
}
PACKAGE_ARCH:imx-nxp-bsp = "${MACHINE_SOCARCH}"