summaryrefslogtreecommitdiffstats
path: root/package/amd-catalyst/Config.in
diff options
context:
space:
mode:
authorRomain Perier <romain.perier@free-electrons.com>2016-08-23 14:19:47 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-23 18:00:40 +0200
commit689ae6e404c8d54a600cb4c62976a9987c08c022 (patch)
tree87c6b3574fec86ba64f7dec9db577dfc2e4e0a48 /package/amd-catalyst/Config.in
parent1091f0978c6808292ad8d088e82c4cd4c118ea99 (diff)
downloadbuildroot-689ae6e404c8d54a600cb4c62976a9987c08c022.tar.gz
buildroot-689ae6e404c8d54a600cb4c62976a9987c08c022.zip
package/amd-catalyst: Add AMD proprietary graphic stack support
This commits adds support for the AMD Catalyst Linux driver 15.9 (15.201.1151). It includes the fglrx kernel module with various fixes to make it work with at least Linux kernel 4.4 LTS, the userspace OpenGL stack and the xorg driver module. Signed-off-by: Romain Perier <romain.perier@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: - fixup whitespace issues noticed by Yann. - register AMD_CATALYST_PREPARE_MODULE as a post-patch hook rather than calling it during the configure step, also suggested by Yann.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/amd-catalyst/Config.in')
-rw-r--r--package/amd-catalyst/Config.in54
1 files changed, 54 insertions, 0 deletions
diff --git a/package/amd-catalyst/Config.in b/package/amd-catalyst/Config.in
new file mode 100644
index 0000000000..1578324aac
--- /dev/null
+++ b/package/amd-catalyst/Config.in
@@ -0,0 +1,54 @@
+comment "amd-catalyst needs a glibc toolchain"
+ depends on BR2_i386 || BR2_x86_64
+ depends on !BR2_TOOLCHAIN_USES_GLIBC
+
+config BR2_PACKAGE_AMD_CATALYST
+ bool "amd-catalyst"
+ depends on BR2_i386 || BR2_x86_64
+ depends on BR2_TOOLCHAIN_USES_GLIBC
+ help
+ The binary-only driver blob for AMD cards.
+ This driver supports AMD Radeon HD 5xxx and newer graphics
+ cards.
+
+ http://www.amd.com/
+
+if BR2_PACKAGE_AMD_CATALYST
+
+comment "amd-catalyst X.org drivers needs a modular Xorg server <= 1.17"
+ depends on !BR2_PACKAGE_XORG7 \
+ || !BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR \
+ || !BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19
+
+config BR2_PACKAGE_AMD_CATALYST_XORG
+ bool "X.org drivers"
+ default y
+ depends on BR2_PACKAGE_XORG7
+ depends on BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR
+ depends on BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19
+ select BR2_PACKAGE_XSERVER_XORG_SERVER_AIGLX
+ select BR2_PACKAGE_ACPID # runtime
+ select BR2_PACKAGE_XLIB_LIBX11 # runtime
+ select BR2_PACKAGE_XLIB_LIBXEXT # runtime
+ select BR2_PACKAGE_XLIB_LIBXCOMPOSITE # runtime
+ # This package does not have standard GL headers
+ select BR2_PACKAGE_MESA3D_HEADERS
+ select BR2_PACKAGE_HAS_LIBGL
+
+if BR2_PACKAGE_AMD_CATALYST_XORG
+
+config BR2_PACKAGE_PROVIDES_LIBGL
+ default "amd-catalyst"
+
+endif
+
+comment "amd-catalyst kernel module needs a kernel to be built"
+ depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_AMD_CATALYST_MODULE
+ bool "fglrx kernel module"
+ depends on BR2_LINUX_KERNEL
+ help
+ Builds and install the fglrx kernel module
+
+endif # BR2_PACKAGE_AMD_CATALYST
OpenPOWER on IntegriCloud