summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2011-06-19 19:13:55 +0200
committertnut <tnut at nutyx dot com>2011-06-19 19:13:55 +0200
commit0f5fbb709da7697a38aa1c6c6fe64844117d60ee (patch)
tree8fccd1bbe165586300590afea2894f8a9c6f7cab /base
parent325a548c7737a7c9984dec6f5e25d7f16b6b40e7 (diff)
downloadnutyx-extra-0f5fbb709da7697a38aa1c6c6fe64844117d60ee.tar.gz
nutyx-extra-0f5fbb709da7697a38aa1c6c6fe64844117d60ee.tar.bz2
nutyx-extra-0f5fbb709da7697a38aa1c6c6fe64844117d60ee.tar.xz
nutyx-extra-0f5fbb709da7697a38aa1c6c6fe64844117d60ee.zip
kernel, ajout module nvidia
Diffstat (limited to 'base')
-rw-r--r--base/kernel/Pkgfile20
1 files changed, 17 insertions, 3 deletions
diff --git a/base/kernel/Pkgfile b/base/kernel/Pkgfile
index 3148fd550..b3fde3175 100644
--- a/base/kernel/Pkgfile
+++ b/base/kernel/Pkgfile
@@ -6,7 +6,7 @@
name=kernel
version=2.6.39.1
_BaseVersion=2.6.39
-release=1
+release=2
PKGMK_NO_STRIP="yes"
PKGMK_IGNORE_FOOTPRINT="yes"
PKGMK_IGNORE_MD5SUM="yes"
@@ -14,7 +14,11 @@ SCRIPT_VERSION="pakxe"
INITRDBASE="nutyx-initrd"
_extra=30052011
_tools=11062011
-source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_BaseVersion}.tar.bz2 config_64 config\
+NVIDIA_VERSION=275.09.07
+[ "`uname -m`" == "i686" ] && _ARCH=x86
+[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
+source=(ftp://download.nvidia.com/XFree86/Linux-${_ARCH}/$version/NVIDIA-Linux-${_ARCH}-${NVIDIA_VERSION}.run\
+ http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_BaseVersion}.tar.bz2 config_64 config\
http://www.kernel.org/pub/linux/kernel/v2.6/patch-$version.bz2 \
http://nutyx.meticul.eu/install-${SCRIPT_VERSION}.ash \
http://nutyx.meticul.eu/files/nutyx-initrd-`uname -m`-${_extra}.tar.bz2\
@@ -92,10 +96,20 @@ mkdir $PKG/usr/src/linux-${_BaseVersion}/arch
mv $SRC/linux-${_BaseVersion}/arch/x86 $PKG/usr/src/linux-${_BaseVersion}/arch
mv $SRC/linux-${_BaseVersion}/vmlinux $PKG/usr/src/linux-${_BaseVersion}/
mv $SRC/linux-${_BaseVersion}/Module.symvers $PKG/usr/src/linux-${_BaseVersion}/
+
+# Module nvidia
+cd $SRC
+sh NVIDIA-Linux-${_ARCH}-${NVIDIA_VERSION}.run --extract-only
+cd NVIDIA-Linux-${_ARCH}-${NVIDIA_VERSION}/kernel
+ln -s Makefile{.kbuild,}
+SYSSRC=$PKG/usr/src/linux-${_BaseVersion} make module
+install -m 0644 -D nvidia.ko $PKG/lib/modules/${_BaseVersion}/kernel/video/nvidia/nvidia.ko
+
+# initrd
+cd $SRC
mkdir -p $PKG/root/bin
install -m755 $SRC/install-${SCRIPT_VERSION}.ash \
$PKG/root/bin/install-${SCRIPT_VERSION}.ash
-cd $SRC
bsdtar -c "-J" -f $PKG/boot/nutyx-initrd.tar.xz $INITRDBASE
}