package/nvidia-driver: build the kernel module
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 10 Feb 2015 20:01:14 +0000 (21:01 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 21 Feb 2015 22:28:51 +0000 (23:28 +0100)
commit7b9285a8748cb4bd6f301603ef688eb6be025a39
treed85809459614efe76f31f3b0550c214d6dc803fc
parent13d761486a2d119894466d9821348cd87e1e53d9
package/nvidia-driver: build the kernel module

Add option to build the nvidia.ko module. If CUDA is enabled on x86_64,
also build the nvidia-uvm.ko kernel module (for Unified Memory access),
which is required by the CUDA user-land library.

Substancially inspired by the corresponding Gentoo ebuild:
    http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-340.32.ebuild?revision=1.2&view=markup

[Thomas:
  - add quotes when using $(TARGET_CC) and other variables, since they
    can have spaces in their values
  - remove space after opening parenthesis and before closing parenthesis.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nvidia-driver/Config.in
package/nvidia-driver/nvidia-driver.mk