Commit f5fbb12d authored by Bernd Kuhls's avatar Bernd Kuhls Committed by Thomas Petazzoni
Browse files

package/mesa3d: If udev is not present, sysfs is used as a replacement

parent 34c416d5
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@ menuconfig BR2_PACKAGE_MESA3D
	select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XORG7
	select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XORG7
	select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XORG7
	depends on BR2_PACKAGE_HAS_UDEV
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
	help
@@ -118,12 +117,8 @@ if BR2_PACKAGE_MESA3D_DRIVER

comment "Additional API Support"

comment "OpenGL EGL needs udev /dev management"
	depends on !BR2_PACKAGE_HAS_UDEV

config BR2_PACKAGE_MESA3D_OPENGL_EGL
	bool "OpenGL EGL"
	depends on BR2_PACKAGE_HAS_UDEV
	select BR2_PACKAGE_HAS_LIBEGL
	help
	  Use the Khronos EGL APIs. EGL is a window manager for OpenGL applications
@@ -146,6 +141,5 @@ config BR2_PACKAGE_PROVIDES_LIBGLES

endif # BR2_PACKAGE_MESA3D

comment "mesa3d needs udev /dev management and a toolchain w/ C++, NPTL"
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_HAS_UDEV
comment "mesa3d needs a toolchain w/ C++, NPTL"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
+7 −2
Original line number Diff line number Diff line
@@ -28,6 +28,13 @@ MESA3D_DEPENDENCIES += libgcrypt
MESA3D_CONF_OPTS += --with-sha1=libgcrypt
endif

ifeq ($(BR2_PACKAGE_HAS_LIBUDEV),y)
MESA3D_DEPENDENCIES += udev
MESA3D_CONF_OPTS += --disable-sysfs
else
MESA3D_CONF_OPTS += --enable-sysfs
endif

ifeq ($(BR2_PACKAGE_XORG7),y)
MESA3D_DEPENDENCIES += \
	xproto_xf86driproto \
@@ -108,8 +115,6 @@ MESA3D_CONF_OPTS += --enable-opengl

ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
MESA3D_PROVIDES += libegl
# egl depends on gbm, gbm depends on udev
MESA3D_DEPENDENCIES += udev
MESA3D_EGL_PLATFORMS = drm
ifeq ($(BR2_PACKAGE_WAYLAND),y)
MESA3D_DEPENDENCIES += wayland