summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2018-05-11 19:39:19 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2019-02-08 23:10:04 +0000
commitaa4cf041db35f4b3ae5ed334643d946a6d19eb62 (patch)
tree79eea5aaa284122f5df4a59da38cec29e3b3de1c
parentbba1addacea18e19caf57ccc66b963a3d688a34e (diff)
downloadopenembedded-core-contrib-aa4cf041db35f4b3ae5ed334643d946a6d19eb62.tar.gz
openembedded-core-contrib-aa4cf041db35f4b3ae5ed334643d946a6d19eb62.tar.bz2
openembedded-core-contrib-aa4cf041db35f4b3ae5ed334643d946a6d19eb62.zip
mesa: enable more drivers
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta/recipes-graphics/mesa/mesa-native_18.1.9.bb18
-rw-r--r--meta/recipes-graphics/mesa/nativesdk-mesa_18.1.9.bb18
2 files changed, 30 insertions, 6 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-native_18.1.9.bb b/meta/recipes-graphics/mesa/mesa-native_18.1.9.bb
index ec35168720..4a03cb7c88 100644
--- a/meta/recipes-graphics/mesa/mesa-native_18.1.9.bb
+++ b/meta/recipes-graphics/mesa/mesa-native_18.1.9.bb
@@ -23,10 +23,22 @@ EXTRANATIVEPATH += "chrpath-native"
inherit autotools pkgconfig gettext native
-EXTRA_OECONF = "--with-platforms=drm --disable-glx --disable-dri3 --with-dri-drivers=swrast --with-gallium-drivers=virgl"
-
-PACKAGECONFIG ??= "gbm"
+DRIDRIVERS = "swrast,radeon,r200,nouveau,i965,i915"
+# drop r300, swr and radeonsi, because they need llvm
+# configure: error: --enable-llvm is required when building r300, radeonsi
+# freedreno needs libdrm_freedreno
+# configure: error: Package requirements (libdrm >= 2.4.74 libdrm_freedreno >= 2.4.74) were not met:
+# vc4 needs libdrm_vc4
+# configure: error: Package requirements (libdrm >= 2.4.69 libdrm_vc4 >= 2.4.69) were not met:
+GALLIUM_DRIDRIVERS = "i915,nouveau,r600,svga,swrast,virgl,etnaviv,imx"
+
+EXTRA_OECONF = "--with-platforms=drm,x11 --with-dri-drivers=${DRIDRIVERS} --with-gallium-drivers=${GALLIUM_DRIDRIVERS}"
+
+PACKAGECONFIG ??= "dri gbm glx"
PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
+PACKAGECONFIG[glx] = "--enable-glx,--disable-glx, xorgproto libxdamage libxfixes xext"
+PACKAGECONFIG[dri] = "--enable-dri,--disable-dri, xorgproto libdrm"
+PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence"
# because we cannot rely on the fact that all apps will use pkgconfig,
# make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
diff --git a/meta/recipes-graphics/mesa/nativesdk-mesa_18.1.9.bb b/meta/recipes-graphics/mesa/nativesdk-mesa_18.1.9.bb
index b34f0785d1..a116ea56ca 100644
--- a/meta/recipes-graphics/mesa/nativesdk-mesa_18.1.9.bb
+++ b/meta/recipes-graphics/mesa/nativesdk-mesa_18.1.9.bb
@@ -22,10 +22,22 @@ DEPENDS = "nativesdk-zlib nativesdk-libdrm nativesdk-expat"
inherit autotools pkgconfig gettext nativesdk
-EXTRA_OECONF = "--with-platforms=drm --disable-glx --disable-dri3 --with-dri-drivers=swrast --with-gallium-drivers=virgl"
-
-PACKAGECONFIG ??= "gbm"
+DRIDRIVERS = "swrast,radeon,r200,nouveau,i965,i915"
+# drop r300, swr and radeonsi, because they need llvm
+# configure: error: --enable-llvm is required when building r300, radeonsi
+# freedreno needs libdrm_freedreno
+# configure: error: Package requirements (libdrm >= 2.4.74 libdrm_freedreno >= 2.4.74) were not met:
+# vc4 needs libdrm_vc4
+# configure: error: Package requirements (libdrm >= 2.4.69 libdrm_vc4 >= 2.4.69) were not met:
+GALLIUM_DRIDRIVERS = "i915,nouveau,r600,svga,swrast,virgl,etnaviv,imx"
+
+EXTRA_OECONF = "--with-platforms=drm,x11 --with-dri-drivers=${DRIDRIVERS} --with-gallium-drivers=${GALLIUM_DRIDRIVERS}"
+
+PACKAGECONFIG ??= "dri gbm glx"
PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
+PACKAGECONFIG[glx] = "--enable-glx,--disable-glx, xorgproto libxdamage libxfixes xext"
+PACKAGECONFIG[dri] = "--enable-dri,--disable-dri, xorgproto libdrm"
+PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence"
FILES_${PN} += "${libdir}/dri/"