summaryrefslogtreecommitdiffstats
path: root/kernel/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-02-23 22:48:57 +0100
committertnut <tnut at nutyx dot com>2012-02-23 22:48:57 +0100
commitc924455f9385345ca20996f2e7a2d6b90615de23 (patch)
treef8a681e858e40623973d45e55e1c161274d93c87 /kernel/Pkgfile
parent13ee9171beee3ba1d3c3b2bde1049e399c8b0d3d (diff)
downloadnutyx-pakxe-c924455f9385345ca20996f2e7a2d6b90615de23.tar.gz
nutyx-pakxe-c924455f9385345ca20996f2e7a2d6b90615de23.tar.bz2
nutyx-pakxe-c924455f9385345ca20996f2e7a2d6b90615de23.tar.xz
nutyx-pakxe-c924455f9385345ca20996f2e7a2d6b90615de23.zip
kernel, maj 3.2.7-2
Diffstat (limited to 'kernel/Pkgfile')
-rw-r--r--kernel/Pkgfile33
1 files changed, 22 insertions, 11 deletions
diff --git a/kernel/Pkgfile b/kernel/Pkgfile
index 658242f63..f92a979e6 100644
--- a/kernel/Pkgfile
+++ b/kernel/Pkgfile
@@ -1,12 +1,12 @@
# Description: Le kernel avec les modules nvidia, ati, broadcom et virtualbox
# URL: http://www.kernel.org
-# Maintainer: Linus Torvalds, Greg KH
+# Maintainer: Linus Torvalds, Greg Kroah-Hartman and many more
# Packager: thierryn1 at hispeed dot ch, tyrry33 at gmail dot com
name=kernel
version=3.2.7
_BaseVersion=3.2
-release=1
+release=2
PKGMK_NO_STRIP="yes"
PKGMK_IGNORE_FOOTPRINT="yes"
PKGMK_IGNORE_MD5SUM="yes"
@@ -17,7 +17,7 @@ _tools=21022012
NVIDIA_VERSION=295.20
VB_VERSION=4.1.8
VB_BUILD=75467
-ATI_VERSION=11.11
+ATI_VERSION=11.12
[ "`uname -m`" == "i686" ] && _ARCH=x86
[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
@@ -36,7 +36,19 @@ source=(http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${BC_ARCH}-v5_100_
http://nutyx.meticul.eu/files/nutyx-initrd-`uname -m`-${_extra}.tar.bz2\
http://nutyx.meticul.eu/files/installtools-${_tools}.tar.bz2)
build(){
-sed -i "s/^version=.\{1,\}/version=$version/" `prt-get printf %p --filter=$name`/$name/post-install
+
+sed -i "s/^SCRIPT_VERSION=.\{1,\}/SCRIPT_VERSION=\"$SCRIPT_VERSION\"/" `prt-get printf %p --filter=$name`/$name/post-install
+# firmware
+git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
+rm -r linux-firmware/.git
+
+cp -a linux-firmware $INITRDBASE/rootfs/lib/firmware
+
+mkdir -p $PKG/lib
+cp -a linux-firmware $PKG/lib/firmware
+
+# initrd
+cd $SRC
sed -i "s|#VERSION#|$SCRIPT_VERSION|g" \
$INITRDBASE/rootfs/install/functions
@@ -51,6 +63,8 @@ do
sed -i "s|#VERSION#|MINI $SCRIPT_VERSION|g" \
$INITRDBASE/rootfs/install/$i
done
+
+# kernel sources
if ! [ -d /usr/src/linux-${_BaseVersion} ]; then
mv linux-${_BaseVersion} /usr/src/
ln -s /usr/src/linux-${_BaseVersion} linux-${_BaseVersion}
@@ -64,7 +78,9 @@ else
fi
ln -s /usr/src/linux-${_BaseVersion} linux-${_BaseVersion}
cd linux-${_BaseVersion}
+
# make mrproper
+
case `uname -m` in
x86_64)
mv $SRC/config_64 ./.config;;
@@ -72,6 +88,8 @@ case `uname -m` in
mv $SRC/config ./.config;;
esac
sed -i "s/EXTRAVERSION = .*/EXTRAVERSION =/" Makefile
+# When a new patchlevel is release (3.2->3.3 for ex)
+# decomment and run make menuconfig
# make menuconfig
case `uname -m` in
x86_64)
@@ -150,13 +168,6 @@ rm {build,source}
ln -sv /usr/src/linux-${_BaseVersion} build
ln -sv /usr/src/linux-${_BaseVersion} source
-cd $SRC
-
-# firmware
-cd $INITRDBASE/rootfs/lib
-git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
-mv linux-firmware firmware
-
# initrd
cd $SRC
mkdir -p $PKG/root/bin