package/x11-video-drivers: do not select, but depends on mesa3d
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 17 Apr 2014 16:04:15 +0000 (18:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 17 Apr 2014 20:55:33 +0000 (22:55 +0200)
Currently, X.Org drivers that need mesa3d forcibly select it.

We'll soon switch mesa3d to being a provider of the full OpenGL virtual
package, to come in a later patch.

It is bad practice to select a provider, as it can generate configuration
inconsistencies.

So, switch all X.Org video driver that need mesa3d to actually depend on
it, rather than forcibly select it.

To be noted: xf86-video-mach64 already used a 'depends on' rather
than a 'select'.

At the same time, move the intel drivers dependencies to the top.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Cc: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/x11r7/xdriver_xf86-video-ati/Config.in
package/x11r7/xdriver_xf86-video-glint/Config.in
package/x11r7/xdriver_xf86-video-intel/Config.in
package/x11r7/xdriver_xf86-video-mach64/Config.in
package/x11r7/xdriver_xf86-video-mga/Config.in
package/x11r7/xdriver_xf86-video-openchrome/Config.in
package/x11r7/xdriver_xf86-video-r128/Config.in
package/x11r7/xdriver_xf86-video-savage/Config.in
package/x11r7/xdriver_xf86-video-sis/Config.in
package/x11r7/xdriver_xf86-video-tdfx/Config.in
package/x11r7/xdriver_xf86-video-vmware/Config.in

index d8bb0292cdd2a5afbae2e5375fde9115ca1ffba5..a555fa37174059a7f7c64eff9b240449626c7d80 100644 (file)
@@ -1,8 +1,8 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI
        bool "xf86-video-ati"
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_LIBDRM        if BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
        select BR2_PACKAGE_LIBDRM_RADEON if BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
-       select BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_GLPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
@@ -13,3 +13,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          ATI video driver
+
+comment "xf86-video-ati needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index bd92788830e29f9c4a5bc1033b6d507ec4489c7e..acae30b0b0813645ecbe5d6a20dcf51dfb119f34 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_GLINT
        bool "xf86-video-glint"
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_LIBDRM
-       select BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_GLPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
@@ -13,3 +13,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_GLINT
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          GLINT/Permedia video driver
+
+comment "xf86-video-glint needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index 83b714a433901478a3367a9e629fb18a3efd88dd..69a9e78638cb0e682f2433e13c7692c596790b38 100644 (file)
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL
        bool "xf86-video-intel"
+       depends on (BR2_i386 || BR2_x86_64)
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
        select BR2_PACKAGE_XPROTO_RENDERPROTO
@@ -7,7 +9,9 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL
        select BR2_PACKAGE_XLIB_LIBPCIACCESS
        select BR2_PACKAGE_LIBDRM
        select BR2_PACKAGE_LIBDRM_INTEL
-       select BR2_PACKAGE_MESA3D
-       depends on (BR2_i386 || BR2_x86_64)
        help
          Intel video driver
+
+comment "xf86-video-intel needs mesa3d"
+       depends on (BR2_i386 || BR2_x86_64)
+       depends on !BR2_PACKAGE_MESA3D
index 674071c816d36607d51571bc498be4ed5aa06b6d..42535e445de08b2d4d0e2fa23b76d29dda760524 100644 (file)
@@ -9,3 +9,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_MACH64
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          mach64 video driver
+
+comment "xf86-video-mach64 needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index 2fc38375ddfc676f0774251d3e0e4d7103135301..a504ec0c25017cf72236dff7347602085c8ee97a 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_MGA
        bool "xf86-video-mga"
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_LIBDRM
-       select BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_GLPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
@@ -12,3 +12,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_MGA
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          Matrox video driver
+
+comment "xf86-video-mga needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index 24b74bc2f0c5e5c04422ff608cb2da611839b6b5..db27eefcb8aa019928678d1b15665b0d1feb45bc 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_OPENCHROME
        bool "xf86-video-openchrome"
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_LIBDRM
-       select BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XLIB_LIBX11
        select BR2_PACKAGE_XLIB_LIBXCOMPOSITE
        select BR2_PACKAGE_XLIB_LIBXVMC
@@ -14,3 +14,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_OPENCHROME
        help
          Openchrome, A free and Open Source video driver for the VIA/S3G
          UniChrome and UniChrome Pro graphics chipsets.
+
+comment "xf86-video-openchrome needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index 07e314283c1a32eaddf07618ddb73267f9153f67..647156fb05d8267a56451f02c65c1b2ccb701d68 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_R128
        bool "xf86-video-r128"
-       select BR2_PACKAGE_MESA3D
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
        select BR2_PACKAGE_XPROTO_RENDERPROTO
@@ -8,3 +8,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_R128
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          R128 video driver
+
+comment "xf86-video-r128 needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index 93a731e6398493b0fc784d62ca9cf1154f4eb9b5..77dde8761982526cab250e7c1cf2528f466c1443 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_SAVAGE
        bool "xf86-video-savage"
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_LIBDRM
-       select BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
        select BR2_PACKAGE_XPROTO_RENDERPROTO
@@ -11,3 +11,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_SAVAGE
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          S3 Savage video driver
+
+comment "xf86-video-savage needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index e1845052f282e3055fa73d26faa4a5755a27454a..3c86bd403e8e3cad96b3868f63d6d0b27876b4c2 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_SIS
        bool "xf86-video-sis"
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_LIBDRM
-       select BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
        select BR2_PACKAGE_XPROTO_RENDERPROTO
@@ -13,3 +13,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_SIS
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          SiS and XGI video driver
+
+comment "xf86-video-sis needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index 811eba2592b3f46ba075f6ff26a668faea413793..96a69ba25ca978dcbbc0fe7e563d4e19a88320b8 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_TDFX
        bool "xf86-video-tdfx"
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_LIBDRM
-       select BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
        select BR2_PACKAGE_XPROTO_RENDERPROTO
@@ -11,3 +11,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_TDFX
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          3Dfx video driver
+
+comment "xf86-video-tdfx needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D
index a4d2052a811df094f6b48cb0aa841b50875db0a9..2e6b24d5957210fbf4ad50da7c27f4e512e4f23e 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_VMWARE
        bool "xf86-video-vmware"
-       select BR2_PACKAGE_MESA3D
+       depends on BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
@@ -10,3 +10,6 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_VMWARE
        select BR2_PACKAGE_XPROTO_XPROTO
        help
          VMware SVGA video driver
+
+comment "xf86-video-vmware needs mesa3d"
+       depends on !BR2_PACKAGE_MESA3D