nvidia
This commit is contained in:
parent
7c14aa42b8
commit
1c3e6387cf
|
@ -0,0 +1,2 @@
|
||||||
|
rm -rf /lib/modules/`uname -r`/build
|
||||||
|
ln -s /usr/src/linux-4.4 /lib/modules/`uname -r`/build
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
name=kernel-lts-src
|
name=kernel-lts-src
|
||||||
version=4.4.27
|
version=4.4.27
|
||||||
release=1
|
release=2
|
||||||
|
|
||||||
_version=${version:0:3}
|
_version=${version:0:3}
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
rm /lib/modules/`uname -r`/kernel/drivers/zzzz/nvidia.ko
|
|
||||||
rm /lib/modules/`uname -r`/kernel/drivers/zzzz/nvidia-modeset.ko
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
mv /lib/modules/`uname -r`/kernel/drivers/zzzz/nvidia.ko /opt/
|
||||||
|
mv /lib/modules/`uname -r`/kernel/drivers/zzzz/nvidia-modeset.ko /opt/
|
|
@ -1,7 +1,7 @@
|
||||||
# Description: nVIDIA Linux Display Driver (kısa dönemli)
|
# Description: nVIDIA Linux Display Driver (kısa dönemli)
|
||||||
# URL: http://www.nvidia.com/
|
# URL: http://www.nvidia.com/
|
||||||
# Packager: milisarge
|
# Packager: milisarge
|
||||||
# Depends on: gtk2 gl-select
|
# Depends on: gtk2 gl-select kernel-lts-src
|
||||||
|
|
||||||
name=nvidia-sl
|
name=nvidia-sl
|
||||||
version=381.22
|
version=381.22
|
||||||
|
@ -80,10 +80,17 @@ 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 kernel
|
cd /lib/modules/`uname -r`/build
|
||||||
#IGNORE_CC_MISMATCH=1 make module
|
gunzip < /proc/config.gz > .config
|
||||||
#install -D -m 0644 nvidia.ko $PKG/lib/modules/`uname -r`/extra/nvidia.ko
|
make oldconfig
|
||||||
#install -D -m 0644 nvidia-uvm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-uvm.ko
|
make prepare
|
||||||
#install -D -m 0644 nvidia-modeset.ko $PKG/lib/modules/`uname -r`/extra/nvidia-modeset.ko
|
make scripts
|
||||||
#install -D -m 0644 nvidia-drm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-drm.ko
|
cp /lib/modules/`uname -r`/build/include/generated/autoconf.h /lib/modules/`uname -r`/build/include/linux/autoconf.h
|
||||||
|
cd -
|
||||||
|
cd kernel
|
||||||
|
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-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-drm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-drm.ko
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue