summaryrefslogtreecommitdiff
path: root/nvidia-sl
diff options
context:
space:
mode:
authorMatt Housh <jaeger@crux.ninja>2018-08-11 13:46:07 -0500
committerMatt Housh <jaeger@crux.ninja>2018-08-11 13:46:07 -0500
commit35881809c26f86243888b58fc66fc12d0d359c0a (patch)
tree3e3007ceb6fa219032d6c8bd3864368d95d0802f /nvidia-sl
parentcb363308adfe57040b8c235b5fdd22ca85cf9d27 (diff)
downloadopt-35881809c26f86243888b58fc66fc12d0d359c0a.tar.gz
opt-35881809c26f86243888b58fc66fc12d0d359c0a.tar.xz
nvidia-sl: converted to GLVND
Diffstat (limited to 'nvidia-sl')
-rw-r--r--nvidia-sl/.footprint51
-rw-r--r--nvidia-sl/.md5sum1
-rw-r--r--nvidia-sl/.signature7
-rw-r--r--nvidia-sl/10-nvidia-drm-outputclass.conf13
-rw-r--r--nvidia-sl/Pkgfile197
-rw-r--r--nvidia-sl/README37
-rwxr-xr-xnvidia-sl/pre-install20
7 files changed, 192 insertions, 134 deletions
diff --git a/nvidia-sl/.footprint b/nvidia-sl/.footprint
index e6306fa74..8996d14ba 100644
--- a/nvidia-sl/.footprint
+++ b/nvidia-sl/.footprint
@@ -2,6 +2,9 @@ drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/OpenCL/
drwxr-xr-x root/root etc/OpenCL/vendors/
-rw-r--r-- root/root etc/OpenCL/vendors/nvidia.icd
+drwxr-xr-x root/root etc/vulkan/
+drwxr-xr-x root/root etc/vulkan/icd.d/
+-rw-r--r-- root/root etc/vulkan/icd.d/nvidia_icd.json
drwxr-xr-x root/root lib/
drwxr-xr-x root/root lib/modules/
drwxr-xr-x root/root lib/modules/<kernel-version>/
@@ -15,35 +18,53 @@ 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-cuda-mps-control
+-rwxr-xr-x root/root usr/bin/nvidia-cuda-mps-server
-rwxr-xr-x root/root usr/bin/nvidia-debugdump
+-rwsr-xr-x root/root usr/bin/nvidia-modprobe
-rwxr-xr-x root/root usr/bin/nvidia-persistenced
-rwxr-xr-x root/root usr/bin/nvidia-settings
-rwxr-xr-x root/root usr/bin/nvidia-smi
-rwxr-xr-x root/root usr/bin/nvidia-xconfig
drwxr-xr-x root/root usr/lib/
--rwxr-xr-x root/root usr/lib/libGL.so.396.51
-lrwxrwxrwx root/root usr/lib/libGL_so_1_2_nvidia -> libGL.so.396.51
-lrwxrwxrwx root/root usr/lib/libOpenCL.so -> libOpenCL.so.1.0.0
+lrwxrwxrwx root/root usr/lib/libEGL_nvidia.so.0 -> libEGL_nvidia.so.
+-rwxr-xr-x root/root usr/lib/libEGL_nvidia.so.396.51
+lrwxrwxrwx root/root usr/lib/libGLESv1_CM_nvidia.so.1 -> libGLESv1_CM_nvidia.so.396.51
+-rwxr-xr-x root/root usr/lib/libGLESv1_CM_nvidia.so.396.51
+lrwxrwxrwx root/root usr/lib/libGLESv2_nvidia.so.2 -> libGLESv2_nvidia.so.396.51
+-rwxr-xr-x root/root usr/lib/libGLESv2_nvidia.so.396.51
+lrwxrwxrwx root/root usr/lib/libGLX_nvidia.so.0 -> libGLX_nvidia.so.396.51
+-rwxr-xr-x root/root usr/lib/libGLX_nvidia.so.396.51
-rwxr-xr-x root/root usr/lib/libOpenCL.so.1.0.0
+lrwxrwxrwx root/root usr/lib/libcuda.so -> libcuda.so.396.51
+lrwxrwxrwx root/root usr/lib/libcuda.so.1 -> libcuda.so.396.51
-rwxr-xr-x root/root usr/lib/libcuda.so.396.51
-lrwxrwxrwx root/root usr/lib/libnvcuvid.so -> libnvcuvid.so.396.51
-lrwxrwxrwx root/root usr/lib/libnvcuvid.so.1 -> libnvcuvid.so.396.51
-rwxr-xr-x root/root usr/lib/libnvcuvid.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-cfg.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-compiler.so.396.51
+-rwxr-xr-x root/root usr/lib/libnvidia-eglcore.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-encode.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-fatbinaryloader.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-fbc.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-glcore.so.396.51
+-rwxr-xr-x root/root usr/lib/libnvidia-glsi.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-glvkspirv.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-gtk2.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-gtk3.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-ifr.so.396.51
-lrwxrwxrwx root/root usr/lib/libnvidia-ml.so -> libnvidia-ml.so.396.51
-lrwxrwxrwx root/root usr/lib/libnvidia-ml.so.1 -> libnvidia-ml.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-ml.so.396.51
+lrwxrwxrwx root/root usr/lib/libnvidia-opencl.so -> libnvidia-opencl.so.396.51
+lrwxrwxrwx root/root usr/lib/libnvidia-opencl.so.1 -> libnvidia-opencl.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-opencl.so.396.51
+lrwxrwxrwx root/root usr/lib/libnvidia-ptxjitcompiler.so -> libnvidia-ptxjitcompiler.so.396.51
+lrwxrwxrwx root/root usr/lib/libnvidia-ptxjitcompiler.so.1 -> libnvidia-ptxjitcompiler.so.396.51
+-rwxr-xr-x root/root usr/lib/libnvidia-ptxjitcompiler.so.396.51
-rwxr-xr-x root/root usr/lib/libnvidia-tls.so.396.51
+drwxr-xr-x root/root usr/lib/nvidia/
+drwxr-xr-x root/root usr/lib/nvidia/xorg/
+lrwxrwxrwx root/root usr/lib/nvidia/xorg/libglx.so -> libglx.so.396.51
+lrwxrwxrwx root/root usr/lib/nvidia/xorg/libglx.so.1 -> libglx.so.396.51
+-rwxr-xr-x root/root usr/lib/nvidia/xorg/libglx.so.396.51
drwxr-xr-x root/root usr/lib/tls/
-rwxr-xr-x root/root usr/lib/tls/libnvidia-tls.so.396.51
drwxr-xr-x root/root usr/lib/vdpau/
@@ -55,19 +76,17 @@ drwxr-xr-x root/root usr/lib/xorg/modules/
drwxr-xr-x root/root usr/lib/xorg/modules/drivers/
-rwxr-xr-x root/root usr/lib/xorg/modules/drivers/nvidia_drv.so
drwxr-xr-x root/root usr/lib/xorg/modules/extensions/
--rwxr-xr-x root/root usr/lib/xorg/modules/extensions/libglx.so.396.51
-lrwxrwxrwx root/root usr/lib/xorg/modules/extensions/libglx_so_nvidia -> libglx.so.396.51
--rwxr-xr-x root/root usr/lib/xorg/modules/libnvidia-wfb.so.396.51
drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/X11/
+drwxr-xr-x root/root usr/share/X11/xorg.conf.d/
+-rw-r--r-- root/root usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
drwxr-xr-x root/root usr/share/applications/
-rw-r--r-- root/root usr/share/applications/nvidia-settings.desktop
-drwxr-xr-x root/root usr/share/man/
-drwxr-xr-x root/root usr/share/man/man1/
--rw-r--r-- root/root usr/share/man/man1/nvidia-persistenced.1.gz
--rw-r--r-- root/root usr/share/man/man1/nvidia-settings.1.gz
--rw-r--r-- root/root usr/share/man/man1/nvidia-smi.1.gz
--rw-r--r-- root/root usr/share/man/man1/nvidia-xconfig.1.gz
+drwxr-xr-x root/root usr/share/glvnd/
+drwxr-xr-x root/root usr/share/glvnd/egl_vendor.d/
+-rw-r--r-- root/root usr/share/glvnd/egl_vendor.d/10_nvidia.json
drwxr-xr-x root/root usr/share/nvidia/
-rw-r--r-- root/root usr/share/nvidia/nvidia-application-profiles-396.51-key-documentation
+-rw-r--r-- root/root usr/share/nvidia/nvidia-application-profiles-396.51-rc
drwxr-xr-x root/root usr/share/pixmaps/
-rw-r--r-- root/root usr/share/pixmaps/nvidia-settings.png
diff --git a/nvidia-sl/.md5sum b/nvidia-sl/.md5sum
index a5462e66f..7fd236725 100644
--- a/nvidia-sl/.md5sum
+++ b/nvidia-sl/.md5sum
@@ -1,2 +1,3 @@
+2097834b5b5f1fca0b82dd5518e11cb6 10-nvidia-drm-outputclass.conf
4511024cc556d0c6e7c467b6789524e2 90-nvidia-uvm.rules
42b1a62681dff47f82d66bf9e9406915 NVIDIA-Linux-x86_64-396.51.run
diff --git a/nvidia-sl/.signature b/nvidia-sl/.signature
index 4f346139a..dcb523a89 100644
--- a/nvidia-sl/.signature
+++ b/nvidia-sl/.signature
@@ -1,6 +1,7 @@
untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/ccNqh/rE0uN98EtdwFvYRnoD53qnvx8bFy8vR35yWHo1N1/ewa7YOEc/R9F11r1Rvx/AwMyppD8ESy1r7fvjQ0=
-SHA256 (Pkgfile) = 5a9b6fcf7ed785f5fe59b1587c2139352c3dc322106b44d3af20cdf4cc327a4a
-SHA256 (.footprint) = 2561d965cfa81bef93c2f749a5bf30a9a6a3f979daef55c0e7bed2fffc087599
+RWSE3ohX2g5d/fdtvbf2ABnwqOHMs0GNIBxNPm4gfnugfoOrlpxEImPeStjvuPtHEZBCiSPq1/Sz1D97mTLGJN7+sUiskRmbsQM=
+SHA256 (Pkgfile) = d6e26c29e9452547467153901ddbcc5f5f2a9eb8b76832e3f53e7b5b88584f3a
+SHA256 (.footprint) = 65cef3c81e4d854708b815c541d38d7b9bc885a2f14024c75b3766427d43c6e0
SHA256 (NVIDIA-Linux-x86_64-396.51.run) = 6add8c3782bdf276b4a5a5bcea102ceff8e90cf3fc2439dde9d5e60d557ac0d6
SHA256 (90-nvidia-uvm.rules) = c35c61cebf5bf9a112ac06539bdc670a388afa4b50a7f8223a114fbeafedb140
+SHA256 (10-nvidia-drm-outputclass.conf) = 4a72c70d7e348102f8c159b3f58973218bc740de1d86830f7cbee1c40744929c
diff --git a/nvidia-sl/10-nvidia-drm-outputclass.conf b/nvidia-sl/10-nvidia-drm-outputclass.conf
new file mode 100644
index 000000000..ec56317bc
--- /dev/null
+++ b/nvidia-sl/10-nvidia-drm-outputclass.conf
@@ -0,0 +1,13 @@
+# This xorg.conf.d configuration snippet configures the X server to
+# automatically load the nvidia X driver when it detects a device driven by the
+# nvidia-drm.ko kernel module. Please note that this only works on Linux kernels
+# version 3.9 or higher with CONFIG_DRM enabled, and only if the nvidia-drm.ko
+# kernel module is loaded before the X server is started.
+
+Section "OutputClass"
+ Identifier "nvidia"
+ MatchDriver "nvidia-drm"
+ Driver "nvidia"
+ ModulePath "/usr/lib/nvidia/xorg"
+ ModulePath "/usr/lib/xorg/modules"
+EndSection
diff --git a/nvidia-sl/Pkgfile b/nvidia-sl/Pkgfile
index 2bb8867c6..d9f27137d 100644
--- a/nvidia-sl/Pkgfile
+++ b/nvidia-sl/Pkgfile
@@ -1,88 +1,127 @@
-# Description: nVIDIA Linux Display Driver (short lived branch version)
+# Description: NVIDIA Linux Display Driver (short lived branch)
# URL: http://www.nvidia.com/
# Maintainer: Matt Housh, jaeger at crux dot ninja
-# Depends on: gtk gl-select
+# Depends on: gtk gtk3 libglvnd
name=nvidia-sl
version=396.51
-release=1
+release=2
source=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version.run \
- 90-nvidia-uvm.rules)
+ 90-nvidia-uvm.rules 10-nvidia-drm-outputclass.conf)
build() {
- sh NVIDIA-Linux-x86_64-$version.run --extract-only
- cd NVIDIA-Linux-x86_64-$version
-
- # libraries
- install -d $PKG/usr/lib/{tls,vdpau}
- install -m 0755 libGL.so.$version $PKG/usr/lib
- install -m 0755 libOpenCL.so.1.0.0 $PKG/usr/lib
- install -m 0755 libcuda.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-cfg.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-compiler.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-encode.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-fbc.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-glcore.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-gtk2.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-gtk3.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-ifr.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-ml.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-opencl.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-tls.so.$version $PKG/usr/lib
- 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
- install -m 0755 libnvidia-fatbinaryloader.so.$version $PKG/usr/lib
- install -m 0755 libnvidia-glvkspirv.so.$version $PKG/usr/lib
-
- 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 libnvidia-ml.so.$version $PKG/usr/lib/libnvidia-ml.so.1
- ln -s libnvidia-ml.so.$version $PKG/usr/lib/libnvidia-ml.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,share/man/man1}
- install -m 0755 nvidia-{debugdump,persistenced,settings,smi,xconfig} \
- $PKG/usr/bin
- install -m 0644 nvidia-{persistenced,settings,smi,xconfig}.1.gz \
- $PKG/usr/share/man/man1
-
- # desktop file and icon
- install -d $PKG/usr/share/{applications,pixmaps}
- sed -i 's:__UTILS_PATH__:/usr/bin: ; s:__PIXMAP_PATH__:/usr/share/pixmaps:' nvidia-settings.desktop
- install -m 0644 nvidia-settings.desktop $PKG/usr/share/applications
- install -m 0644 nvidia-settings.png $PKG/usr/share/pixmaps
-
- # additional symlinks required by gl-select
- ln -s libGL.so.$version $PKG/usr/lib/libGL_so_1_2_nvidia
- ln -s libglx.so.$version $PKG/usr/lib/xorg/modules/extensions/libglx_so_nvidia
-
- # 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
-
- # nvidia-settings registry key file
- install -D -m 0644 nvidia-application-profiles-$version-key-documentation \
- $PKG/usr/share/nvidia/nvidia-application-profiles-$version-key-documentation
-
- # kernel modules
- cd kernel
- IGNORE_CC_MISMATCH=1 make module
- install -d -m 0755 $PKG/lib/modules/`uname -r`/extra
- install -m 0644 *.ko $PKG/lib/modules/`uname -r`/extra/
+ sh NVIDIA-Linux-x86_64-$version.run --extract-only
+ cd NVIDIA-Linux-x86_64-$version
+
+ # X driver and GLX extension
+ install -d $PKG/usr/lib/xorg/modules/{drivers,extensions}
+ install -m 0755 nvidia_drv.so $PKG/usr/lib/xorg/modules/drivers/
+ install -d -m 0755 $PKG/usr/lib/nvidia/xorg
+ install -m 0755 libglx.so.$version $PKG/usr/lib/nvidia/xorg/
+ ln -s libglx.so.$version $PKG/usr/lib/nvidia/xorg/libglx.so
+ ln -s libglx.so.$version $PKG/usr/lib/nvidia/xorg/libglx.so.1
+
+ # EGL and OpenGL ES libraries and config
+ install -d $PKG/usr/lib
+ install -m 0755 libGLESv1_CM_nvidia.so.$version $PKG/usr/lib/
+ ln -s libGLESv1_CM_nvidia.so.$version $PKG/usr/lib/libGLESv1_CM_nvidia.so.1
+ install -m 0755 libGLESv2_nvidia.so.$version $PKG/usr/lib/
+ ln -s libGLESv2_nvidia.so.$version $PKG/usr/lib/libGLESv2_nvidia.so.2
+ install -D -m 0644 10_nvidia.json $PKG/usr/share/glvnd/egl_vendor.d/10_nvidia.json
+
+ # wayland EGL library and config
+ #install -d $PKG/usr/share/egl/egl_external_platform.d
+ #install -m 0755 libnvidia-egl-wayland.so.1.0.2 $PKG/usr/lib/
+ #install -m 0644 10_nvidia_wayland.json $PKG/usr/share/egl/egl_external_platform.d/
+
+ # GLVND vendor implementation libraries
+ install -m 0755 libGLX_nvidia.so.$version $PKG/usr/lib/
+ ln -s libGLX_nvidia.so.$version $PKG/usr/lib/libGLX_nvidia.so.0
+ install -m 0755 libEGL_nvidia.so.$version $PKG/usr/lib/
+ ln -s libEGL_nvidia.so.$verison $PKG/usr/lib/libEGL_nvidia.so.0
+
+ # vulkan ICD config
+ install -d $PKG/etc/vulkan/icd.d
+ sed -i -e 's,__NV_VK_ICD__,libGLX_nvidia.so.0,g' nvidia_icd.json.template
+ install -m 0644 nvidia_icd.json.template $PKG/etc/vulkan/icd.d/nvidia_icd.json
+
+ # driver component libraries
+ install -m 0755 libnvidia-cfg.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-compiler.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-eglcore.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-glcore.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-glsi.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-glvkspirv.so.$version $PKG/usr/lib/
+
+ # vendor VDPAU library
+ install -D -m 0755 libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so.$version
+ 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
+
+ # CUDA libraries
+ install -m 0755 libcuda.so.$version $PKG/usr/lib/
+ ln -s libcuda.so.$version $PKG/usr/lib/libcuda.so.1
+ ln -s libcuda.so.$version $PKG/usr/lib/libcuda.so
+ install -m 0755 libnvidia-fatbinaryloader.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib/
+ ln -s libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib/libnvidia-ptxjitcompiler.so.1
+ ln -s libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib/libnvidia-ptxjitcompiler.so
+
+ # OpenCL libraries and config
+ install -m 0755 libOpenCL.so.1.0.0 $PKG/usr/lib/
+ install -m 0755 libnvidia-opencl.so.$version $PKG/usr/lib/
+ ln -s libnvidia-opencl.so.$version $PKG/usr/lib/libnvidia-opencl.so.1
+ ln -s libnvidia-opencl.so.$version $PKG/usr/lib/libnvidia-opencl.so
+ install -D -m 0644 nvidia.icd $PKG/etc/OpenCL/vendors/nvidia.icd
+
+ # CUDA MPI applications
+ install -d $PKG/usr/bin
+ install -m 0755 nvidia-cuda-mps-control $PKG/usr/bin/
+ install -m 0755 nvidia-cuda-mps-server $PKG/usr/bin/
+
+ # TLS libraries
+ install -m 0755 libnvidia-tls.so.$version $PKG/usr/lib/
+ install -d $PKG/usr/lib/tls
+ install -m 0755 tls/libnvidia-tls.so.$version $PKG/usr/lib/tls/
+
+ # monitoring and management API library
+ install -m 0755 libnvidia-ml.so.$version $PKG/usr/lib/
+
+ # applications
+ install -m 4755 nvidia-modprobe $PKG/usr/bin/
+ install -m 0755 nvidia-{xconfig,settings,smi,debugdump,persistenced} \
+ $PKG/usr/bin/
+
+ # nvidia-settings UI libraries
+ install -m 0755 libnvidia-gtk{2,3}.so.$version $PKG/usr/lib/
+
+ # encoding/decoding libraries
+ install -m 0755 libnvcuvid.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-encode.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-ifr.so.$version $PKG/usr/lib/
+ install -m 0755 libnvidia-fbc.so.$version $PKG/usr/lib/
+
+ # X driver config
+ install -D -m 0644 $SRC/10-nvidia-drm-outputclass.conf \
+ $PKG/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
+
+ # application profile keys and documentation
+ install -d -m 0755 $PKG/usr/share/nvidia
+ install -m 0644 nvidia-application-profiles-$version-rc $PKG/usr/share/nvidia/
+ install -m 0644 nvidia-application-profiles-$version-key-documentation $PKG/usr/share/nvidia/
+
+ # desktop file and icon
+ install -d $PKG/usr/share/{applications,pixmaps}
+ sed -i -e 's,__UTILS_PATH__,/usr/bin,' -e 's,__PIXMAP_PATH__,/usr/share/pixmaps,' nvidia-settings.desktop
+ install -m 0644 nvidia-settings.desktop $PKG/usr/share/applications/
+ install -m 0644 nvidia-settings.png $PKG/usr/share/pixmaps/
+
+ # nvidia-uvm udev rules file
+ install -D -m 0644 $SRC/90-nvidia-uvm.rules $PKG/lib/udev/rules.d/90-nvidia-uvm.rules
+
+ # kernel modules
+ cd kernel
+ IGNORE_CC_MISMATCH=1 make module
+ install -d $PKG/lib/modules/$(uname -r)/extra
+ install -m 0644 *.ko $PKG/lib/modules/$(uname -r)/extra/
}
diff --git a/nvidia-sl/README b/nvidia-sl/README
index 719bfc407..180ad697d 100644
--- a/nvidia-sl/README
+++ b/nvidia-sl/README
@@ -1,5 +1,5 @@
-README for nvidia 1xx.xx
+README for nvidia 1xx.xx+
@@ -7,38 +7,3 @@ README for nvidia 1xx.xx
If using udev, add your user to the "video" group to be able to
use the nvidia devices required for 3d to function properly.
-
-
-*** NOTE for users of legacy hardware ***
-
-Before installing this port, take a look at the Legacy GPU list on
-nvidia's site: http://www.nvidia.com/object/IO_32667.html
-
-If your hardware is supported by either the 1.0-96xx or 1.0-71xx
-driver series, install the corresponding port instead of this one.
-
-
-
-POST-INSTALL
-
-Use opt/gl-select from ports to select the correct gl/glx
-libraries and extensions like so:
-
- # gl-select use nvidia
-
-
-POST-REMOVE
-
-Use opt/gl-select from ports to revert to the xorg gl/glx libraries
-and extensions like so:
-
- # gl-select use xorg
-
-
-When UPGRADING/DOWNGRADING the nvidia port (where the version changes),
-use gl-select to revert to xorg and then re-select nvidia in order to
-refresh the libGLcore and libGL symlinks, like so:
-
- # prt-get update nvidia
- # gl-select use xorg; gl-select use nvidia
-
diff --git a/nvidia-sl/pre-install b/nvidia-sl/pre-install
new file mode 100755
index 000000000..ffb223830
--- /dev/null
+++ b/nvidia-sl/pre-install
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# check for root privileges needed for gl-select
+if [ ! $(id -u) -eq 0 ]; then
+ echo "root privileges needed to run this pre-install script!"
+ exit 1
+fi
+
+# is gl-select available?
+if [ -x /usr/bin/gl-select ]; then
+ printf '%b' "\033[33;1mNOTE: With the introduction of GLVND, gl-select is no
+longer needed. This pre-install script will reset gl-select
+to its default xorg setting if needed. It is recommended that
+gl-select be uninstalled after installing libglvnd and
+upgrading mesa3d.\033[0m\n"
+ # is nvidia currently selected?
+ if /usr/bin/gl-select status | grep -q 'nvidia.*is selected'; then
+ /usr/bin/gl-select use xorg
+ fi
+fi

Generated by cgit