CVS: moonbase/kernel/linux-openmosix BUILD, NONE, 1.1 CONFIGURE,
NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL,
NONE, 1.1 PRE_BUILD, NONE, 1.1
Auke Kok
sofar at lunar-linux.org
Mon Dec 8 23:39:26 GMT 2003
Update of /var/cvs/lunar/moonbase/kernel/linux-openmosix
In directory dbguin.lunar-linux.org:/tmp/cvs-serv25378/linux-openmosix
Added Files:
BUILD CONFIGURE DEPENDS DETAILS POST_INSTALL PRE_BUILD
Log Message:
CVS sucks okay???
--- NEW FILE: BUILD ---
cd /usr/src/linux
while
case $CONFIG_KERNEL in
y|Y)
case $CONFIG_METHOD in
xconfig )
if [ "$DISPLAY" ]; then
make xconfig || make menuconfig || make config
else
make menuconfig || make config
fi ;;
menuconfig )
make menuconfig || make config ;;
config )
make config ;;
esac
if query "Repeat $CONFIG_METHOD? " n ; then
CONFIG_KERNEL=y
else
CONFIG_KERNEL=n
fi
;;
*)
false ;;
esac
do
true
done
(
yes n | make oldconfig
cp .config $CONFIG_CACHE/.config.openmosix
rm -f arch/i386/boot/bzImage
# Because parallel make seems not to work, a hack
optimize_make &&
KMAKES=${MAKES:=1} &&
make -j${KMAKES} dep &&
make -j${KMAKES} clean &&
make -j${KMAKES} bzImage &&
make -j${KMAKES} modules &&
backup_mods_krnl ${VERSION}-openmosix-$PVERSION &&
prepare_install &&
make modules_install &&
cp arch/i386/boot/bzImage /boot/${VERSION}-openmosix-${PVERSION}
) > $C_FIFO 2>&1
--- NEW FILE: CONFIGURE ---
if ! grep -q "BOOT_LOADER" $MODULE_CONFIG; then
#message "The Linux Kernel requires a boot loader"
message "Choose either GRUB or LILO"
#BOOT_LOADER=lilo
if query "Use LILO?" y
then BOOT_LOADER=lilo
else BOOT_LOADER=grub
fi
echo "BOOT_LOADER=$BOOT_LOADER" >> $MODULE_CONFIG
fi
CONFIG_GRUB="n"
CONFIG_LILO="n"
if grep -q "BOOT_LOADER=grub" $MODULE_CONFIG &&
query "Configure grub?" n
then CONFIG_GRUB=y
fi
if grep -q "BOOT_LOADER=lilo" $MODULE_CONFIG &&
query "Configure lilo?" n
then CONFIG_LILO=y
fi
if ! grep -q "CONFIG_METHOD=" $MODULE_CONFIG; then
if query "Do you prefer make menuconfig over make config" y
then CONFIG_METHOD="menuconfig"
else
CONFIG_METHOD="config"
fi
echo "CONFIG_METHOD=$CONFIG_METHOD" >> $MODULE_CONFIG
fi
if [ ! -f $CONFIG_CACHE/.config ]; then
message "Preparing to make menuconfig."
CONFIG_KERNEL="y"
else
message "Reconfiguration is optional."
if query "Configure linux kernel?" n
then CONFIG_KERNEL=y
else
CONFIG_KERNEL=n
fi
fi
TEMP=$(grep -v "CONFIG_KERNEL=" $MODULE_CONFIG |
grep -v "CONFIG_LILO=" |
grep -v "CONFIG_GRUB=")
echo "$TEMP" > $MODULE_CONFIG
echo "CONFIG_KERNEL=$CONFIG_KERNEL" >> $MODULE_CONFIG
echo "CONFIG_LILO=$CONFIG_LILO" >> $MODULE_CONFIG
echo "CONFIG_GRUB=$CONFIG_GRUB" >> $MODULE_CONFIG
--- NEW FILE: DEPENDS ---
depends autoconf
--- NEW FILE: DETAILS ---
MODULE=linux-openmosix
VERSION=2.4.23
PVERSION=rc1.0.0
SOURCE=linux-$VERSION.tar.bz2
SOURCE2=linux-$VERSION-openmosix-patch-set-$PVERSION.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/linux-$VERSION
SOURCE_URL[0]=$KERNEL_URL/pub/linux/kernel/v2.4/$SOURCE
SOURCE_URL[1]=http://www.kernel.org/pub/linux/kernel/v2.4/$SOURCE
SOURCE2_URL[0]=$PATCH_URL/$SOURCE2
SOURCE_VFY=md5:642af5ab5e1fc63685fde85e9ae601e4
SOURCE2_VFY=md5:0e4792e4eec12b0debe0aec5d4c125e4
WEBSITE=http://www.kernel.org
ENTERED=20031206
UPDATED=20031206
KEEP_SOURCE="on"
SHORT="The Linux kernel, the core of the GNU/Linux OS, with the lunar patch set"
cat << EOF
This is the same as the linux module but with a fixed patche set with all
the main patches and with these additional patches:
openmosix-2
Features are enabled or disabled by the standard kernel configuration tools,
i.e. "make menuconfig" or "make config" or "make xconfig".
EOF
--- NEW FILE: POST_INSTALL ---
case $BOOT_LOADER in
lilo) update_lilo ${VERSION}-openmosix-${PVERSION} openmosix-$VERSION ;;
grub) update_grub ${VERSION}-openmosix-${PVERSION} openmosix-$VERSION ;;
esac
# Reinstall packages that add their own kernel modules
rm -f $BOOST_LOCK
if module_installed ftpfs; then lin ftpfs; fi
if module_installed cvsfs; then lin cvsfs; fi
if module_installed NVIDIA_kernel; then lin NVIDIA_kernel; fi
if module_installed NVIDIA; then lin NVIDIA; fi
if module_installed alsa-driver; then lin alsa-driver; fi
if module_installed iptables; then lin iptables; fi
if module_installed cryptoapi; then lin cryptoapi; fi
if module_installed pcmcia-cs; then lin -r -c pcmcia-cs; fi
if module_installed mwavem; then lin mwavem; fi
if module_installed cipe; then lin cipe; fi
if module_installed snare-core; then lin snare-core; fi
if module_installed ltmodem; then lin ltmodem; fi
if module_installed bluez-kernel; then lin bluez-kernel; fi
--- NEW FILE: PRE_BUILD ---
# Bail if we're not running a core with kernel fuctions
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"
kill $PPID
exit;
fi
cd /usr/src
rm -rf linux-$VERSION linux
unpack $SOURCE
ln -s linux-$VERSION linux
if [ -f $CONFIG_CACHE/.config ]; then
cp $CONFIG_CACHE/.config.openmosix /usr/src/linux/.config
fi
cd /usr/src/linux
mkdir patches
bzcat $SOURCE_CACHE/$SOURCE2 | tar -xf - -C patches
for pat in patches/openmosix/* patches/main/* patches/fix/* ; do
patch_it $pat 1
done
rm -rf patches
chown -R root:root /usr/src/linux-$VERSION
true
More information about the Lunar-commits
mailing list