blob: 732d9255c7ca31c507b5f0983088925b00a868b7 [file] [log] [blame]
Thomas Petazzoni416fd9c2016-06-08 23:40:54 +02001comment "nvidia-driver needs a glibc toolchain"
Yann E. MORINeb690152015-02-10 21:01:12 +01002 depends on BR2_i386 || BR2_x86_64
Yann E. MORIN4ed3c042015-03-31 19:45:34 +02003 depends on !BR2_TOOLCHAIN_USES_GLIBC
Yann E. MORINeb690152015-02-10 21:01:12 +01004
5config 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. MORINeb690152015-02-10 21:01:12 +01009 help
10 The binary-only driver blob for NVidia cards.
11 This is the userland part only.
12
13 http://www.nvidia.com/
14
15if BR2_PACKAGE_NVIDIA_DRIVER
16
Yann E. MORIN4ed3c042015-03-31 19:45:34 +020017comment "nvidia-driver X.org drivers needs a modular Xorg server"
18 depends on !BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR
19
20config 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 Kuhlse3dab262017-09-13 20:45:43 +020025 select BR2_PACKAGE_XLIB_LIBX11
26 select BR2_PACKAGE_XLIB_LIBXEXT
Yann E. MORIN4ed3c042015-03-31 19:45:34 +020027 select BR2_PACKAGE_HAS_LIBGL
28 select BR2_PACKAGE_HAS_LIBEGL
Yann E. MORINc464f962016-08-23 18:26:35 +020029 select BR2_PACKAGE_HAS_LIBEGL_WAYLAND
Yann E. MORIN4ed3c042015-03-31 19:45:34 +020030 select BR2_PACKAGE_HAS_LIBGLES
31
32if BR2_PACKAGE_NVIDIA_DRIVER_XORG
33
Yann E. MORINeb690152015-02-10 21:01:12 +010034config BR2_PACKAGE_PROVIDES_LIBGL
35 default "nvidia-driver"
36
37config BR2_PACKAGE_PROVIDES_LIBEGL
38 default "nvidia-driver"
39
40config BR2_PACKAGE_PROVIDES_LIBGLES
41 default "nvidia-driver"
42
Yann E. MORINeb690152015-02-10 21:01:12 +010043config 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. MORIN4ed3c042015-03-31 19:45:34 +020054endif # BR2_PACKAGE_NVIDIA_DRIVER_XORG
55
56config BR2_PACKAGE_NVIDIA_DRIVER_CUDA
57 bool "CUDA support"
58
Yann E. MORIN2d3e97e2015-03-31 19:45:35 +020059if BR2_PACKAGE_NVIDIA_DRIVER_CUDA
60
Yann E. MORIN4ed3c042015-03-31 19:45:34 +020061config BR2_PACKAGE_NVIDIA_DRIVER_OPENCL
62 bool "OpenCL support"
Yann E. MORIN2d3e97e2015-03-31 19:45:35 +020063
64config BR2_PACKAGE_NVIDIA_DRIVER_CUDA_PROGS
65 bool "CUDA MPS server and control"
Yann E. MORIN2d3e97e2015-03-31 19:45:35 +020066 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
71endif # BR2_PACKAGE_NVIDIA_DRIVER_CUDA
Yann E. MORIN4ed3c042015-03-31 19:45:34 +020072
Yann E. MORIN7b9285a2015-02-10 21:01:14 +010073comment "nvidia kernel module needs a kernel to be built"
74 depends on !BR2_LINUX_KERNEL
75
76config BR2_PACKAGE_NVIDIA_DRIVER_MODULE
77 bool "nvidia kernel module"
78 depends on BR2_LINUX_KERNEL
Yann E. MORINe93381a2015-12-10 19:53:15 +010079 select BR2_LINUX_NEEDS_MODULES # not using kernel-module infra
Yann E. MORIN7b9285a2015-02-10 21:01:14 +010080 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. MORINeb690152015-02-10 21:01:12 +010088endif # BR2_PACKAGE_NVIDIA_DRIVER