From 1c3e6387cf295211ef0acb6e743faf7fb9484486 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 31 May 2017 22:42:45 +0300 Subject: [PATCH] nvidia --- .../kernel-lts-src/kernel-lts-src.kur-kos | 2 ++ talimatname/genel/kernel-lts-src/talimat | 2 +- .../genel/nvidia-sl/iptal-nvidia-sl.kur-kos | 2 -- talimatname/genel/nvidia-sl/nvidia-sl.kur-kos | 2 ++ talimatname/genel/nvidia-sl/talimat | 21 ++++++++++++------- 5 files changed, 19 insertions(+), 10 deletions(-) create mode 100644 talimatname/genel/kernel-lts-src/kernel-lts-src.kur-kos delete mode 100644 talimatname/genel/nvidia-sl/iptal-nvidia-sl.kur-kos create mode 100644 talimatname/genel/nvidia-sl/nvidia-sl.kur-kos diff --git a/talimatname/genel/kernel-lts-src/kernel-lts-src.kur-kos b/talimatname/genel/kernel-lts-src/kernel-lts-src.kur-kos new file mode 100644 index 000000000..3bd8bf5b9 --- /dev/null +++ b/talimatname/genel/kernel-lts-src/kernel-lts-src.kur-kos @@ -0,0 +1,2 @@ +rm -rf /lib/modules/`uname -r`/build +ln -s /usr/src/linux-4.4 /lib/modules/`uname -r`/build diff --git a/talimatname/genel/kernel-lts-src/talimat b/talimatname/genel/kernel-lts-src/talimat index fa96336ef..73b62f29f 100644 --- a/talimatname/genel/kernel-lts-src/talimat +++ b/talimatname/genel/kernel-lts-src/talimat @@ -4,7 +4,7 @@ name=kernel-lts-src version=4.4.27 -release=1 +release=2 _version=${version:0:3} diff --git a/talimatname/genel/nvidia-sl/iptal-nvidia-sl.kur-kos b/talimatname/genel/nvidia-sl/iptal-nvidia-sl.kur-kos deleted file mode 100644 index eb535d26a..000000000 --- a/talimatname/genel/nvidia-sl/iptal-nvidia-sl.kur-kos +++ /dev/null @@ -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 diff --git a/talimatname/genel/nvidia-sl/nvidia-sl.kur-kos b/talimatname/genel/nvidia-sl/nvidia-sl.kur-kos new file mode 100644 index 000000000..14925bfcb --- /dev/null +++ b/talimatname/genel/nvidia-sl/nvidia-sl.kur-kos @@ -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/ diff --git a/talimatname/genel/nvidia-sl/talimat b/talimatname/genel/nvidia-sl/talimat index b9570ed19..2d64d28dd 100644 --- a/talimatname/genel/nvidia-sl/talimat +++ b/talimatname/genel/nvidia-sl/talimat @@ -1,7 +1,7 @@ # Description: nVIDIA Linux Display Driver (kısa dönemli) # URL: http://www.nvidia.com/ # Packager: milisarge -# Depends on: gtk2 gl-select +# Depends on: gtk2 gl-select kernel-lts-src name=nvidia-sl version=381.22 @@ -80,10 +80,17 @@ build() { $PKG/usr/share/nvidia/nvidia-application-profiles-$version-key-documentation # kernel modules - #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 + cd /lib/modules/`uname -r`/build + gunzip < /proc/config.gz > .config + make oldconfig + make prepare + make scripts + 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 }