Skip to contentSkip to conversation

package/mesa3d: rename MESA3D_EGL_PLATFORMS to MESA3D_PLATFORMS

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

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 package/mesa3d: rename MESA3D_EGL_PLATFORMS to MESA3D_PLATFORMS

No code changes, this patch prepares for updates to platform handling after upstream deprecated --with-egl-platforms in favour of --with-platforms
https://cgit.freedesktop.org/mesa/mesa/commit/?h=17.1&id=7748c3f5eb1d98ca97d2cf6e516ff54a5d75130a

---
v3. no changes
v2: renamed variable to MESA3D_PLATFORMS (Thomas)

    original patch: http://patchwork.ozlabs.org/patch/774339/
 package/mesa3d/mesa3d.mk | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
package/mesa3d/mesa3d.mk +7 -7
index 288406352..ac27b0f07 100644
@@ -144,25 +144,25 @@ endif
 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
 MESA3D_PROVIDES += libegl
 ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
-MESA3D_EGL_PLATFORMS = drm
+MESA3D_PLATFORMS = drm
 else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4),y)
-MESA3D_EGL_PLATFORMS = drm
+MESA3D_PLATFORMS = drm
 else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV),y)
-MESA3D_EGL_PLATFORMS = drm
+MESA3D_PLATFORMS = drm
 else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL),y)
-MESA3D_EGL_PLATFORMS = drm
+MESA3D_PLATFORMS = drm
 endif
 ifeq ($(BR2_PACKAGE_WAYLAND),y)
 MESA3D_DEPENDENCIES += wayland
-MESA3D_EGL_PLATFORMS += wayland
+MESA3D_PLATFORMS += wayland
 endif
 ifeq ($(BR2_PACKAGE_XORG7),y)
-MESA3D_EGL_PLATFORMS += x11
+MESA3D_PLATFORMS += x11
 endif
 MESA3D_CONF_OPTS += \
 	--enable-gbm \
 	--enable-egl \
-	--with-egl-platforms=$(subst $(space),$(comma),$(MESA3D_EGL_PLATFORMS))
+	--with-egl-platforms=$(subst $(space),$(comma),$(MESA3D_PLATFORMS))
 else
 MESA3D_CONF_OPTS += \
 	--disable-egl
Signature · 1 line
2.11.0
#1 lore raw

PATCH v3 2/2 package/mesa3d: always pass --with-platforms

If --with-platforms is not used mesa3d defaults to x11:
https://cgit.freedesktop.org/mesa/mesa/tree/configure.ac?h=17.1#n1641
https://cgit.freedesktop.org/mesa/mesa/tree/configure.ac?h=17.1#n1659

This will break configure when x11 is not needed because the defconfig has no mesa3d drivers enabled. To solve the problem we always pass --with-platforms, even with empty values and also for non-egl builds.

Fixes
http://autobuild.buildroot.net/results/d16/d16b39d16b5bee5c09b1e996941a275a4337c3c1/

---
v3: set MESA3D_PLATFORMS also for non-egl builds
v2: split from initial patch http://patchwork.ozlabs.org/patch/774339/

 package/mesa3d/mesa3d.mk | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
package/mesa3d/mesa3d.mk +7 -4
index ac27b0f07..04a7d13b9 100644
@@ -141,8 +141,6 @@ endef
 MESA3D_POST_INSTALL_STAGING_HOOKS += MESA3D_REMOVE_OPENGL_HEADERS
 endif
 
-ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
-MESA3D_PROVIDES += libegl
 ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
 MESA3D_PLATFORMS = drm
 else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4),y)
@@ -159,10 +157,15 @@ endif
 ifeq ($(BR2_PACKAGE_XORG7),y)
 MESA3D_PLATFORMS += x11
 endif
+
+MESA3D_CONF_OPTS += \
+	--with-platforms=$(subst $(space),$(comma),$(MESA3D_PLATFORMS))
+
+ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
+MESA3D_PROVIDES += libegl
 MESA3D_CONF_OPTS += \
 	--enable-gbm \
-	--enable-egl \
-	--with-egl-platforms=$(subst $(space),$(comma),$(MESA3D_PLATFORMS))
+	--enable-egl
 else
 MESA3D_CONF_OPTS += \
 	--disable-egl
Signature · 1 line
2.11.0
#2 lore raw

PATCH v3 1/2 package/mesa3d: rename MESA3D_EGL_PLATFORMS to MESA3D_PLATFORMS

In reply to Bernd Kuhls

Hello,

Quoted 10 lines · Bernd Kuhls

No code changes, this patch prepares for updates to platform handling after upstream deprecated --with-egl-platforms in favour of --with-platforms
https://cgit.freedesktop.org/mesa/mesa/commit/?h=17.1&id=7748c3f5eb1d98ca97d2cf6e516ff54a5d75130a

---
v3. no changes
v2: renamed variable to MESA3D_PLATFORMS (Thomas)

    original patch: http://patchwork.ozlabs.org/patch/774339/

Both applied. Thanks!

Thomas

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