package/mesa3d: add support for gallium i915 driver
authorJames Hilliard <james.hilliard1@gmail.com>
Sat, 8 Feb 2020 07:42:50 +0000 (00:42 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 9 Feb 2020 10:04:51 +0000 (11:04 +0100)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[yann.morin.1998@free.fr: also guard comment with x86 dependency]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/mesa3d/Config.in
package/mesa3d/mesa3d.mk

index 3d72c60d1ff6482edd6fd6687636c6f7bbed72d5..9965b0e9727e93485eba2f9d0c514b7e92bea878 100644 (file)
@@ -113,6 +113,19 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO
        help
          Mesa driver for Freedreno GPUs.
 
+config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915
+       bool "Gallium i915 driver"
+       depends on BR2_i386 || BR2_x86_64
+       depends on !BR2_PACKAGE_MESA3D_DRI_DRIVER_I915
+       select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+       select BR2_PACKAGE_LIBDRM_INTEL
+       help
+         Support for i915-based Intel GPUs.
+
+comment "Gallium i915: Only one i915 provider can be built"
+       depends on BR2_i386 || BR2_x86_64
+       depends on BR2_PACKAGE_MESA3D_DRI_DRIVER_I915
+
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS
        bool "Gallium iris driver"
        depends on BR2_i386 || BR2_x86_64
index 1a18cf3c583e6a4e87fa5f350450e2324522561b..7fb07ae05c36dfe1966438c44250272e5a2f45e8 100644 (file)
@@ -74,6 +74,7 @@ endif
 #Gallium Drivers
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV)  += etnaviv
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO) += freedreno
+MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915)     += i915
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS)     += iris
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO)    += kmsro
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA)     += lima