pakur.sh 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. cd NVIDIA-Linux-x86_64-$surum
  2. # X driver and GLX extension
  3. install -d $PKG/usr/lib/xorg/modules/{drivers,extensions}
  4. install -m 0755 nvidia_drv.so $PKG/usr/lib/xorg/modules/drivers/
  5. install -d -m 0755 $PKG/usr/lib/nvidia/xorg
  6. install -m 0755 libglxserver_nvidia.so.$surum $PKG/usr/lib/nvidia/xorg/
  7. ln -s libglxserver_nvidia.so.$surum $PKG/usr/lib/nvidia/xorg/libglxserver_nvidia.so
  8. ln -s libglxserver_nvidia.so.$surum $PKG/usr/lib/nvidia/xorg/libglxserver_nvidia.so.1
  9. # EGL and OpenGL ES libraries and config
  10. install -d $PKG/usr/lib
  11. install -m 0755 libGLESv1_CM_nvidia.so.$surum $PKG/usr/lib/
  12. ln -s libGLESv1_CM_nvidia.so.$surum $PKG/usr/lib/libGLESv1_CM_nvidia.so.1
  13. install -m 0755 libGLESv2_nvidia.so.$surum $PKG/usr/lib/
  14. ln -s libGLESv2_nvidia.so.$surum $PKG/usr/lib/libGLESv2_nvidia.so.2
  15. install -D -m 0644 10_nvidia.json $PKG/usr/share/glvnd/egl_vendor.d/10_nvidia.json
  16. # wayland EGL library and config
  17. #install -d $PKG/usr/share/egl/egl_external_platform.d
  18. #install -m 0755 libnvidia-egl-wayland.so.1.0.2 $PKG/usr/lib/
  19. #install -m 0644 10_nvidia_wayland.json $PKG/usr/share/egl/egl_external_platform.d/
  20. # GLVND vendor implementation libraries
  21. install -m 0755 libGLX_nvidia.so.$surum $PKG/usr/lib/
  22. ln -s libGLX_nvidia.so.$surum $PKG/usr/lib/libGLX_nvidia.so.0
  23. install -m 0755 libEGL_nvidia.so.$surum $PKG/usr/lib/
  24. ln -s libEGL_nvidia.so.$surum $PKG/usr/lib/libEGL_nvidia.so.0
  25. # vulkan ICD config
  26. install -d $PKG/etc/vulkan/icd.d
  27. install -m 0644 nvidia_icd.json $PKG/etc/vulkan/icd.d/
  28. # driver component libraries
  29. install -m 0755 libnvidia-cfg.so.$surum $PKG/usr/lib/
  30. install -m 0755 libnvidia-compiler.so.$surum $PKG/usr/lib/
  31. install -m 0755 libnvidia-eglcore.so.$surum $PKG/usr/lib/
  32. install -m 0755 libnvidia-glcore.so.$surum $PKG/usr/lib/
  33. install -m 0755 libnvidia-glsi.so.$surum $PKG/usr/lib/
  34. install -m 0755 libnvidia-glvkspirv.so.$surum $PKG/usr/lib/
  35. install -m 0755 libnvidia-rtcore.so.$surum $PKG/usr/lib/
  36. install -m 0755 libnvidia-cbl.so.$surum $PKG/usr/lib/
  37. # vendor VDPAU library
  38. install -D -m 0755 libvdpau_nvidia.so.$surum $PKG/usr/lib/vdpau/libvdpau_nvidia.so.$surum
  39. ln -s libvdpau_nvidia.so.$surum $PKG/usr/lib/vdpau/libvdpau_nvidia.so.1
  40. ln -s libvdpau_nvidia.so.$surum $PKG/usr/lib/vdpau/libvdpau_nvidia.so
  41. # CUDA libraries
  42. install -m 0755 libcuda.so.$surum $PKG/usr/lib/
  43. ln -s libcuda.so.$surum $PKG/usr/lib/libcuda.so.1
  44. ln -s libcuda.so.$surum $PKG/usr/lib/libcuda.so
  45. install -m 0755 libnvidia-ptxjitcompiler.so.$surum $PKG/usr/lib/
  46. ln -s libnvidia-ptxjitcompiler.so.$surum $PKG/usr/lib/libnvidia-ptxjitcompiler.so.1
  47. ln -s libnvidia-ptxjitcompiler.so.$surum $PKG/usr/lib/libnvidia-ptxjitcompiler.so
  48. # OpenCL libraries and config
  49. install -m 0755 libOpenCL.so.1.0.0 $PKG/usr/lib/
  50. install -m 0755 libnvidia-opencl.so.$surum $PKG/usr/lib/
  51. ln -s libnvidia-opencl.so.$surum $PKG/usr/lib/libnvidia-opencl.so.1
  52. ln -s libnvidia-opencl.so.$surum $PKG/usr/lib/libnvidia-opencl.so
  53. install -D -m 0644 nvidia.icd $PKG/etc/OpenCL/vendors/nvidia.icd
  54. # CUDA MPI applications
  55. install -d $PKG/usr/bin
  56. install -m 0755 nvidia-cuda-mps-control $PKG/usr/bin/
  57. install -m 0755 nvidia-cuda-mps-server $PKG/usr/bin/
  58. # TLS libraries
  59. install -m 0755 libnvidia-tls.so.$surum $PKG/usr/lib/
  60. # monitoring and management API library
  61. install -m 0755 libnvidia-ml.so.$surum $PKG/usr/lib/
  62. ln -s libnvidia-ml.so.$surum $PKG/usr/lib/libnvidia-ml.so.1
  63. ln -s libnvidia-ml.so.$surum $PKG/usr/lib/libnvidia-ml.so
  64. # applications
  65. install -m 4755 nvidia-modprobe $PKG/usr/bin/
  66. install -m 0755 nvidia-{xconfig,settings,smi,debugdump,persistenced} \
  67. $PKG/usr/bin/
  68. # nvidia-settings UI libraries
  69. install -m 0755 libnvidia-gtk{2,3}.so.$surum $PKG/usr/lib/
  70. # encoding/decoding libraries
  71. install -m 0755 libnvcuvid.so.$surum $PKG/usr/lib/
  72. install -m 0755 libnvidia-encode.so.$surum $PKG/usr/lib/
  73. install -m 0755 libnvidia-ifr.so.$surum $PKG/usr/lib/
  74. install -m 0755 libnvidia-fbc.so.$surum $PKG/usr/lib/
  75. # OptiX ray tracing engine
  76. install -m 0755 libnvoptix.so.$surum $PKG/usr/lib/
  77. ln -s libnvoptix.so.$surum $PKG/usr/lib/libnvoptix.so.1
  78. ln -s libnvoptix.so.$surum $PKG/usr/lib/libnvoptix.so
  79. # Optical Flow library
  80. install -m 0755 libnvidia-opticalflow.so.$surum $PKG/usr/lib/
  81. ln -s libnvidia-opticalflow.so.$surum $PKG/usr/lib/libnvidia-opticalflow.so.1
  82. ln -s libnvidia-opticalflow.so.$surum $PKG/usr/lib/libnvidia-opticalflow.so
  83. # NGX library
  84. install -m 0755 libnvidia-ngx.so.$surum $PKG/usr/lib/
  85. ln -s libnvidia-ngx.so.$surum $PKG/usr/lib/libnvidia-ngx.so.1
  86. ln -s libnvidia-ngx.so.$surum $PKG/usr/lib/libnvidia-ngx.so
  87. # X driver config
  88. install -D -m 0644 $SRC/10-nvidia-drm-outputclass.conf \
  89. $PKG/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
  90. # application profile keys and documentation
  91. install -d -m 0755 $PKG/usr/share/nvidia
  92. install -m 0644 nvidia-application-profiles-$surum-rc $PKG/usr/share/nvidia/
  93. install -m 0644 nvidia-application-profiles-$surum-key-documentation $PKG/usr/share/nvidia/
  94. # desktop file and icon
  95. install -d $PKG/usr/share/{applications,pixmaps}
  96. sed -i -e 's,__UTILS_PATH__,/usr/bin,' -e 's,__PIXMAP_PATH__,/usr/share/pixmaps,' nvidia-settings.desktop
  97. install -m 0644 nvidia-settings.desktop $PKG/usr/share/applications/
  98. install -m 0644 nvidia-settings.png $PKG/usr/share/pixmaps/
  99. # nvidia-uvm udev rules file
  100. install -D -m 0644 $SRC/90-nvidia-uvm.rules $PKG/usr/lib/udev/rules.d/90-nvidia-uvm.rules
  101. # kernel modules
  102. cd kernel
  103. IGNORE_CC_MISMATCH=1 make module
  104. install -d $PKG/usr/lib/modules/$(uname -r)/extra
  105. install -m 0644 *.ko $PKG/usr/lib/modules/$(uname -r)/extra/