summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/conf/machine/include/mesa-pvr.inc
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2023-05-11 18:40:49 +0000
committerRyan Eatmon <reatmon@ti.com>2023-05-11 14:27:03 -0500
commit94635de40288b1ba132d873839704dd43ae96d56 (patch)
tree0d787f300aba89eaf75304f34b71b47fa49aeebf /meta-ti-bsp/conf/machine/include/mesa-pvr.inc
parent51ce439263e9de02a800c0285f2d9c3c6d259676 (diff)
downloadmeta-ti-94635de40288b1ba132d873839704dd43ae96d56.tar.gz
mesa-pvr: convert bbappend into standalone alternative provider
There are some unobvious issues with adding PVR support to Mesa via a bbappend: 1. We need to mark mesa package as machine-specific, due to differences in builds between SGX, Rogue and software-rendering 2. We also need to then mark mesa package as providing safe ABIs (EGL/GLES/GBM) in order for all generic dependent packages to not be treated as machine-specific, allowing their re-use across different machines of the same architecture But doing the above alters the upstream mesa package and changes its signatures even when not building for TI platforms, which is a Yocto Project compliance violation. In order to resolve this issue, convert Mesa bbappend, that adds PVR support, into its own standalone alternative provider, called mesa-pvr and allow selecting it with PREFERRED_PROVIDER settings. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/conf/machine/include/mesa-pvr.inc')
-rw-r--r--meta-ti-bsp/conf/machine/include/mesa-pvr.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-ti-bsp/conf/machine/include/mesa-pvr.inc b/meta-ti-bsp/conf/machine/include/mesa-pvr.inc
new file mode 100644
index 00000000..d5581315
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/mesa-pvr.inc
@@ -0,0 +1,8 @@
1PREFERRED_PROVIDER_virtual/mesa ?= "mesa-pvr"
2PREFERRED_PROVIDER_virtual/egl ?= "mesa-pvr"
3PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa-pvr"
4PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa-pvr"
5PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa-pvr"
6PREFERRED_PROVIDER_virtual/libgbm ?= "mesa-pvr"
7PREFERRED_PROVIDER_virtual/libglx ?= "mesa-pvr"
8PREFERRED_PROVIDER_virtual/libgl ?= "mesa-pvr"