diff options
author | tnut <thierryn1 at hispeed dot ch> | 2011-03-02 21:24:20 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2011-03-02 21:24:20 +0100 |
commit | 4aaa9208d7b3ac65b885b179abae92c0c7ca10aa (patch) | |
tree | 6e20e589ee7606d1c90a37dee7908739f7b5506b /base/kernel-precision-380/Pkgfile | |
parent | a5294abba1d4db912c1443a84c55ae0cf686ad47 (diff) | |
download | nutyx-pakxe-4aaa9208d7b3ac65b885b179abae92c0c7ca10aa.tar.gz nutyx-pakxe-4aaa9208d7b3ac65b885b179abae92c0c7ca10aa.tar.bz2 nutyx-pakxe-4aaa9208d7b3ac65b885b179abae92c0c7ca10aa.tar.xz nutyx-pakxe-4aaa9208d7b3ac65b885b179abae92c0c7ca10aa.zip |
kernel-precision-380, maj 2.6.37.2-1
Diffstat (limited to 'base/kernel-precision-380/Pkgfile')
-rw-r--r-- | base/kernel-precision-380/Pkgfile | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/base/kernel-precision-380/Pkgfile b/base/kernel-precision-380/Pkgfile index 42584ebd1..27da8379f 100644 --- a/base/kernel-precision-380/Pkgfile +++ b/base/kernel-precision-380/Pkgfile @@ -4,14 +4,16 @@ # Packager: thierryn1 at hispeed dot ch name=kernel-precision-380 -version=2.6.36.3 -_BaseVersion=2.6.36 +version=2.6.37.2 +_BaseVersion=2.6.37 release=1 PKGMK_NO_STRIP="yes" PKGMK_IGNORE_FOOTPRINT="yes" +PKGMK_IGNORE_MD5SUM="yes" SCRIPT_VERSION="pakxe" -_extra=03012011 -_tools=03012011 +INITRDBASE="nutyx-initrd-$SCRIPT_VERSION" +_extra=01032011 +_tools=01032011 source=(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\ @@ -20,15 +22,17 @@ source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_BaseVersion}.tar.bz build(){ unset MAKEFLAGS +cp -a script $INITRDBASE/ +cp -a rootfs/* $INITRDBASE/rootfs/ for i in setup-install setup-mirroir do sed -i "s|#INSTALL#|install-$SCRIPT_VERSION.ash|" \ - nutyx-initrd-2011/rootfs/install/$i || exit 1 + $INITRDBASE/rootfs/install/$i || exit 1 done for i in main.txt functions setup-grub setup-grub do sed -i "s|#VERSION#|MINI $SCRIPT_VERSION|g" \ - nutyx-initrd-2011/rootfs/install/$i + $INITRDBASE/rootfs/install/$i done cd linux-${_BaseVersion} @@ -42,7 +46,12 @@ esac bzip2 -d -c ../patch-$version.bz2 | patch -Np1 sed -i "s/EXTRAVERSION = .*/EXTRAVERSION =/" Makefile make menuconfig -cp .config /tmp/ +case `uname -m` in + x86_64) + cp .config `prt-get printf %p --filter=kernel`/$name/config_64;; + i?86) + cp .config `prt-get printf %p --filter=kernel`/$name/config;; +esac make make INSTALL_MOD_PATH=$PKG modules_install mkdir -p $PKG/boot @@ -53,21 +62,17 @@ case `uname -m` in cp .config \ $PKG/boot/config_64-$version cp arch/x86_64/boot/bzImage \ - $PKG/boot/kernel_64-$version - ln -sf kernel_64-$version \ - $PKG/boot/kernel_64 ;; - + $PKG/boot/kernel_64-$version ;; i?86) cp System.map \ $PKG/boot/System.map-$version cp .config \ $PKG/boot/config-$version cp arch/i386/boot/bzImage \ - $PKG/boot/kernel-$version - ln -sf kernel-$version \ - $PKG/boot/kernel;; + $PKG/boot/kernel-$version ;; esac -cd $PKG/lib/modules/${_BaseVersion}-NuTyX/ +ln -sf kernel-$version $PKG/boot/kernel +cd $PKG/lib/modules/${_BaseVersion}/ rm {build,source} ln -sv /usr/src/linux-${_BaseVersion} build ln -sv /usr/src/linux-${_BaseVersion} source @@ -88,5 +93,5 @@ 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 nutyx-initrd-2011 +bsdtar -c "-J" -f $PKG/boot/nutyx-initrd.tar.xz $INITRDBASE } |