diff options
author | tnut <tnut at nutyx dot com> | 2011-06-19 18:47:04 +0200 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2011-06-19 18:47:04 +0200 |
commit | 883cbfa01a6b31850b78f5cf2c6d74785d2ded23 (patch) | |
tree | d3ce3a2c7f33713e6af60b542a67f6e1eb52438c /base | |
parent | 61fc054898ceae629370292c7b0fff3f17893bec (diff) | |
download | nutyx-extra-883cbfa01a6b31850b78f5cf2c6d74785d2ded23.tar.gz nutyx-extra-883cbfa01a6b31850b78f5cf2c6d74785d2ded23.tar.bz2 nutyx-extra-883cbfa01a6b31850b78f5cf2c6d74785d2ded23.tar.xz nutyx-extra-883cbfa01a6b31850b78f5cf2c6d74785d2ded23.zip |
kernel-34, ajout module nvidia
Diffstat (limited to 'base')
-rw-r--r-- | base/kernel-34/Pkgfile | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/base/kernel-34/Pkgfile b/base/kernel-34/Pkgfile index 9a0c6c786..892580c35 100644 --- a/base/kernel-34/Pkgfile +++ b/base/kernel-34/Pkgfile @@ -6,15 +6,19 @@ name=kernel-34 version=2.6.34.9 _BaseVersion=2.6.34 -release=1 +release=2 PKGMK_NO_STRIP="yes" PKGMK_IGNORE_FOOTPRINT="yes" PKGMK_IGNORE_MD5SUM="yes" SCRIPT_VERSION="pakxe" INITRDBASE="nutyx-initrd" _extra=30052011 -_tools=09062011 -source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_BaseVersion}.tar.bz2 config_64 config\ +_tools=11062011 +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/longterm/v${_BaseVersion}/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 } |