diff options
author | Matt Housh <jaeger@crux.ninja> | 2021-04-20 17:06:49 -0500 |
---|---|---|
committer | Matt Housh <jaeger@crux.ninja> | 2021-04-20 17:06:49 -0500 |
commit | 4e940ceff210f57d4ddc16fb59625eb432d158b3 (patch) | |
tree | bee53331b3078dfe74c7a0fc9ccd46caac993267 /nvidia-fb-32 | |
parent | d74c6d9fe5e9e67dfdc522b6cb605049425f3bdb (diff) | |
download | compat-32-4e940ceff210f57d4ddc16fb59625eb432d158b3.tar.gz compat-32-4e940ceff210f57d4ddc16fb59625eb432d158b3.tar.xz |
nvidia-fb-32: feature branch version 465.24.02, replaces nvidia-sl-32
Diffstat (limited to 'nvidia-fb-32')
-rw-r--r-- | nvidia-fb-32/.32bit | 0 | ||||
-rw-r--r-- | nvidia-fb-32/.footprint | 36 | ||||
-rw-r--r-- | nvidia-fb-32/.signature | 5 | ||||
-rw-r--r-- | nvidia-fb-32/Pkgfile | 67 | ||||
-rw-r--r-- | nvidia-fb-32/README | 44 | ||||
-rw-r--r-- | nvidia-fb-32/nvidia-makefile.patch | 39 |
6 files changed, 191 insertions, 0 deletions
diff --git a/nvidia-fb-32/.32bit b/nvidia-fb-32/.32bit new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/nvidia-fb-32/.32bit diff --git a/nvidia-fb-32/.footprint b/nvidia-fb-32/.footprint new file mode 100644 index 00000000..6ef56d5e --- /dev/null +++ b/nvidia-fb-32/.footprint @@ -0,0 +1,36 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib32/ +lrwxrwxrwx root/root usr/lib32/libEGL_nvidia.so.0 -> libEGL_nvidia.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libEGL_nvidia.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/libGLESv1_CM_nvidia.so.1 -> libGLESv1_CM_nvidia.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libGLESv1_CM_nvidia.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/libGLESv2_nvidia.so.2 -> libGLESv2_nvidia.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libGLESv2_nvidia.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/libGLX_nvidia.so.0 -> libGLX_nvidia.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libGLX_nvidia.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libOpenCL.so.1.0.0 +lrwxrwxrwx root/root usr/lib32/libcuda.so -> libcuda.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/libcuda.so.1 -> libcuda.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libcuda.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvcuvid.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-compiler.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-eglcore.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-encode.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-fbc.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-glcore.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-glsi.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-glvkspirv.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-ifr.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-ml.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/libnvidia-opencl.so -> libnvidia-opencl.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/libnvidia-opencl.so.1 -> libnvidia-opencl.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-opencl.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/libnvidia-ptxjitcompiler.so -> libnvidia-ptxjitcompiler.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/libnvidia-ptxjitcompiler.so.1 -> libnvidia-ptxjitcompiler.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-ptxjitcompiler.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/libnvidia-tls.so.465.24.02 +drwxr-xr-x root/root usr/lib32/tls/ +drwxr-xr-x root/root usr/lib32/vdpau/ +lrwxrwxrwx root/root usr/lib32/vdpau/libvdpau_nvidia.so -> libvdpau_nvidia.so.465.24.02 +lrwxrwxrwx root/root usr/lib32/vdpau/libvdpau_nvidia.so.1 -> libvdpau_nvidia.so.465.24.02 +-rwxr-xr-x root/root usr/lib32/vdpau/libvdpau_nvidia.so.465.24.02 diff --git a/nvidia-fb-32/.signature b/nvidia-fb-32/.signature new file mode 100644 index 00000000..95ce1198 --- /dev/null +++ b/nvidia-fb-32/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/compat-32.pub +RWSwxGo/zH7eXZtsueOiEJTry1gCDX5Ii4QBtbSoqycaeoGQyjrgc2cIA9HLwRSPRObl9xhIRnlZK47CibpqqrtZTaTuQ17lfgQ= +SHA256 (Pkgfile) = 362573a149dae4d023b45b8e427bb811ba13dda3d209263d80c2e93609969734 +SHA256 (.footprint) = 5c16c45147257894c77817d30091dde5d6f730f63792d86e8e328f65a4f955f1 +SHA256 (NVIDIA-Linux-x86_64-465.24.02.run) = 8d5e7021a159ac194e691afbeead19fd3a300fc4ffdb2f7dc3694b36f384ac38 diff --git a/nvidia-fb-32/Pkgfile b/nvidia-fb-32/Pkgfile new file mode 100644 index 00000000..0020ef72 --- /dev/null +++ b/nvidia-fb-32/Pkgfile @@ -0,0 +1,67 @@ +# Description: NVIDIA Linux Display Driver (short lived branch) +# URL: http://www.nvidia.com/ +# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu +# Depends on: libglvnd-32 + +name=nvidia-fb-32 +version=465.24.02 +release=1 +source=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version.run) + +build() { + sh NVIDIA-Linux-x86_64-$version.run --extract-only + cd NVIDIA-Linux-x86_64-$version/32 + + install -d -m 0755 $PKG/usr/lib32 + + # EGL and OpenGL ES libraries and config + install -m 0755 libGLESv1_CM_nvidia.so.$version $PKG/usr/lib32/ + ln -s libGLESv1_CM_nvidia.so.$version $PKG/usr/lib32/libGLESv1_CM_nvidia.so.1 + install -m 0755 libGLESv2_nvidia.so.$version $PKG/usr/lib32/ + ln -s libGLESv2_nvidia.so.$version $PKG/usr/lib32/libGLESv2_nvidia.so.2 + + # GLVND vendor implementation libraries + install -m 0755 libGLX_nvidia.so.$version $PKG/usr/lib32/ + ln -s libGLX_nvidia.so.$version $PKG/usr/lib32/libGLX_nvidia.so.0 + install -m 0755 libEGL_nvidia.so.$version $PKG/usr/lib32/ + ln -s libEGL_nvidia.so.$version $PKG/usr/lib32/libEGL_nvidia.so.0 + + # driver component libraries + install -m 0755 libnvidia-compiler.so.$version $PKG/usr/lib32/ + install -m 0755 libnvidia-eglcore.so.$version $PKG/usr/lib32/ + install -m 0755 libnvidia-glcore.so.$version $PKG/usr/lib32/ + install -m 0755 libnvidia-glsi.so.$version $PKG/usr/lib32/ + install -m 0755 libnvidia-glvkspirv.so.$version $PKG/usr/lib32/ + + # vendor VDPAU library + install -D -m 0755 libvdpau_nvidia.so.$version $PKG/usr/lib32/vdpau/libvdpau_nvidia.so.$version + ln -s libvdpau_nvidia.so.$version $PKG/usr/lib32/vdpau/libvdpau_nvidia.so.1 + ln -s libvdpau_nvidia.so.$version $PKG/usr/lib32/vdpau/libvdpau_nvidia.so + + # CUDA libraries + install -m 0755 libcuda.so.$version $PKG/usr/lib32/ + ln -s libcuda.so.$version $PKG/usr/lib32/libcuda.so.1 + ln -s libcuda.so.$version $PKG/usr/lib32/libcuda.so + install -m 0755 libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib32/ + ln -s libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib32/libnvidia-ptxjitcompiler.so.1 + ln -s libnvidia-ptxjitcompiler.so.$version $PKG/usr/lib32/libnvidia-ptxjitcompiler.so + + # OpenCL libraries and config + install -m 0755 libOpenCL.so.1.0.0 $PKG/usr/lib32/ + install -m 0755 libnvidia-opencl.so.$version $PKG/usr/lib32/ + ln -s libnvidia-opencl.so.$version $PKG/usr/lib32/libnvidia-opencl.so.1 + ln -s libnvidia-opencl.so.$version $PKG/usr/lib32/libnvidia-opencl.so + + # TLS libraries + install -m 0755 libnvidia-tls.so.$version $PKG/usr/lib32/ + install -d $PKG/usr/lib32/tls + + # monitoring and management API library + install -m 0755 libnvidia-ml.so.$version $PKG/usr/lib32/ + + # encoding/decoding libraries + install -m 0755 libnvcuvid.so.$version $PKG/usr/lib32/ + install -m 0755 libnvidia-encode.so.$version $PKG/usr/lib32/ + install -m 0755 libnvidia-ifr.so.$version $PKG/usr/lib32/ + install -m 0755 libnvidia-fbc.so.$version $PKG/usr/lib32/ +} diff --git a/nvidia-fb-32/README b/nvidia-fb-32/README new file mode 100644 index 00000000..719bfc40 --- /dev/null +++ b/nvidia-fb-32/README @@ -0,0 +1,44 @@ + +README for nvidia 1xx.xx + + + +*** NOTE for nvidia with udev *** + +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-fb-32/nvidia-makefile.patch b/nvidia-fb-32/nvidia-makefile.patch new file mode 100644 index 00000000..b334e5bd --- /dev/null +++ b/nvidia-fb-32/nvidia-makefile.patch @@ -0,0 +1,39 @@ +--- Makefile.kbuild.orig 2012-11-16 21:37:14.691678587 -0600 ++++ Makefile.kbuild 2012-11-16 21:37:39.731679795 -0600 +@@ -223,10 +223,10 @@ + .PHONY: suser-sanity-check rmmod-sanity-check build-sanity-checks + + suser-sanity-check: +- @if ! $(CONFTEST) suser_sanity_check; then exit 1; fi ++ #@if ! $(CONFTEST) suser_sanity_check; then exit 1; fi + + rmmod-sanity-check: +- @if ! $(CONFTEST) rmmod_sanity_check; then exit 1; fi ++ #@if ! $(CONFTEST) rmmod_sanity_check; then exit 1; fi + + build-sanity-checks: + @if ! $(CONFTEST) cc_version_check full_output; then exit 1; fi +@@ -256,9 +256,9 @@ + # + + module-install: suser-sanity-check module +- @mkdir -p $(MODULE_ROOT)/video; \ +- install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \ +- PATH="$(PATH):/bin:/sbin" depmod -a ++ #@mkdir -p $(MODULE_ROOT)/video; \ ++ #install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \ ++ #PATH="$(PATH):/bin:/sbin" depmod -a + + # + # This target builds, then installs, then creates device nodes and inserts +@@ -266,8 +266,8 @@ + # + + package-install: module-install rmmod-sanity-check +- @PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \ +- echo "$(MODULE_OBJECT) installed successfully."; ++ #@PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \ ++ #echo "$(MODULE_OBJECT) installed successfully."; + + # + # Build an object file suitable for further processing by the installer |