diff options
author | tnut <tnut at nutyx dot com> | 2012-02-23 22:48:57 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-02-23 22:48:57 +0100 |
commit | c924455f9385345ca20996f2e7a2d6b90615de23 (patch) | |
tree | f8a681e858e40623973d45e55e1c161274d93c87 | |
parent | 13ee9171beee3ba1d3c3b2bde1049e399c8b0d3d (diff) | |
download | nutyx-pakxe-c924455f9385345ca20996f2e7a2d6b90615de23.tar.gz nutyx-pakxe-c924455f9385345ca20996f2e7a2d6b90615de23.tar.bz2 nutyx-pakxe-c924455f9385345ca20996f2e7a2d6b90615de23.tar.xz nutyx-pakxe-c924455f9385345ca20996f2e7a2d6b90615de23.zip |
kernel, maj 3.2.7-2
-rw-r--r-- | kernel/Pkgfile | 33 | ||||
-rw-r--r-- | kernel/list | 11 | ||||
-rw-r--r-- | kernel/post-install | 10 | ||||
-rw-r--r-- | kernel/pre-install | 3 |
4 files changed, 37 insertions, 20 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 diff --git a/kernel/list b/kernel/list new file mode 100644 index 000000000..041cda3fa --- /dev/null +++ b/kernel/list @@ -0,0 +1,11 @@ +aaabasicfs +ipw2100-fw +ipw2200-fw +iwlwifi-3945-ucode +iwlwifi-4965-ucode +iwlwifi-5000-ucode +iwlwifi-5150-ucode +linux-firmware +rt2x00-rt61-fw +rt2x00-rt71w-fw +udev diff --git a/kernel/post-install b/kernel/post-install index fe0aec922..07ac8fbd5 100644 --- a/kernel/post-install +++ b/kernel/post-install @@ -1,14 +1,6 @@ -version=3.2.7 -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,7 +20,7 @@ done # Copie des modules kernels mkdir -p $WDIR/rootfs/lib/modules -cp -a /lib/modules/${version} \ +cp -a /lib/modules/* \ $WDIR/rootfs/lib/modules/ # Copie du script d'install diff --git a/kernel/pre-install b/kernel/pre-install new file mode 100644 index 000000000..bd0b0feeb --- /dev/null +++ b/kernel/pre-install @@ -0,0 +1,3 @@ +for i in ipw2100-fw ipw2200-fw 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 |