summaryrefslogtreecommitdiffstats
path: root/package/mesa3d
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2017-06-17 09:19:57 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-17 15:08:02 +0200
commit3edaa9d24c52d45fe6f408c90d6875f63c47fe64 (patch)
tree323aaa21237631db5440d32786dcb169aab70a73 /package/mesa3d
parentb2cbef3281b874f2cd9a215a5078e7fc4985da53 (diff)
downloadbuildroot-3edaa9d24c52d45fe6f408c90d6875f63c47fe64.tar.gz
buildroot-3edaa9d24c52d45fe6f408c90d6875f63c47fe64.zip
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/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/mesa3d')
-rw-r--r--package/mesa3d/mesa3d.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index ac27b0f078..04a7d13b97 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -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
OpenPOWER on IntegriCloud