[Lunar-commits] <moonbase> linux-current: rename it linux.
Florin Braescu
florin at lunar-linux.org
Mon Nov 21 18:35:14 CET 2011
commit c5c78cdb9422624c5dd43d3d76659b216878f97e
Author: Florin Braescu <florin at lunar-linux.org>
Date: Mon Nov 21 18:35:14 2011 +0100
linux-current: rename it linux.
---
kernel/linux-current/BUILD | 14 ----------
kernel/linux-current/CONFIGURE | 11 --------
kernel/linux-current/DEPENDS | 2 -
kernel/linux-current/DETAILS | 27 -------------------
kernel/linux-current/POST_INSTALL | 8 -----
kernel/linux-current/PRE_BUILD | 52 -------------------------------------
kernel/linux/BUILD | 14 ++++++++++
kernel/linux/CONFIGURE | 11 ++++++++
kernel/linux/DEPENDS | 2 +
kernel/linux/DETAILS | 27 +++++++++++++++++++
kernel/linux/POST_INSTALL | 8 +++++
kernel/linux/PRE_BUILD | 52 +++++++++++++++++++++++++++++++++++++
12 files changed, 114 insertions(+), 114 deletions(-)
diff --git a/kernel/linux-current/BUILD b/kernel/linux-current/BUILD
deleted file mode 100644
index 7b8ed5f..0000000
--- a/kernel/linux-current/BUILD
+++ /dev/null
@@ -1,14 +0,0 @@
-# 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`
diff --git a/kernel/linux-current/CONFIGURE b/kernel/linux-current/CONFIGURE
deleted file mode 100644
index 5dbd7cc..0000000
--- a/kernel/linux-current/CONFIGURE
+++ /dev/null
@@ -1,11 +0,0 @@
-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
-
diff --git a/kernel/linux-current/DEPENDS b/kernel/linux-current/DEPENDS
deleted file mode 100644
index 5a3371a..0000000
--- a/kernel/linux-current/DEPENDS
+++ /dev/null
@@ -1,2 +0,0 @@
-depends autoconf
-depends module-init-tools
diff --git a/kernel/linux-current/DETAILS b/kernel/linux-current/DETAILS
deleted file mode 100644
index 6a4c4ef..0000000
--- a/kernel/linux-current/DETAILS
+++ /dev/null
@@ -1,27 +0,0 @@
- MODULE=linux-current
- VERSION=3.1.1
- SOURCE=linux-$VERSION.tar.bz2
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/linux-$VERSION
- SOURCE_URL[0]=$KERNEL_URL/pub/linux/kernel/v3.0
- SOURCE_URL[1]=http://www.kernel.org/pub/linux/kernel/v3.0
- SOURCE2_URL[0]=$KERNEL_URL/pub/linux/kernel/v3.0
- SOURCE2_URL[1]=http://www.kernel.org/pub/linux/kernel/v3.0
- SOURCE_VFY=sha1:2c3796e87a68b66eb7e35673e14924ec3cd00aab
- WEB_SITE=http://www.kernel.org
- ENTERED=20111121
- UPDATED=20111121
- SHORT="The core of a Linux GNU Operating System"
- KEEP_SOURCE=on
- TMPFS=off
-
-cat << EOF
-This is the latest stable version the Linux kernel for Lunar Linux distro.
-
-Linux is a clone of the Unix kernel, written from scratch by Linus
-Torvalds with assistance from a loosely-knit team of hackers across the
-Net. It aims towards POSIX and Single UNIX Specification compliance. It
-has all the features you would expect in a modern fully-fledged Unix
-kernel, including true multitasking, virtual memory, shared libraries,
-demand loading, shared copy-on-write executables, proper memory
-management, and TCP/IP networking.
-EOF
diff --git a/kernel/linux-current/POST_INSTALL b/kernel/linux-current/POST_INSTALL
deleted file mode 100644
index dd6cddc..0000000
--- a/kernel/linux-current/POST_INSTALL
+++ /dev/null
@@ -1,8 +0,0 @@
-update_bootloader $VERSION-`arch` $VERSION-`arch`
-
-# Reinstall packages that add their own kernel modules
-
-lin -c kernel-reqs
-
-# create /sys
-mkdir -p /sys
diff --git a/kernel/linux-current/PRE_BUILD b/kernel/linux-current/PRE_BUILD
deleted file mode 100644
index 0b5f0af..0000000
--- a/kernel/linux-current/PRE_BUILD
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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.current ]; then
- cp $CONFIG_CACHE/.config.current $SOURCE_DIRECTORY/.config;
-elif [ -f $CONFIG_CACHE/.config.2.6.stable ]; then
- cp $CONFIG_CACHE/.config.2.6.stable $SOURCE_DIRECTORY/.config;
-fi
-
-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
-
diff --git a/kernel/linux/BUILD b/kernel/linux/BUILD
new file mode 100644
index 0000000..7b8ed5f
--- /dev/null
+++ b/kernel/linux/BUILD
@@ -0,0 +1,14 @@
+# 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`
diff --git a/kernel/linux/CONFIGURE b/kernel/linux/CONFIGURE
new file mode 100644
index 0000000..5dbd7cc
--- /dev/null
+++ b/kernel/linux/CONFIGURE
@@ -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
+
diff --git a/kernel/linux/DEPENDS b/kernel/linux/DEPENDS
new file mode 100644
index 0000000..5a3371a
--- /dev/null
+++ b/kernel/linux/DEPENDS
@@ -0,0 +1,2 @@
+depends autoconf
+depends module-init-tools
diff --git a/kernel/linux/DETAILS b/kernel/linux/DETAILS
new file mode 100644
index 0000000..6ec301e
--- /dev/null
+++ b/kernel/linux/DETAILS
@@ -0,0 +1,27 @@
+ MODULE=linux
+ VERSION=3.1.1
+ SOURCE=linux-$VERSION.tar.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/linux-$VERSION
+ SOURCE_URL[0]=$KERNEL_URL/pub/linux/kernel/v3.0
+ SOURCE_URL[1]=http://www.kernel.org/pub/linux/kernel/v3.0
+ SOURCE2_URL[0]=$KERNEL_URL/pub/linux/kernel/v3.0
+ SOURCE2_URL[1]=http://www.kernel.org/pub/linux/kernel/v3.0
+ SOURCE_VFY=sha1:2c3796e87a68b66eb7e35673e14924ec3cd00aab
+ WEB_SITE=http://www.kernel.org
+ ENTERED=20111121
+ UPDATED=20111121
+ SHORT="The core of a Linux GNU Operating System"
+ KEEP_SOURCE=on
+ TMPFS=off
+
+cat << EOF
+This is the latest stable version the Linux kernel for Lunar Linux distro.
+
+Linux is a clone of the Unix kernel, written from scratch by Linus
+Torvalds with assistance from a loosely-knit team of hackers across the
+Net. It aims towards POSIX and Single UNIX Specification compliance. It
+has all the features you would expect in a modern fully-fledged Unix
+kernel, including true multitasking, virtual memory, shared libraries,
+demand loading, shared copy-on-write executables, proper memory
+management, and TCP/IP networking.
+EOF
diff --git a/kernel/linux/POST_INSTALL b/kernel/linux/POST_INSTALL
new file mode 100644
index 0000000..dd6cddc
--- /dev/null
+++ b/kernel/linux/POST_INSTALL
@@ -0,0 +1,8 @@
+update_bootloader $VERSION-`arch` $VERSION-`arch`
+
+# Reinstall packages that add their own kernel modules
+
+lin -c kernel-reqs
+
+# create /sys
+mkdir -p /sys
diff --git a/kernel/linux/PRE_BUILD b/kernel/linux/PRE_BUILD
new file mode 100644
index 0000000..0b5f0af
--- /dev/null
+++ b/kernel/linux/PRE_BUILD
@@ -0,0 +1,52 @@
+# 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.current ]; then
+ cp $CONFIG_CACHE/.config.current $SOURCE_DIRECTORY/.config;
+elif [ -f $CONFIG_CACHE/.config.2.6.stable ]; then
+ cp $CONFIG_CACHE/.config.2.6.stable $SOURCE_DIRECTORY/.config;
+fi
+
+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
+
More information about the Lunar-commits
mailing list