Thomas Petazzoni | 416fd9c | 2016-06-08 23:40:54 +0200 | [diff] [blame] | 1 | comment "nvidia-driver needs a glibc toolchain" |
Yann E. MORIN | eb69015 | 2015-02-10 21:01:12 +0100 | [diff] [blame] | 2 | depends on BR2_i386 || BR2_x86_64 |
Yann E. MORIN | 4ed3c04 | 2015-03-31 19:45:34 +0200 | [diff] [blame] | 3 | depends on !BR2_TOOLCHAIN_USES_GLIBC |
Yann E. MORIN | eb69015 | 2015-02-10 21:01:12 +0100 | [diff] [blame] | 4 | |
| 5 | config BR2_PACKAGE_NVIDIA_DRIVER |
| 6 | bool "nvidia-driver" |
| 7 | depends on BR2_i386 || BR2_x86_64 |
| 8 | depends on BR2_TOOLCHAIN_USES_GLIBC |
Yann E. MORIN | eb69015 | 2015-02-10 21:01:12 +0100 | [diff] [blame] | 9 | help |
| 10 | The binary-only driver blob for NVidia cards. |
| 11 | This is the userland part only. |
| 12 | |
| 13 | http://www.nvidia.com/ |
| 14 | |
| 15 | if BR2_PACKAGE_NVIDIA_DRIVER |
| 16 | |
Yann E. MORIN | 4ed3c04 | 2015-03-31 19:45:34 +0200 | [diff] [blame] | 17 | comment "nvidia-driver X.org drivers needs a modular Xorg server" |
| 18 | depends on !BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR |
| 19 | |
| 20 | config BR2_PACKAGE_NVIDIA_DRIVER_XORG |
| 21 | bool "X.org drivers" |
| 22 | default y |
| 23 | depends on BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR |
| 24 | select BR2_PACKAGE_MESA3D_HEADERS |
Bernd Kuhls | e3dab26 | 2017-09-13 20:45:43 +0200 | [diff] [blame] | 25 | select BR2_PACKAGE_XLIB_LIBX11 |
| 26 | select BR2_PACKAGE_XLIB_LIBXEXT |
Yann E. MORIN | 4ed3c04 | 2015-03-31 19:45:34 +0200 | [diff] [blame] | 27 | select BR2_PACKAGE_HAS_LIBGL |
| 28 | select BR2_PACKAGE_HAS_LIBEGL |
Yann E. MORIN | c464f96 | 2016-08-23 18:26:35 +0200 | [diff] [blame] | 29 | select BR2_PACKAGE_HAS_LIBEGL_WAYLAND |
Yann E. MORIN | 4ed3c04 | 2015-03-31 19:45:34 +0200 | [diff] [blame] | 30 | select BR2_PACKAGE_HAS_LIBGLES |
| 31 | |
| 32 | if BR2_PACKAGE_NVIDIA_DRIVER_XORG |
| 33 | |
Yann E. MORIN | eb69015 | 2015-02-10 21:01:12 +0100 | [diff] [blame] | 34 | config BR2_PACKAGE_PROVIDES_LIBGL |
| 35 | default "nvidia-driver" |
| 36 | |
| 37 | config BR2_PACKAGE_PROVIDES_LIBEGL |
| 38 | default "nvidia-driver" |
| 39 | |
| 40 | config BR2_PACKAGE_PROVIDES_LIBGLES |
| 41 | default "nvidia-driver" |
| 42 | |
Yann E. MORIN | eb69015 | 2015-02-10 21:01:12 +0100 | [diff] [blame] | 43 | config BR2_PACKAGE_NVIDIA_DRIVER_PRIVATE_LIBS |
| 44 | bool "Install private libraries" |
| 45 | help |
| 46 | Two libraries require special agreement with NVidia to |
| 47 | develop code linking to those libraries: libnvidia-ifr.so |
| 48 | and libnvidia-fbc.so (to grab and encode an OpenGL buffer or |
| 49 | an X framebuffer.) |
| 50 | |
| 51 | Say 'y' here if you plan on running a program that uses |
| 52 | those private libraries. |
| 53 | |
Yann E. MORIN | 4ed3c04 | 2015-03-31 19:45:34 +0200 | [diff] [blame] | 54 | endif # BR2_PACKAGE_NVIDIA_DRIVER_XORG |
| 55 | |
| 56 | config BR2_PACKAGE_NVIDIA_DRIVER_CUDA |
| 57 | bool "CUDA support" |
| 58 | |
Yann E. MORIN | 2d3e97e | 2015-03-31 19:45:35 +0200 | [diff] [blame] | 59 | if BR2_PACKAGE_NVIDIA_DRIVER_CUDA |
| 60 | |
Yann E. MORIN | 4ed3c04 | 2015-03-31 19:45:34 +0200 | [diff] [blame] | 61 | config BR2_PACKAGE_NVIDIA_DRIVER_OPENCL |
| 62 | bool "OpenCL support" |
Yann E. MORIN | 2d3e97e | 2015-03-31 19:45:35 +0200 | [diff] [blame] | 63 | |
| 64 | config BR2_PACKAGE_NVIDIA_DRIVER_CUDA_PROGS |
| 65 | bool "CUDA MPS server and control" |
Yann E. MORIN | 2d3e97e | 2015-03-31 19:45:35 +0200 | [diff] [blame] | 66 | help |
| 67 | Say 'y' here if you need to run more than one program |
| 68 | doing CUDA at the same time. The MPS server will be |
| 69 | launched automatically when needed. |
| 70 | |
| 71 | endif # BR2_PACKAGE_NVIDIA_DRIVER_CUDA |
Yann E. MORIN | 4ed3c04 | 2015-03-31 19:45:34 +0200 | [diff] [blame] | 72 | |
Yann E. MORIN | 7b9285a | 2015-02-10 21:01:14 +0100 | [diff] [blame] | 73 | comment "nvidia kernel module needs a kernel to be built" |
| 74 | depends on !BR2_LINUX_KERNEL |
| 75 | |
| 76 | config BR2_PACKAGE_NVIDIA_DRIVER_MODULE |
| 77 | bool "nvidia kernel module" |
| 78 | depends on BR2_LINUX_KERNEL |
Yann E. MORIN | e93381a | 2015-12-10 19:53:15 +0100 | [diff] [blame] | 79 | select BR2_LINUX_NEEDS_MODULES # not using kernel-module infra |
Yann E. MORIN | 7b9285a | 2015-02-10 21:01:14 +0100 | [diff] [blame] | 80 | help |
| 81 | Build the nvidia.ko kernel module. |
| 82 | |
| 83 | If CUDA support (above) is set, and the target is x86_64, then |
| 84 | this will also build the nvidia-uvm.ko kernel module, which |
| 85 | provides Unified Memory access to the GPU and CPU memories for |
| 86 | CUDA programs. |
| 87 | |
Yann E. MORIN | eb69015 | 2015-02-10 21:01:12 +0100 | [diff] [blame] | 88 | endif # BR2_PACKAGE_NVIDIA_DRIVER |