summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-03-03 17:07:36 +0100
committerpiernov <piernov@piernov.org>2012-03-03 17:07:36 +0100
commit2180a15e841dc628a3233a419bd5b7bccfd6f295 (patch)
tree23afc4e8b912ecf4a27ba5424716b186385039f6
parentd5fe66f2fb82fc0485961293e669a363e2edba7b (diff)
parent0c9d3117cda60d1ec64c40ad2a7f73d23aa83a80 (diff)
downloadnutyx-pakxe-2180a15e841dc628a3233a419bd5b7bccfd6f295.tar.gz
nutyx-pakxe-2180a15e841dc628a3233a419bd5b7bccfd6f295.tar.bz2
nutyx-pakxe-2180a15e841dc628a3233a419bd5b7bccfd6f295.tar.xz
nutyx-pakxe-2180a15e841dc628a3233a419bd5b7bccfd6f295.zip
Merge http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe
-rw-r--r--kernel/Pkgfile36
-rw-r--r--kernel/README2
-rw-r--r--kernel/post-install13
-rw-r--r--kernel/pre-install3
4 files changed, 38 insertions, 16 deletions
diff --git a/kernel/Pkgfile b/kernel/Pkgfile
index 677b46710..f6a7bc538 100644
--- a/kernel/Pkgfile
+++ b/kernel/Pkgfile
@@ -1,23 +1,23 @@
# 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.6
+version=3.2.7
_BaseVersion=3.2
-release=2
+release=1
PKGMK_NO_STRIP="yes"
PKGMK_IGNORE_FOOTPRINT="yes"
PKGMK_IGNORE_MD5SUM="yes"
SCRIPT_VERSION="pakxe.3"
INITRDBASE="nutyx-initrd"
_extra=16022012
-_tools=16022012
+_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,17 +36,35 @@ 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
+
for i in setup-install setup-mirroir
do
sed -i "s|#INSTALL#|install-$SCRIPT_VERSION.ash|" \
$INITRDBASE/rootfs/install/$i || exit 1
done
-for i in main.txt functions setup-grub setup-grub
+for i in main.txt setup-grub
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}
@@ -60,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;;
@@ -68,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)
diff --git a/kernel/README b/kernel/README
new file mode 100644
index 000000000..53e1633dd
--- /dev/null
+++ b/kernel/README
@@ -0,0 +1,2 @@
+Pour la construction du kernel il est necessaire d'avoir git et prt-get
+d'installé.
diff --git a/kernel/post-install b/kernel/post-install
index 2c4b74f3e..43ae9d4e1 100644
--- a/kernel/post-install
+++ b/kernel/post-install
@@ -1,14 +1,6 @@
-version=3.2.6
-if [ ! -d /lib/modules/${version} ]; then
- echo "post-install impossible"
- echo "/lib/modules/${version} pas trouvé"
- exit 1
-fi
SCRIPT_VERSION="pakxe.3"
SRC=/tmp/work
WDIR=$SRC/nutyx-initrd
-ARCH=`uname -m`
-depmod $version
if [ ! -d $SRC ]; then
mkdir -p $SRC
fi
@@ -28,9 +20,12 @@ done
# Copie des modules kernels
mkdir -p $WDIR/rootfs/lib/modules
-cp -a /lib/modules/${version} \
+cp -a /lib/modules/* \
$WDIR/rootfs/lib/modules/
+cp -a /lib/firmware \
+$WDIR/rootfs/lib/
+
# Copie du script d'install
cp /root/bin/install-${SCRIPT_VERSION}.ash $WDIR/rootfs/install/
diff --git a/kernel/pre-install b/kernel/pre-install
new file mode 100644
index 000000000..d875b6144
--- /dev/null
+++ b/kernel/pre-install
@@ -0,0 +1,3 @@
+for i in iwlwifi-3945-ucode iwlwifi-4965-ucode iwlwifi-5000-ucode iwlwifi-5150-ucode linux-firmware rt2x00-rt61-fw rt2x00-rt71w-fw
+ do if ( /usr/bin/pkginfo -l $i > /dev/null 2>&1 ) ; then /usr/bin/pkgrm $i ;fi
+ done