[Lunar-commits] r23624 - in moonbase/trunk/kernel: . linux-2.6-stable

Auke Kok sofar at lunar-linux.org
Tue Mar 13 16:04:29 CET 2007


Author: sofar
Date: 2007-03-13 16:04:29 +0100 (Tue, 13 Mar 2007)
New Revision: 23624

Added:
   moonbase/trunk/kernel/linux-2.6-stable/
   moonbase/trunk/kernel/linux-2.6-stable/BUILD
   moonbase/trunk/kernel/linux-2.6-stable/CONFIGURE
   moonbase/trunk/kernel/linux-2.6-stable/DEPENDS
   moonbase/trunk/kernel/linux-2.6-stable/DETAILS
   moonbase/trunk/kernel/linux-2.6-stable/POST_INSTALL
   moonbase/trunk/kernel/linux-2.6-stable/PRE_BUILD
Log:
Adding the 'uber-uber' stable tree of the 2.6 kernel. Intended for production
machines that don't need any of the newer stuff. This tree gets security and
crucial fixes only.


Added: moonbase/trunk/kernel/linux-2.6-stable/BUILD
===================================================================
--- moonbase/trunk/kernel/linux-2.6-stable/BUILD	                        (rev 0)
+++ moonbase/trunk/kernel/linux-2.6-stable/BUILD	2007-03-13 15:04:29 UTC (rev 23624)
@@ -0,0 +1,39 @@
+(
+
+  while
+    if [ "$CONFIG_KERNEL" == "y" ]; then
+        if [ "$PREFER_XCONFIG" == "y" -a -n "$DISPLAY" ]; then
+	    make xconfig || make menuconfig || make config
+        elif [ "$PREFER_MENUCONFIG" == "y" ]; then
+	    make menuconfig || make config
+	else
+	    make config
+	fi
+        if ! query "Repeat configuration?" n; then
+            CONFIG_KERNEL=n
+        fi
+    else
+        false
+    fi
+  do
+    true
+  done
+
+) && (
+
+  # Needed for x86_64
+  MYARCH="`arch | grep -qw i.86 && echo i386 || arch`"
+
+  yes n | make oldconfig
+  LD_PRELOAD= cp .config $CONFIG_CACHE/.config.2.6.stable
+  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  &&
+  cp System.map /boot/System.map-$VERSION
+  
+) > $C_FIFO 2>&1

Added: moonbase/trunk/kernel/linux-2.6-stable/CONFIGURE
===================================================================
--- moonbase/trunk/kernel/linux-2.6-stable/CONFIGURE	                        (rev 0)
+++ moonbase/trunk/kernel/linux-2.6-stable/CONFIGURE	2007-03-13 15:04:29 UTC (rev 23624)
@@ -0,0 +1,11 @@
+mquery PREFER_XCONFIG "Do you prefer xconfig over menuconfig?" n
+
+if [ "`get_module_config PREFER_XCONFIG`" = "y" ]; then
+    set_module_config "PREFER_MENUCONFIG" "n" ; 
+else 
+    mquery PREFER_MENUCONFIG "Do you prefer menuconfig over config?" y
+fi
+
+unset_module_config CONFIG_KERNEL
+mquery CONFIG_KERNEL "Configure linux kernel?" n
+

Added: moonbase/trunk/kernel/linux-2.6-stable/DEPENDS
===================================================================
--- moonbase/trunk/kernel/linux-2.6-stable/DEPENDS	                        (rev 0)
+++ moonbase/trunk/kernel/linux-2.6-stable/DEPENDS	2007-03-13 15:04:29 UTC (rev 23624)
@@ -0,0 +1,2 @@
+depends  autoconf  &&
+depends  module-init-tools

Added: moonbase/trunk/kernel/linux-2.6-stable/DETAILS
===================================================================
--- moonbase/trunk/kernel/linux-2.6-stable/DETAILS	                        (rev 0)
+++ moonbase/trunk/kernel/linux-2.6-stable/DETAILS	2007-03-13 15:04:29 UTC (rev 23624)
@@ -0,0 +1,24 @@
+          MODULE=linux-2.6-stable
+         VERSION=2.6.16.43
+            BASE=2.6.16
+          SOURCE=linux-${BASE}.tar.bz2
+         SOURCE2=patch-${VERSION}.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/linux-$VERSION
+   SOURCE_URL[0]=$KERNEL_URL/pub/linux/kernel/v2.6/
+   SOURCE_URL[1]=http://www.kernel.org/pub/linux/kernel/v2.6/
+  SOURCE2_URL[0]=$KERNEL_URL/pub/linux/kernel/v2.6/
+  SOURCE2_URL[1]=http://www.kernel.org/pub/linux/kernel/v2.6/
+      SOURCE_VFY=sha1:bef21cd5063a648f33a99a26f4742dd05eb4dca2
+     SOURCE2_VFY=sha1:104dda4689dc591a0df21cb39fc533dd93f67985
+        WEB_SITE=http://www.kernel.org
+         ENTERED=20070313
+         UPDATED=20070313
+           SHORT="The uber-stable version of the 2.6 kernel"
+     KEEP_SOURCE=on
+           TMPFS=off
+
+cat << EOF
+This is the uber-stable version of the 2.6.x branch maintained by
+Adrian Bunk. It contains only really-necessary security and functionality
+fixes but no new features.
+EOF

Added: moonbase/trunk/kernel/linux-2.6-stable/POST_INSTALL
===================================================================
--- moonbase/trunk/kernel/linux-2.6-stable/POST_INSTALL	                        (rev 0)
+++ moonbase/trunk/kernel/linux-2.6-stable/POST_INSTALL	2007-03-13 15:04:29 UTC (rev 23624)
@@ -0,0 +1,8 @@
+update_bootloader $VERSION $VERSION
+
+#  Reinstall packages that add their own kernel modules
+
+lin -c kernel-reqs
+
+# create /sys
+mkdir -p /sys

Added: moonbase/trunk/kernel/linux-2.6-stable/PRE_BUILD
===================================================================
--- moonbase/trunk/kernel/linux-2.6-stable/PRE_BUILD	                        (rev 0)
+++ moonbase/trunk/kernel/linux-2.6-stable/PRE_BUILD	2007-03-13 15:04:29 UTC (rev 23624)
@@ -0,0 +1,32 @@
+# Bail if we're not running a core with kernel functions
+
+if [ ! -e $FUNCTIONS/kernel.lunar ] ; then
+  message "${PROBLEM_COLOR}Bailing out, ${DEFAULT_COLOR}Lunar (or theedge) code version too old"
+  message "${PROBLEM_COLOR}Update core ${MODULE_COLOR}(lin lunar or lin theedge)${DEFAULT_COLOR} to install this kernel"
+  exit 1
+fi
+
+mk_source_dir $SOURCE_DIRECTORY
+rm -f /usr/src/linux
+ln -sf $SOURCE_DIRECTORY /usr/src/linux
+cd $SOURCE_DIRECTORY
+
+# Check wether we're running an up-to-date tar
+if [ `installed_version tar | cut -d. -f2` -ge 15 ]; then
+  tar xf $SOURCE_CACHE/$SOURCE --no-same-owner \
+  --no-same-permissions --strip-components=1
+else
+  message "${PROBLEM_COLOR}Error:${DEFAULT_COLOR} Please update your tar module"
+  exit 1
+fi
+
+# if we have an EXTRA patch, apply it
+if [ -n "${SOURCE2}" ]; then
+    patch_it ${SOURCE2} 1
+fi
+
+if  [ -f $CONFIG_CACHE/.config.2.6.stable ]; then
+    cp $CONFIG_CACHE/.config.2.6.stable $SOURCE_DIRECTORY/.config;
+elif [ -f $CONFIG_CACHE/.config.beta ]; then
+    cp $CONFIG_CACHE/.config.beta $SOURCE_DIRECTORY/.config;
+fi



More information about the Lunar-commits mailing list