Skip to contentSkip to conversation

package/mesa3d: fix --with-egl-platforms

PATCH New Bernd Kuhls 2 participants 3 messages Jun 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mesa3d: fix --with-egl-platforms

Option --with-egl-platforms was deprecated over --with-platforms:
https://cgit.freedesktop.org/mesa/mesa/commit/?h=17.1&id=7748c3f5eb1d98ca97d2cf6e516ff54a5d75130a

The deprecated option --with-egl-platforms now defaults to x11
https://cgit.freedesktop.org/mesa/mesa/tree/configure.ac?h=17.1#n1641

This default value is then used by --with-platforms
https://cgit.freedesktop.org/mesa/mesa/tree/configure.ac?h=17.1#n1659

which leads to a configure error if neither of the above options was set when looking for x11 dependencies.

From now on we need to use --with-platforms in all cases.

Fixes
http://autobuild.buildroot.net/results/775/775aad481a99926749a13c9f10012dbb9b90ead9/

---
 package/mesa3d/mesa3d.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/mesa3d/mesa3d.mk +4 -2
index c720ce2f9..a41427619 100644
@@ -161,13 +161,15 @@ MESA3D_EGL_PLATFORMS += x11
 endif
 MESA3D_CONF_OPTS += \
 	--enable-gbm \
-	--enable-egl \
-	--with-egl-platforms=$(subst $(space),$(comma),$(MESA3D_EGL_PLATFORMS))
+	--enable-egl
 else
 MESA3D_CONF_OPTS += \
 	--disable-egl
 endif
 
+MESA3D_CONF_OPTS += \
+	--with-platforms=$(subst $(space),$(comma),$(MESA3D_EGL_PLATFORMS))
+
 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_ES),y)
 MESA3D_PROVIDES += libgles
 MESA3D_CONF_OPTS += --enable-gles1 --enable-gles2
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/mesa3d: fix --with-egl-platforms

Hello,

Quoted 8 lines · Bernd Kuhls
package/mesa3d/mesa3d.mk +0 -0
index c720ce2f9..a41427619 100644
@@ -161,13 +161,15 @@ MESA3D_EGL_PLATFORMS += x11
 endif
 MESA3D_CONF_OPTS += \
 	--enable-gbm \

package/mesa3d/mesa3d.mk MESA3D_EGL_PLATFORMS += x11 · line 171

Quoted 10 lines
package/mesa3d/mesa3d.mk +3 -2
-	--enable-egl \
-	--with-egl-platforms=$(subst $(space),$(comma),$(MESA3D_EGL_PLATFORMS))
+	--enable-egl
 else
 MESA3D_CONF_OPTS += \
 	--disable-egl
 endif
 
+MESA3D_CONF_OPTS += \
+	--with-platforms=$(subst $(space),$(comma),$(MESA3D_EGL_PLATFORMS))

Then we should rename the variable to just MESA_PLATFORMS.

Also, this variable is going to be empty when BR2_PACKAGE_MESA3D_OPENGL_EGL is disabled, so we will be passing --with-platforms=

Is this correct ?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 package/mesa3d: fix --with-egl-platforms

Hi Thomas,

Am Sun, 11 Jun 2017 14:06:46 +0200 schrieb Thomas Petazzoni:

Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+MESA3D_CONF_OPTS += \
+	--with-platforms=$(subst $(space),$(comma),

$(MESA3D_EGL_PLATFORMS))

Quoted 2 lines

Then we should rename the variable to just MESA_PLATFORMS.

yes, this is planned as part of a wip patch which brings more changes to the mesa3d package:

https://github.com/bkuhls/buildroot/
commit/46d3dd4207dba1ba447a8ff4ed74e6a9538b5870

Quoted 5 lines

Also, this variable is going to be empty when BR2_PACKAGE_MESA3D_OPENGL_EGL is disabled, so we will be passing --with-platforms=

Is this correct ?

Yes.

Regards, Bernd