summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/recipes-graphics
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-01-05 14:40:20 -0800
committerMark Hatle <mark.hatle@amd.com>2023-04-10 09:03:22 -0700
commitb077838b2febffdb63ddc7fc0d70ada438be0257 (patch)
tree2244278237e67ba2b207dde708a6357064b793e4 /meta-xilinx-core/recipes-graphics
parent71d00e27f5c4593e51c38345ca28c7d698a168d6 (diff)
downloadmeta-xilinx-b077838b2febffdb63ddc7fc0d70ada438be0257.tar.gz
mesa-gl: Use of mesa-gl assumes you have libmali-xlnx
If a program wants OpenGL, but not GLE you still need files from libmali in order to compile. Add necessary links to header files in the -dev package. Since we now depend on libmali-xlnx, we also now have a machine specific package. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-graphics')
-rw-r--r--meta-xilinx-core/recipes-graphics/mesa/mesa-gl_%.bbappend14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-graphics/mesa/mesa-gl_%.bbappend b/meta-xilinx-core/recipes-graphics/mesa/mesa-gl_%.bbappend
index a4f8f43b..d322b480 100644
--- a/meta-xilinx-core/recipes-graphics/mesa/mesa-gl_%.bbappend
+++ b/meta-xilinx-core/recipes-graphics/mesa/mesa-gl_%.bbappend
@@ -1,5 +1,15 @@
1PACKAGECONFIG:append = " dri3 gallium" 1PACKAGECONFIG:append = " dri3 gallium"
2 2
3do_install:append:zynqmp () { 3# If we're using libmali-xlnx, then we need to bring it in for the KHR/khrplatform.h file
4 rm -rf ${D}${includedir}/KHR/* 4DEPENDS .= "${@' libmali-xlnx' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else ''}"
5RDEPENDS:libgl-mesa-dev .= "${@' libmali-xlnx-dev' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else ''}"
6
7do_install:append () {
8 if ${@'true' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else 'false'} ; then
9 rm -rf ${D}${includedir}/KHR/*
10 fi
5} 11}
12
13# If we require libmali-xlnx, this becomes MACHINE_ARCH specific
14DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}"
15PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}"