package/x11r7/xserver_xorg-server: Udev kms support depends on libdrm
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 17 May 2014 11:28:38 +0000 (13:28 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 17 May 2014 21:25:04 +0000 (23:25 +0200)
Fixes
http://autobuild.buildroot.net/results/18c/18c554d148fc00f85690c1638976dd6d0d7ff219/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk

index 284d6022cfd835de5ebeef3309dedd6702e78598..cae3ba03dbb7c65c4bc794e5f30da16bdd03bd07 100644 (file)
@@ -127,6 +127,13 @@ endif
 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 XSERVER_XORG_SERVER_DEPENDENCIES += udev
 XSERVER_XORG_SERVER_CONF_OPT += --enable-config-udev
+# udev kms support depends on libdrm
+ifeq ($(BR2_PACKAGE_LIBDRM),y)
+XSERVER_XORG_SERVER_DEPENDENCIES += libdrm
+XSERVER_XORG_SERVER_CONF_OPT += --enable-config-udev-kms
+else
+XSERVER_XORG_SERVER_CONF_OPT += --disable-config-udev-kms
+endif
 else
 ifeq ($(BR2_PACKAGE_DBUS),y)
 XSERVER_XORG_SERVER_DEPENDENCIES += dbus