diff options
Diffstat (limited to 'base/nvidia/Pkgfile')
-rwxr-xr-x | base/nvidia/Pkgfile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/base/nvidia/Pkgfile b/base/nvidia/Pkgfile index 2ec032019..ecc64ca17 100755 --- a/base/nvidia/Pkgfile +++ b/base/nvidia/Pkgfile @@ -5,7 +5,7 @@ name=nvidia version=275.09.07 -release=1 +release=2 [ "`uname -m`" == "i686" ] && _ARCH=x86 [ "`uname -m`" == "x86_64" ] && _ARCH=x86_64 source=(ftp://download.nvidia.com/XFree86/Linux-${_ARCH}/$version/NVIDIA-Linux-${_ARCH}-$version.run) @@ -35,6 +35,15 @@ build() { install -m 0755 libglx.so.$version $PKG/usr/lib/X11/modules/extensions ln -s libglx.so.$version $PKG/usr/lib/X11/modules/extensions/libglx.so install -m 0755 libnvidia-wfb.so.$version $PKG/usr/lib/X11/modules + # build the module + cd kernel + + ln -s Makefile{.kbuild,} + IGNORE_CC_MISMATCH=1 make module + + # install it + install -m 0644 -D nvidia.ko \ + $PKG/lib/modules/`uname -r`/kernel/video/nvidia/nvidia.ko # xorg config mkdir -p $PKG/etc/X11/xorg.conf.d cat > $PKG/etc/X11/xorg.conf.d/30-nvidia.conf << "EOF" |