package/mesa3d: add Radeon SI support
authorMichał Kalbarczyk <fazibear@gmail.com>
Fri, 27 Apr 2018 13:49:15 +0000 (15:49 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 28 Apr 2018 13:33:21 +0000 (15:33 +0200)
Signed-off-by: Michał Kalbarczyk <fazibear@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mesa3d/Config.in
package/mesa3d/mesa3d.mk

index bd3d050e29cc4e7f5371f9aef17df235c43ada2b..1984e4f11cf4d02f85b9dd0a73c66382176f38a8 100644 (file)
@@ -114,6 +114,26 @@ comment "R600 driver needs a uClibc or glibc toolchain when llvm is enabled"
        depends on BR2_PACKAGE_MESA3D_LLVM
        depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
 
+config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
+       bool "Gallium Radeon SI driver"
+       depends on BR2_i386 || BR2_x86_64
+       depends on !BR2_PACKAGE_MESA3D_LLVM || \
+               (BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
+                       BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
+       select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+       select BR2_PACKAGE_LIBDRM_AMDGPU
+       select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
+       select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
+       select BR2_PACKAGE_MESA3D_NEEDS_XA
+       help
+         Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
+
+# Radeon SI needs libelf when Mesa3D is built with LLVM support
+# musl is not currently compatible with elfutils
+comment "Radeon SI driver needs a uClibc or glibc toolchain when llvm is enabled"
+       depends on BR2_PACKAGE_MESA3D_LLVM
+       depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
+
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA
        bool "Gallium vmware svga driver"
        depends on BR2_i386 || BR2_x86_64
index e93490c0426b77825328b385f8e2d66716295563..9857b597cff47d549c15cc28ff297ea06e6b41bc 100644 (file)
@@ -80,6 +80,7 @@ endif
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV)  += etnaviv imx
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)  += nouveau
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600)     += r600
+MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) += radeonsi
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA)     += svga
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST)   += swrast
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4)      += vc4