nvidia
This commit is contained in:
parent
3c33b55fd0
commit
6ec4e34101
3 changed files with 18 additions and 12 deletions
|
@ -1,2 +0,0 @@
|
||||||
mv /lib/modules/`uname -r`/kernel/drivers/zzzz/nvidia.ko /opt/
|
|
||||||
mv /lib/modules/`uname -r`/kernel/drivers/zzzz/nvidia-modeset.ko /opt/
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Description: nVIDIA Linux Display Driver (kısa dönemli)
|
# Description: nVIDIA Linux Display Driver
|
||||||
# URL: http://www.nvidia.com/
|
# URL: http://www.nvidia.com/
|
||||||
# Packager: milisarge
|
# Packager: milisarge
|
||||||
# Depends on: gtk2 gl-select kernel-lts-src
|
# Depends on: gtk2 gl-select kernel
|
||||||
|
|
||||||
name=nvidia-sl
|
name=nvidia
|
||||||
version=381.22
|
version=381.22
|
||||||
release=1
|
release=1
|
||||||
source=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version-no-compat32.run \
|
source=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version-no-compat32.run \
|
||||||
|
@ -80,17 +80,25 @@ build() {
|
||||||
$PKG/usr/share/nvidia/nvidia-application-profiles-$version-key-documentation
|
$PKG/usr/share/nvidia/nvidia-application-profiles-$version-key-documentation
|
||||||
|
|
||||||
# kernel modules
|
# kernel modules
|
||||||
cd /lib/modules/`uname -r`/build
|
#cd /lib/modules/`uname -r`/build
|
||||||
gunzip < /proc/config.gz > .config
|
#gunzip < /proc/config.gz > .config
|
||||||
make oldconfig
|
#make oldconfig
|
||||||
make prepare
|
#make prepare
|
||||||
make scripts
|
#make scripts
|
||||||
cp /lib/modules/`uname -r`/build/include/generated/autoconf.h /lib/modules/`uname -r`/build/include/linux/autoconf.h
|
#cp /lib/modules/`uname -r`/build/include/generated/autoconf.h /lib/modules/`uname -r`/build/include/linux/autoconf.h
|
||||||
cd -
|
#cd -
|
||||||
cd kernel
|
cd kernel
|
||||||
|
|
||||||
|
#make SYSSRC=/lib/modules/"`uname -r`/build" module
|
||||||
|
rm -rf /lib/modules/`uname -r`/build/vmlinux
|
||||||
IGNORE_CC_MISMATCH=1 make module
|
IGNORE_CC_MISMATCH=1 make module
|
||||||
install -D -m 0644 nvidia.ko $PKG/lib/modules/`uname -r`/extra/nvidia.ko
|
install -D -m 0644 nvidia.ko $PKG/lib/modules/`uname -r`/extra/nvidia.ko
|
||||||
install -D -m 0644 nvidia-uvm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-uvm.ko
|
install -D -m 0644 nvidia-uvm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-uvm.ko
|
||||||
install -D -m 0644 nvidia-modeset.ko $PKG/lib/modules/`uname -r`/extra/nvidia-modeset.ko
|
install -D -m 0644 nvidia-modeset.ko $PKG/lib/modules/`uname -r`/extra/nvidia-modeset.ko
|
||||||
install -D -m 0644 nvidia-drm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-drm.ko
|
install -D -m 0644 nvidia-drm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-drm.ko
|
||||||
|
|
||||||
|
gzip "${PKG}/lib/modules/`uname -r`/extra/"*.ko
|
||||||
|
install -d -m755 "${PKG}/etc/modprobe.d"
|
||||||
|
echo "blacklist nouveau" >> "${PKG}/etc/modprobe.d/nouveau_blacklist.conf"
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue