nvidia-x11r7-legacy: fixed finding path to kernel
This commit is contained in:
parent
992fc86e19
commit
685abe4e80
@ -7,14 +7,14 @@
|
|||||||
# Nice to have: gl-select-x11r7
|
# Nice to have: gl-select-x11r7
|
||||||
|
|
||||||
name=nvidia-x11r7-legacy
|
name=nvidia-x11r7-legacy
|
||||||
version=1.0-7184
|
version=1.0-7184-$(uname -r)
|
||||||
release=1
|
release=1
|
||||||
source=(http://download.nvidia.com/XFree86/Linux-x86/$version/NVIDIA-Linux-x86-$version-pkg1.run \
|
source=(http://download.nvidia.com/XFree86/Linux-x86/${version%-*}/NVIDIA-Linux-x86-${version%-*}-pkg1.run \
|
||||||
nvidia-makefile.patch)
|
nvidia-makefile.patch)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
sh NVIDIA-Linux-x86-$version-pkg1.run --extract-only
|
sh NVIDIA-Linux-x86-${version%-*}-pkg1.run --extract-only
|
||||||
cd NVIDIA-Linux-x86-$version-pkg1
|
cd NVIDIA-Linux-x86-${version%-*}-pkg1
|
||||||
|
|
||||||
# patch Makefile.kbuild for normal users and no load during build
|
# patch Makefile.kbuild for normal users and no load during build
|
||||||
patch -p0 -i $SRC/nvidia-makefile.patch usr/src/nv/Makefile.kbuild
|
patch -p0 -i $SRC/nvidia-makefile.patch usr/src/nv/Makefile.kbuild
|
||||||
@ -42,7 +42,7 @@ build() {
|
|||||||
# build the module
|
# build the module
|
||||||
cd usr/src/nv
|
cd usr/src/nv
|
||||||
ln -s Makefile{.kbuild,}
|
ln -s Makefile{.kbuild,}
|
||||||
IGNORE_CC_MISMATCH=1 make module
|
SYSSRC="/usr/src/linux-$(uname -r)" IGNORE_CC_MISMATCH=1 make module
|
||||||
|
|
||||||
# install it
|
# install it
|
||||||
install -m 0644 -D nvidia.ko \
|
install -m 0644 -D nvidia.ko \
|
||||||
|
Loading…
Reference in New Issue
Block a user