summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/nvidia/.footprint.i6867
-rw-r--r--base/nvidia/.footprint.x86_647
-rwxr-xr-xbase/nvidia/Pkgfile11
3 files changed, 24 insertions, 1 deletions
diff --git a/base/nvidia/.footprint.i686 b/base/nvidia/.footprint.i686
index 3656cb1b0..d772c5586 100644
--- a/base/nvidia/.footprint.i686
+++ b/base/nvidia/.footprint.i686
@@ -2,6 +2,13 @@ drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/X11/
drwxr-xr-x root/root etc/X11/xorg.conf.d/
-rw-r--r-- root/root etc/X11/xorg.conf.d/30-nvidia.conf
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/modules/
+drwxr-xr-x root/root lib/modules/<kernel-version>/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/video/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/video/nvidia/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/video/nvidia/nvidia.ko
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/X11/
diff --git a/base/nvidia/.footprint.x86_64 b/base/nvidia/.footprint.x86_64
index 3656cb1b0..d772c5586 100644
--- a/base/nvidia/.footprint.x86_64
+++ b/base/nvidia/.footprint.x86_64
@@ -2,6 +2,13 @@ drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/X11/
drwxr-xr-x root/root etc/X11/xorg.conf.d/
-rw-r--r-- root/root etc/X11/xorg.conf.d/30-nvidia.conf
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/modules/
+drwxr-xr-x root/root lib/modules/<kernel-version>/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/video/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/video/nvidia/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/video/nvidia/nvidia.ko
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/X11/
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"