summaryrefslogtreecommitdiffstats
path: root/base/kernel-precision-380/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2011-05-05 11:27:42 +0200
committertnut <tnut at nutyx dot com>2011-05-05 11:27:42 +0200
commitd25bf2591800694ea0d45caab0d6815a17df0f64 (patch)
treebc5ed42b8507d7b3d4225aa607e6fc9f551d526a /base/kernel-precision-380/Pkgfile
parent813285ad26660212791e7a68e0f5ec4203ac46ad (diff)
downloadnutyx-extra-d25bf2591800694ea0d45caab0d6815a17df0f64.tar.gz
nutyx-extra-d25bf2591800694ea0d45caab0d6815a17df0f64.tar.bz2
nutyx-extra-d25bf2591800694ea0d45caab0d6815a17df0f64.tar.xz
nutyx-extra-d25bf2591800694ea0d45caab0d6815a17df0f64.zip
kernel-precision-380, maj 2.6.37.6-2, correction Pkgfile et post-install
Diffstat (limited to 'base/kernel-precision-380/Pkgfile')
-rw-r--r--base/kernel-precision-380/Pkgfile66
1 files changed, 35 insertions, 31 deletions
diff --git a/base/kernel-precision-380/Pkgfile b/base/kernel-precision-380/Pkgfile
index 55f601906..bc7d1ffdf 100644
--- a/base/kernel-precision-380/Pkgfile
+++ b/base/kernel-precision-380/Pkgfile
@@ -6,14 +6,14 @@
name=kernel-precision-380
version=2.6.37.6
_BaseVersion=2.6.37
-release=1
+release=2
PKGMK_NO_STRIP="yes"
PKGMK_IGNORE_FOOTPRINT="yes"
PKGMK_IGNORE_MD5SUM="yes"
SCRIPT_VERSION="pakxe"
-INITRDBASE="nutyx-initrd-$SCRIPT_VERSION"
-_extra=01032011
-_tools=01032011
+INITRDBASE="nutyx-initrd"
+_extra=26042011
+_tools=26042011
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\
@@ -21,9 +21,7 @@ source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_BaseVersion}.tar.bz
http://nutyx.meticul.eu/files/installtools-${_tools}.tar.bz2)
build(){
-unset MAKEFLAGS
-cp -a script $INITRDBASE/
-cp -a rootfs/* $INITRDBASE/rootfs/
+# unset MAKEFLAGS
for i in setup-install setup-mirroir
do
sed -i "s|#INSTALL#|install-$SCRIPT_VERSION.ash|" \
@@ -35,41 +33,48 @@ do
$INITRDBASE/rootfs/install/$i
done
cd linux-${_BaseVersion}
-
make mrproper
case `uname -m` in
- x86_64)
- mv $SRC/config_64 ./.config;;
- i?86)
- mv $SRC/config ./.config;;
+ x86_64)
+ mv $SRC/config_64 ./.config;;
+ i?86)
+ mv $SRC/config ./.config;;
esac
-bzip2 -d -c ../patch-$version.bz2 | patch -Np1
+if [ -f ../patch-$version.bz2 ]; then
+ bzip2 -d -c ../patch-$version.bz2 | patch -Np1
+fi
sed -i "s/EXTRAVERSION = .*/EXTRAVERSION =/" Makefile
-make menuconfig
+# make menuconfig
case `uname -m` in
x86_64)
- cp .config `prt-get printf %p --filter=kernel`/$name/config_64;;
+ cp .config `prt-get printf %p --filter=$name`/$name/config_64;;
i?86)
- cp .config `prt-get printf %p --filter=kernel`/$name/config;;
+ cp .config `prt-get printf %p --filter=$name`/$name/config;;
esac
make
+case `uname -m` in
+ x86_64)
+ cp .config `prt-get printf %p --filter=$name`/$name/config_64;;
+ i?86)
+ cp .config `prt-get printf %p --filter=$name`/$name/config;;
+esac
make INSTALL_MOD_PATH=$PKG modules_install
mkdir -p $PKG/boot
case `uname -m` in
- x86_64)
- cp System.map \
- $PKG/boot/System_64.map-$version
- cp .config \
- $PKG/boot/config_64-$version
- cp arch/x86_64/boot/bzImage \
- $PKG/boot/kernel-$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 ;;
+ x86_64)
+ cp System.map \
+ $PKG/boot/System_64.map-$version
+ cp .config \
+ $PKG/boot/config_64-$version
+ cp arch/x86_64/boot/bzImage \
+ $PKG/boot/kernel-$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 ;;
esac
ln -sf kernel-$version $PKG/boot/kernel
cd $PKG/lib/modules/${_BaseVersion}/
@@ -88,7 +93,6 @@ 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}/
-rm -rf $PKG/lib/firmware
mkdir -p $PKG/root/bin
install -m755 $SRC/install-${SCRIPT_VERSION}.ash \
$PKG/root/bin/install-${SCRIPT_VERSION}.ash