refined version grabing regexp

This commit is contained in:
Gwenhael Le Moine 2011-04-07 10:25:31 +07:00
parent 3b79c8cd84
commit 8ae46dcd7c

View file

@ -59,7 +59,7 @@ make $NUMJOBS
make modules_install INSTALL_MOD_PATH=$PKG
KERNEL_TAG=$(grep "CONFIG_LOCALVERSION=" .config | sed 's|CONFIG_LOCALVERSION=||' | tr -d \" )
KERNEL_VERSION=$(grep -o "2\.6\.[0-9a-z\-\.]*" .config)$KERNEL_TAG
KERNEL_VERSION=$(grep -o "2\.6\..*[0-9]" .config)$KERNEL_TAG
mkdir -p $PKG/boot/$KERNEL_VERSION
cp .config System.map arch/x86/boot/bzImage $PKG/boot/$KERNEL_VERSION