[Lunar-commits] <moonbase> linux: fix the build using 3.2.0 version. Thanks to cavalier for the submission.

Florin Braescu florin at lunar-linux.org
Sun Jan 8 18:42:35 CET 2012


commit 29ba03a2a1980afdeb2518e7906768b18d03b85f
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Jan 8 18:42:35 2012 +0100

    linux: fix the build using 3.2.0 version. Thanks to cavalier for the submission.
---
 kernel/linux/BUILD        |   33 ++++++++++++++++++++-------------
 kernel/linux/POST_INSTALL |    5 ++++-
 2 files changed, 24 insertions(+), 14 deletions(-)

diff --git a/kernel/linux/BUILD b/kernel/linux/BUILD
index 7b8ed5f..c9d632c 100644
--- a/kernel/linux/BUILD
+++ b/kernel/linux/BUILD
@@ -1,14 +1,21 @@
+(
+
 # Needed for x86_64
-MYARCH="`arch | grep -qw i.86 && echo i386 || arch`"
-
-echo | make oldconfig
-LD_PRELOAD= cp .config $CONFIG_CACHE/.config.current
-rm -f arch/${MYARCH}/boot/bzImage
-
-make ${MAKES:+-j$MAKES} bzImage
-make ${MAKES:+-j$MAKES} modules
-backup_mods_krnl $VERSION
-prepare_install
-make modules_install
-cp arch/${MYARCH}/boot/bzImage /boot/$VERSION-`arch`
-cp System.map /boot/System.map-$VERSION-`arch`
+  MYARCH="`arch | grep -qw i.86 && echo i386 || arch`"
+
+  PATCH_VERSION=$(echo $VERSION | cut -d . -f 3)
+  FULL_VERSION=$(echo $VERSION | cut -d . -f 1,2).${PATCH_VERSION:-0}
+
+  echo | make oldconfig
+  LD_PRELOAD= cp .config $CONFIG_CACHE/.config.current
+  rm -f arch/${MYARCH}/boot/bzImage
+
+  make ${MAKES:+-j$MAKES} bzImage
+  make ${MAKES:+-j$MAKES} modules
+  backup_mods_krnl $FULL_VERSION
+  prepare_install
+  make modules_install
+  cp arch/${MYARCH}/boot/bzImage /boot/$FULL_VERSION-`arch`
+  cp System.map /boot/System.map-$FULL_VERSION-`arch`
+
+) > $C_FIFO 2>&1
diff --git a/kernel/linux/POST_INSTALL b/kernel/linux/POST_INSTALL
index dd6cddc..700bc17 100644
--- a/kernel/linux/POST_INSTALL
+++ b/kernel/linux/POST_INSTALL
@@ -1,4 +1,7 @@
-update_bootloader $VERSION-`arch` $VERSION-`arch`
+PATCH_VERSION=$(echo $VERSION | cut -d . -f 3)
+FULL_VERSION=$(echo $VERSION | cut -d . -f 1,2).${PATCH_VERSION:-0}
+
+update_bootloader $FULL_VERSION-`arch` $VERSION-`arch`
 
 #  Reinstall packages that add their own kernel modules
 


More information about the Lunar-commits mailing list