summaryrefslogtreecommitdiff
path: root/recipes/mesa/mesa-dri.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mesa/mesa-dri.inc')
-rw-r--r--recipes/mesa/mesa-dri.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/mesa/mesa-dri.inc b/recipes/mesa/mesa-dri.inc
new file mode 100644
index 0000000000..33258c5729
--- /dev/null
+++ b/recipes/mesa/mesa-dri.inc
@@ -0,0 +1,8 @@
+DEPENDS += "dri2proto expat libdrm makedepend-native"
+
+FILESPATHPKG =. "mesa-${PV}:mesa:"
+
+# most of our targets do not have DRI so will use mesa-xlib
+DEFAULT_PREFERENCE = "-1"
+
+EXTRA_OECONF += " --with-driver=dri --with-dri-drivers=swrast,${MACHINE_DRI_MODULES}"