> diff --git
a/meta-ti-bsp/recipes-graphics/mesa/mesa-gl_22.0.%.bbappend
> b/meta-ti-bsp/recipes-graphics/mesa/mesa-gl_22.0.%.bbappend
> new file mode 100644
> index 00000000..912e9e9d
> --- /dev/null
> +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-gl_22.0.%.bbappend
> @@ -0,0 +1 @@
> +require ${@bb.utils.contains
<mailto:${@bb.utils.contains>_any('PREFERRED_PROVIDER_virtual/gpudriver',
> 'ti-img-rogue-driver ti-sgx-ddk-km', 'pvr-mesa.inc', '', d)}
> diff --git
a/meta-ti-bsp/recipes-graphics/mesa/mesa_22.0.%.bbappend
> b/meta-ti-bsp/recipes-graphics/mesa/mesa_22.0.%.bbappend
> new file mode 100644
> index 00000000..912e9e9d
> --- /dev/null
> +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa_22.0.%.bbappend
> @@ -0,0 +1 @@
> +require ${@bb.utils.contains
<mailto:${@bb.utils.contains>_any('PREFERRED_PROVIDER_virtual/gpudriver',
> 'ti-img-rogue-driver ti-sgx-ddk-km', 'pvr-mesa.inc', '', d)}
> diff --git a/meta-ti-bsp/recipes-graphics/mesa/pvr-mesa.inc
> b/meta-ti-bsp/recipes-graphics/mesa/pvr-mesa.inc
> new file mode 100644
> index 00000000..17edee8d
> --- /dev/null
> +++ b/meta-ti-bsp/recipes-graphics/mesa/pvr-mesa.inc
> @@ -0,0 +1,40 @@
> +# PowerVR Graphics require several patches that have not made
their way
> +# upstream yet. This allows us to build the shims we need without
> completely
> +# clobbering mesa.
> +
> +BRANCH = "powervr/kirkstone/22.0"
> +
> +SRC_URI = " \
> + git://
>
gitlab.freedesktop.org/StaticRocket/mesa.git;protocol=https;branch=${BRANCH}
>
<<http://gitlab.freedesktop.org/StaticRocket/mesa.git;protocol=https;branch=$%7BBRANCH%7D>>
> \
> +
>
file://0001-meson.build-check-for-all-linux-host_os-combinations.patch
<file://0001-meson.build-check-for-all-linux-host_os-combinations.patch/>
\
> + file://0002-meson.build-make-TLS-ELF-optional.patch
<file://0002-meson.build-make-tls-elf-optional.patch/> \
> +
file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch
<file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch/> \
> +
file://0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch
<file://0001-futex.h-define-__nr_futex-if-it-does-not-exist.patch/> \
> + file://0001-util-format-Check-for-NEON-before-using-it.patch
<file://0001-util-format-check-for-neon-before-using-it.patch/> \
> +
>
file://0001-Revert-egl-wayland-deprecate-drm_handle_format-and-d.patch
<file://0001-revert-egl-wayland-deprecate-drm_handle_format-and-d.patch/>
\
> +"
>
Having here all the patches in oe-core will stop working if someone
changes
the main recipe.
This already happens in the master branch of oe-core.
IMO If these patches are needed they should be merged on the ti
fork branch.