ports/opt (3.0): nvidia: added uvm kernel module and udev rules, opencl lib symlink (thanks pedja)
commit fe7e754c7128a2027052275a0369b337f0c2dbe1 Author: Matt Housh <jaeger@crux.nu> Date: Sun Jun 15 23:08:23 2014 -0500 nvidia: added uvm kernel module and udev rules, opencl lib symlink (thanks pedja) diff --git a/nvidia/.footprint b/nvidia/.footprint index 33d97e3..6956e24 100644 --- a/nvidia/.footprint +++ b/nvidia/.footprint @@ -6,7 +6,11 @@ drwxr-xr-x root/root lib/ drwxr-xr-x root/root lib/modules/ drwxr-xr-x root/root lib/modules/<kernel-version>/ drwxr-xr-x root/root lib/modules/<kernel-version>/extra/ +-rw-r--r-- root/root lib/modules/<kernel-version>/extra/nvidia-uvm.ko -rw-r--r-- root/root lib/modules/<kernel-version>/extra/nvidia.ko +drwxr-xr-x root/root lib/udev/ +drwxr-xr-x root/root lib/udev/rules.d/ +-rw-r--r-- root/root lib/udev/rules.d/90-nvidia-uvm.rules drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/nvidia-debugdump @@ -17,6 +21,7 @@ drwxr-xr-x root/root usr/bin/ drwxr-xr-x root/root usr/lib/ -rwxr-xr-x root/root usr/lib/libGL.so.331.79 lrwxrwxrwx root/root usr/lib/libGL_so_1_2_nvidia -> libGL.so.331.79 +lrwxrwxrwx root/root usr/lib/libOpenCL.so -> libOpenCL.so.1.0.0 -rwxr-xr-x root/root usr/lib/libOpenCL.so.1.0.0 -rwxr-xr-x root/root usr/lib/libcuda.so.331.79 lrwxrwxrwx root/root usr/lib/libnvcuvid.so -> libnvcuvid.so.331.79 diff --git a/nvidia/.md5sum b/nvidia/.md5sum index f20c56d..4605145 100644 --- a/nvidia/.md5sum +++ b/nvidia/.md5sum @@ -1 +1,2 @@ +4511024cc556d0c6e7c467b6789524e2 90-nvidia-uvm.rules 1f0708b913403b4f5b494b0daf0415eb NVIDIA-Linux-x86_64-331.79-no-compat32.run diff --git a/nvidia/90-nvidia-uvm.rules b/nvidia/90-nvidia-uvm.rules new file mode 100644 index 0000000..3df8a3a --- /dev/null +++ b/nvidia/90-nvidia-uvm.rules @@ -0,0 +1 @@ +KERNEL=="nvidia_uvm", RUN+="/bin/bash -c '/bin/mknod -m 660 /dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0; /bin/chgrp video /dev/nvidia-uvm'" diff --git a/nvidia/Pkgfile b/nvidia/Pkgfile index fe11243..156cb0c 100644 --- a/nvidia/Pkgfile +++ b/nvidia/Pkgfile @@ -5,8 +5,9 @@ name=nvidia version=331.79 -release=1 -source=(ftp://download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version-no-compat32.run) +release=2 +source=(ftp://download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version-no-compat32.run \ + 90-nvidia-uvm.rules) build() { sh NVIDIA-Linux-x86_64-$version-no-compat32.run --extract-only @@ -29,19 +30,21 @@ build() { install -m 0755 libnvcuvid.so.$version $PKG/usr/lib install -m 0755 tls/libnvidia-tls.so.$version $PKG/usr/lib/tls install -m 0755 libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau - + ln -s libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so.1 ln -s libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so ln -s libnvcuvid.so.$version $PKG/usr/lib/libnvcuvid.so.1 ln -s libnvcuvid.so.$version $PKG/usr/lib/libnvcuvid.so + ln -s libOpenCL.so.1.0.0 $PKG/usr/lib/libOpenCL.so + # xorg driver/extensions install -d $PKG/usr/lib/xorg/modules/{drivers,extensions} install -m 0755 nvidia_drv.so $PKG/usr/lib/xorg/modules/drivers install -m 0755 libglx.so.$version $PKG/usr/lib/xorg/modules/extensions install -m 0755 libnvidia-wfb.so.$version $PKG/usr/lib/xorg/modules - + # nvidia programs amd man-pages install -d $PKG/usr/{bin,man/man1} install -m 0755 nvidia-{debugdump,persistenced,settings,smi,xconfig} \ @@ -62,8 +65,17 @@ build() { # opencl icd file install -m 0644 -D nvidia.icd $PKG/etc/OpenCL/vendors/nvidia.icd + # nvidia-uvm module udev rule + install -d $PKG/lib/udev/rules.d + install -m 0644 $SRC/90-nvidia-uvm.rules $PKG/lib/udev/rules.d/90-nvidia-uvm.rules + # kernel module cd kernel IGNORE_CC_MISMATCH=1 make module install -D -m 0644 nvidia.ko $PKG/lib/modules/`uname -r`/extra/nvidia.ko + + # nvidia-uvm module + cd uvm + IGNORE_CC_MISMATCH=1 make module + install -D -m 0644 nvidia-uvm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-uvm.ko }
participants (1)
-
crux@crux.nu