Config.in 2.6 KB

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