aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2018-05-11 19:39:19 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2018-10-18 23:15:18 +0000
commit1e27f6df79e0664cefcc6c62e78ca71a530b603c (patch)
treec98fd34a402fedf2ae3df5d7dcf740adf84e64ac
parent33832b37ae50ffc0e55240651016d2d56ccafa63 (diff)
downloadopenembedded-core-contrib-1e27f6df79e0664cefcc6c62e78ca71a530b603c.tar.gz
openembedded-core-contrib-1e27f6df79e0664cefcc6c62e78ca71a530b603c.tar.bz2
openembedded-core-contrib-1e27f6df79e0664cefcc6c62e78ca71a530b603c.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
-rw-r--r--meta/recipes-graphics/xorg-lib/libxdamage_1.1.4.bb2
3 files changed, 31 insertions, 7 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/"
diff --git a/meta/recipes-graphics/xorg-lib/libxdamage_1.1.4.bb b/meta/recipes-graphics/xorg-lib/libxdamage_1.1.4.bb
index 6d6ffadf20..530da0569c 100644
--- a/meta/recipes-graphics/xorg-lib/libxdamage_1.1.4.bb
+++ b/meta/recipes-graphics/xorg-lib/libxdamage_1.1.4.bb
@@ -18,7 +18,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9fe101f30dd24134cf43146863241868"
DEPENDS += "virtual/libx11 xorgproto libxfixes"
PROVIDES = "xdamage"
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
PE = "1"