git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@141 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Tim Yamin 21 years ago
parent ce86dbc949
commit 389b51f0c9

@ -21,6 +21,9 @@ IMPORTANT KERNEL NOTES:
- If you want Bootsplash, you MUST have VESAFB enabled for 2.6, - If you want Bootsplash, you MUST have VESAFB enabled for 2.6,
other framebuffers won't work. You MUST also enable other framebuffers won't work. You MUST also enable
"video mode selection support" and "Framebuffer Console support" "video mode selection support" and "Framebuffer Console support"
- From gentoo-dev-sources-2.6.8 and above, bootsplash has been replaced
with gensplash. Gensplash has the same kernel configuration requirements
as bootsplash, but works properly with any framebuffer device.
- To build a kernel with Genkernel you must have - To build a kernel with Genkernel you must have
"Block devices->Loopback device support" "Block devices->Loopback device support"
"Block devices->RAM disk support" "Block devices->RAM disk support"

@ -31,13 +31,18 @@ longusage() {
echo " --oldconfig Implies --no-clean and runs a 'make oldconfig'" echo " --oldconfig Implies --no-clean and runs a 'make oldconfig'"
echo " --bootsplash Install bootsplash support to the initrd" echo " --bootsplash Install bootsplash support to the initrd"
echo " --no-bootsplash Do not use bootsplash" echo " --no-bootsplash Do not use bootsplash"
echo " --gensplash Install gensplash support into bzImage"
echo " --no-gensplash Do not use gensplash"
echo " --install Install the kernel after building" echo " --install Install the kernel after building"
echo " --no-install Do not install the kernel after building" echo " --no-install Do not install the kernel after building"
echo " --no-initrdmodules Don't copy any modules to the initrd" echo " --no-initrdmodules Don't copy any modules to the initrd"
echo " --udev Add in udev support." echo " --udev Enables udev support in your initrd"
echo " --no-udev Remove udev support."
echo " --callback=<...> Run the specified arguments after" echo " --callback=<...> Run the specified arguments after"
echo " the kernel and modules have been" echo " the kernel and modules have been"
echo " compiled." echo " compiled."
echo " --postconf=<...> Run the specified arguments after"
echo " the kernel has been configured."
echo " Kernel settings" echo " Kernel settings"
echo " --kerneldir=<dir> Location of the kernel sources" echo " --kerneldir=<dir> Location of the kernel sources"
echo " --kernel-config=<file> Kernel configuration file to use for compilation" echo " --kernel-config=<file> Kernel configuration file to use for compilation"
@ -57,9 +62,10 @@ longusage() {
echo " --no-mountboot Don't mount /boot automatically" echo " --no-mountboot Don't mount /boot automatically"
echo " Initialization" echo " Initialization"
echo " --bootsplash=<theme> Force bootsplash using <theme>." echo " --bootsplash=<theme> Force bootsplash using <theme>."
echo " --gensplash=<theme> Force gensplash using <theme>."
echo " --do-keymap-auto Forces keymap selection at boot." echo " --do-keymap-auto Forces keymap selection at boot."
echo " --no-lvm2 Don't add in LVM2 support." echo " --no-lvm2 Don't add in LVM2 support."
echo " --bootloader=grub Add new kernel to GRUB configuration" echo " --bootloader=grub Add new kernel to GRUB configuration"
echo " Internals" echo " Internals"
echo " --arch-override=<arch> Force to arch instead of autodetect" echo " --arch-override=<arch> Force to arch instead of autodetect"
echo " --cachedir=<dir> Override the default cache location" echo " --cachedir=<dir> Override the default cache location"
@ -213,18 +219,41 @@ parse_cmdline() {
;; ;;
--bootsplash=*) --bootsplash=*)
CMD_BOOTSPLASH=1 CMD_BOOTSPLASH=1
CMD_GENSPLASH=0
BOOTSPLASH_THEME=`parse_opt "$*"` BOOTSPLASH_THEME=`parse_opt "$*"`
print_info 2 "CMD_BOOTSPLASH: $CMD_BOOTSPLASH" print_info 2 "CMD_BOOTSPLASH: $CMD_BOOTSPLASH"
print_info 2 "CMD_GENSPLASH: $CMD_GENSPLASH"
print_info 2 "BOOTSPLASH_THEME: $BOOTSPLASH_THEME" print_info 2 "BOOTSPLASH_THEME: $BOOTSPLASH_THEME"
;; ;;
--bootsplash) --bootsplash)
CMD_BOOTSPLASH=1 CMD_BOOTSPLASH=1
CMD_GENSPLASH=0
print_info 2 "CMD_BOOTSPLASH: $CMD_BOOTSPLASH" print_info 2 "CMD_BOOTSPLASH: $CMD_BOOTSPLASH"
print_info 2 "CMD_GENSPLASH: $CMD_GENSPLASH"
;; ;;
--no-bootsplash) --no-bootsplash)
CMD_BOOTSPLASH=0 CMD_BOOTSPLASH=0
print_info 2 "CMD_BOOTSPLASH: $CMD_BOOTSPLASH" print_info 2 "CMD_BOOTSPLASH: $CMD_BOOTSPLASH"
;; ;;
--gensplash=*)
CMD_GENSPLASH=1
CMD_BOOTSPLASH=0
GENSPLASH_THEME=`parse_opt "$*"`
print_info 2 "CMD_GENSPLASH: $CMD_GENSPLASH"
print_info 2 "GENSPLASH_THEME: $GENSPLASH_THEME"
print_info 2 "CMD_BOOTSPLASH: $CMD_BOOTSPLASH"
;;
--gensplash)
CMD_GENSPLASH=1
CMD_BOOTSPLASH=0
GENSPLASH_THEME='default'
print_info 2 "CMD_GENSPLASH: $CMD_GENSPLASH"
print_info 2 "CMD_BOOTSPLASH: $CMD_BOOTSPLASH"
;;
--no-gensplash)
CMD_GENSPLASH=0
print_info 2 "CMD_GENSPLASH: $CMD_GENSPLASH"
;;
--install) --install)
CMD_NOINSTALL=0 CMD_NOINSTALL=0
print_info 2 "CMD_NOINSTALL: $CMD_NOINSTALL" print_info 2 "CMD_NOINSTALL: $CMD_NOINSTALL"
@ -241,10 +270,18 @@ parse_cmdline() {
CMD_UDEV=1 CMD_UDEV=1
print_info 2 "CMD_UDEV: $CMD_UDEV" print_info 2 "CMD_UDEV: $CMD_UDEV"
;; ;;
--no-udev)
CMD_UDEV=0
print_info 2 "CMD_UDEV: $CMD_UDEV"
;;
--callback*) --callback*)
CMD_CALLBACK=`parse_opt "$*"` CMD_CALLBACK=`parse_opt "$*"`
print_info 2 "CMD_CALLBACK: $CMD_CALLBACK/$*" print_info 2 "CMD_CALLBACK: $CMD_CALLBACK/$*"
;; ;;
--postconf*)
CMD_POSTCONF=`parse_opt "$*"`
print_info 2 "CMD_POSTCONF: $CMD_POSTCONF/$*"
;;
--tempdir*) --tempdir*)
TEMP=`parse_opt "$*"` TEMP=`parse_opt "$*"`
print_info 2 "TEMP: $TEMP" print_info 2 "TEMP: $TEMP"

@ -332,6 +332,9 @@ compile_modutils() {
} }
compile_module_init_tools() { compile_module_init_tools() {
# I've disabled dietlibc support for the time being since the
# version we use misses a few needed system calls.
local ARGS local ARGS
if [ ! -f "${MODULE_INIT_TOOLS_BINCACHE}" ] if [ ! -f "${MODULE_INIT_TOOLS_BINCACHE}" ]
then then
@ -345,12 +348,12 @@ compile_module_init_tools() {
cd "${MODULE_INIT_TOOLS_DIR}" cd "${MODULE_INIT_TOOLS_DIR}"
print_info 1 'module-init-tools: >> Configuring' print_info 1 'module-init-tools: >> Configuring'
if [ "${USE_DIETLIBC}" -eq '1' ] # if [ "${USE_DIETLIBC}" -eq '1' ]
then # then
extract_dietlibc_bincache # extract_dietlibc_bincache
OLD_CC="${UTILS_CC}" # OLD_CC="${UTILS_CC}"
UTILS_CC="${TEMP}/diet/bin/diet ${UTILS_CC}" # UTILS_CC="${TEMP}/diet/bin/diet ${UTILS_CC}"
fi # fi
export_utils_args export_utils_args
./configure >> ${DEBUGFILE} 2>&1 || ./configure >> ${DEBUGFILE} 2>&1 ||
@ -359,11 +362,11 @@ compile_module_init_tools() {
print_info 1 ' >> Compiling...' print_info 1 ' >> Compiling...'
compile_generic "all" utils compile_generic "all" utils
if [ "${USE_DIETLIBC}" -eq '1' ] # if [ "${USE_DIETLIBC}" -eq '1' ]
then # then
clean_dietlibc_bincache # clean_dietlibc_bincache
UTILS_CC="${OLD_CC}" # UTILS_CC="${OLD_CC}"
fi # fi
print_info 1 ' >> Copying to cache...' print_info 1 ' >> Copying to cache...'
[ -f "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static" ] || [ -f "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static" ] ||

@ -116,6 +116,18 @@ determine_real_args() {
BOOTSPLASH=0 BOOTSPLASH=0
fi fi
if [ "${CMD_GENSPLASH}" != '' ]
then
GENSPLASH=${CMD_GENSPLASH}
fi
if isTrue ${GENSPLASH}
then
GENSPLASH=1
else
GENSPLASH=0
fi
if isTrue ${COMPRESS_INITRD} if isTrue ${COMPRESS_INITRD}
then then
COMPRESS_INITRD=1 COMPRESS_INITRD=1
@ -194,7 +206,9 @@ determine_real_args() {
if isTrue "${CMD_UDEV}" if isTrue "${CMD_UDEV}"
then then
UDEV=1 UDEV=1
DEVFS=0
else else
UDEV=0 UDEV=0
DEVFS=1
fi fi
} }

@ -191,7 +191,7 @@ create_initrd_aux() {
group="$(echo $group_modules | cut -d_ -f2 | tr "[:upper:]" "[:lower:]")" group="$(echo $group_modules | cut -d_ -f2 | tr "[:upper:]" "[:lower:]")"
echo -n "${group} " >> "${TEMP}/initrd-temp/etc/initrd.defaults" echo -n "${group} " >> "${TEMP}/initrd-temp/etc/initrd.defaults"
done done
echo "\"" >> "${TEMP}/initrd-temp/etc/initrd.defaults" echo '"' >> "${TEMP}/initrd-temp/etc/initrd.defaults"
if [ -f "${GK_SHARE}/${ARCH}/modprobe" ] if [ -f "${GK_SHARE}/${ARCH}/modprobe" ]
then then

@ -17,8 +17,8 @@ MISCOPTS='idebug detect'
# Only sections that are in by default or those that # Only sections that are in by default or those that
# are not module groups need to be defined here... # are not module groups need to be defined here...
HWOPTS="usb firewire keymap cache lvm2" HWOPTS='usb firewire keymap cache lvm2'
MY_HWOPTS="usb firewire lvm2" MY_HWOPTS='usb firewire lvm2'
QUIET=1 QUIET=1
ROOT_LINKS='bin sbin lib lib64 boot usr opt' ROOT_LINKS='bin sbin lib lib64 boot usr opt'
@ -33,3 +33,4 @@ fi
REAL_ROOT='' REAL_ROOT=''
CDROOT=0 CDROOT=0
CDROOT_DEV=''

@ -34,15 +34,28 @@ findcdmount() {
do do
echo -e "${GOOD}>>${NORMAL} Attempting to mount CD:- ${x}" echo -e "${GOOD}>>${NORMAL} Attempting to mount CD:- ${x}"
mount -r ${x} /newroot/mnt/cdrom > /dev/null 2>&1 mount -r ${x} /newroot/mnt/cdrom > /dev/null 2>&1
if [ "$?" = "0" ]
if [ "$?" = '0' ]
then then
REAL_ROOT="${x}" REAL_ROOT="${x}"
break break
## FIXME: I need a proper identifier present on all LiveCDs to work across
## all architectures.
# # Check for a LiveCD
# if [ -e /newroot/mnt/cdrom/.gentoo_LiveCD ]
# then
# REAL_ROOT="${x}"
# break
# else
# umount /newroot/mnt/cdrom
# fi
fi fi
done done
if [ "${REAL_ROOT}" != "" ] if [ "${REAL_ROOT}" != "" ]
then then
echo -e "${GOOD}>>${NORMAL} CD medium found on $1" echo -e "${GOOD}>>${NORMAL} CD medium found on ${x}"
fi fi
fi fi
} }
@ -59,6 +72,8 @@ runUdev() {
# using information from /sys, and only those # using information from /sys, and only those
# devices (since other are not needed for boot). # devices (since other are not needed for boot).
# We also do VC's for keymap support.
for x in block/* for x in block/*
do do
export DEVPATH="/${x}" export DEVPATH="/${x}"
@ -73,6 +88,21 @@ runUdev() {
fi fi
done done
done done
for x in class/tty
do
export DEVPATH="/${x}"
/sbin/udev class
for y in ${x}/*
do
if [ -f "${y}/dev" ]
then
export DEVPATH="/${y}"
/sbin/udev class
fi
done
done
cd / cd /
unset -v ACTION DEVPATH UDEV_NO_SLEEP unset -v ACTION DEVPATH UDEV_NO_SLEEP

@ -34,14 +34,21 @@ do
CDROOT=1 CDROOT=1
REAL_ROOT='' REAL_ROOT=''
;; ;;
cdroot\=*)
CDROOT=1
CDROOT_DEV=`parse_opt "${x}"`
REAL_ROOT=''
;;
devfs) devfs)
USE_DEVFS_NORMAL=1 USE_DEVFS_NORMAL=1
USE_UDEV_NORMAL=0
;; ;;
nodevfs) nodevfs)
USE_DEVFS_NORMAL=0 USE_DEVFS_NORMAL=0
;; ;;
udev) udev)
USE_UDEV_NORMAL=1 USE_UDEV_NORMAL=1
USE_DEVFS_NORMAL=0
;; ;;
noudev) noudev)
USE_UDEV_NORMAL=0 USE_UDEV_NORMAL=0
@ -55,22 +62,27 @@ do
real_init\=*) real_init\=*)
REAL_INIT=`parse_opt "${x}"` REAL_INIT=`parse_opt "${x}"`
;; ;;
scandelay)
SDELAY=10
;;
*) *)
;; ;;
esac esac
done done
[ -e /proc/scsi/scsi ] && echo 'scsi add-single-device 0 0 0 0' > /proc/scsi/scsi
# Scan CMDLINE for any "doscsi" or "noscsi"-type arguments # Scan CMDLINE for any "doscsi" or "noscsi"-type arguments
for x in $HWOPTS for x in $HWOPTS
do do
for y in $CMDLINE for y in $CMDLINE
do do
if [ "$y" = "do${x}" ] if [ "${y}" = "do${x}" ]
then then
MY_HWOPTS="${MY_HWOPTS} $x" MY_HWOPTS="${MY_HWOPTS} $x"
elif [ "$y" = "no${x}" ] elif [ "${y}" = "no${x}" ]
then then
MY_HWOPTS="`echo ${MY_HWOPTS} | sed -e 's/${x}//g' -`" MY_HWOPTS="`echo ${MY_HWOPTS} | sed -e \"s/${x}//g\" -`"
fi fi
done done
done done
@ -91,36 +103,34 @@ fi
chooseKeymap() { chooseKeymap() {
echo -e "${GOOD}>>${NORMAL}${BOLD} Loading keymaps...${NORMAL}" echo -e "${GOOD}>>${NORMAL}${BOLD} Loading keymaps...${NORMAL}"
cat /lib/keymaps/keymapList cat /lib/keymaps/keymapList
read -p '<< Load keymap: ' keymap read -t 10 -p '<< Load keymap (Enter for default): ' keymap
if [ -e /lib/keymaps/${keymap}.map ] if [ -e /lib/keymaps/${keymap}.map ]
then then
echo -e "${GOOD}>>${NORMAL}${BOLD} Loading the ''${keymap}'' keymap...${NORMAL}" echo -e "${GOOD}>>${NORMAL}${BOLD} Loading the ''${keymap}'' keymap...${NORMAL}"
loadkmap < /lib/keymaps/${keymap}.map loadkmap < /lib/keymaps/${keymap}.map
elif [ "$keymap" = '' ] elif [ "$keymap" = '' ]
then then
echo -e "${GOOD}>>${NORMAL}${BOLD} Loading default US keymap...${NORMAL}" echo -e "${GOOD}>>${NORMAL}${BOLD} Keeping default keymap...${NORMAL}"
loadkmap < /lib/keymaps/us.map
else else
echo -e "${BAD}!! ${NORMAL}${BOLD}Sorry, but keymap ''${keymap}'' is invalid!${NORMAL}" echo -e "${BAD}!! ${NORMAL}${BOLD}Sorry, but keymap ''${keymap}'' is invalid!${NORMAL}"
chooseKeymap chooseKeymap
fi fi
} }
[ "${DO_keymap}" ] && chooseKeymap
echo -e "${GOOD}>>${NORMAL}${BOLD} Mounting filesystems${NORMAL}" echo -e "${GOOD}>>${NORMAL}${BOLD} Mounting filesystems${NORMAL}"
# Check udev is on... # Check udev is on...
[ "${KMAJOR}" -ge 2 ] && USE_UDEV_SUPPORT=1 # [ "${KMAJOR}" -ge 2 ] && USE_UDEV_SUPPORT=1
[ "${KMAJOR}" -eq 2 -a "${KMINOR}" -ge '6' ] && USE_UDEV_SUPPORT=1 # [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -ge '6' -a ! "${USE_UDEV_SUPPORT}" -eq '0' ] && USE_UDEV_SUPPORT=1
[ "${USE_UDEV_SUPPORT}" -eq '1' -a -f /sbin/udev -a "${USE_UDEV_NORMAL}" -ne 0 ] && USE_UDEV_NORMAL=1 [ "${USE_UDEV_NORMAL}" -eq '1' -a ! -x /sbin/udev ] && USE_UDEV_NORMAL=0
# Disable udev support if /dev is already mounted as devfs
[ -e /dev/.devfsd ] && USE_UDEV_NORMAL=0
# If using 2.4 and udev; back off... # If using 2.4 and udev; back off...
[ "${KMAJOR}" -eq 2 -a "${KMINOR}" -lt '6' -a "${USE_UDEV_NORMAL}" -eq 1 ] && [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -lt '6' -a "${USE_UDEV_NORMAL}" -eq 1 ] &&
USE_UDEV_NORMAL=0 USE_UDEV_NORMAL=0
# Disable devfs if we want udev...
[ -e /dev/.devfsd -a "${USE_UDEV_NORMAL}" -eq 1 ] && echo '>> Enabling devfsd in favour of udev; use "nodevfs" if this is not intended...' && USE_UDEV_NORMAL=0
mkdir /newroot mkdir /newroot
if [ "${CDROOT}" -eq '1' ] if [ "${CDROOT}" -eq '1' ]
then then
@ -129,14 +139,14 @@ then
if [ "${USE_UDEV_NORMAL}" -eq '1' ] if [ "${USE_UDEV_NORMAL}" -eq '1' ]
then then
# Udev is semi-broken on non /sys sysfs mount points. # Udev is semi-broken on non /sys sysfs mount points.
mount -t sysfs sys /sys 2> /dev/null mount -t sysfs none /sys
mount -t sysfs sys /newroot/sys 2> /dev/null
[ "$?" -eq '0' ] || USE_UDEV_NORMAL=0 [ "$?" -eq '0' ] || USE_UDEV_NORMAL=0
fi fi
if [ "${USE_UDEV_NORMAL}" -eq '1' ] if [ "${USE_UDEV_NORMAL}" -eq '1' ]
then then
cd /sys cd /sys
kill_devfsd
runUdev runUdev
mv /dev/* /newroot/dev mv /dev/* /newroot/dev
else else
@ -144,14 +154,26 @@ then
then then
mount -t devfs devfs /newroot/dev mount -t devfs devfs /newroot/dev
devfsd /newroot/dev -np devfsd /newroot/dev -np
sleep 1 if [ -n "${SDELAY}" ]; then
sleep ${SDELAY}
else
sleep 1
fi
fi fi
fi fi
findcdmount /newroot/dev/cdroms/* if [ "${CDROOT_DEV}" = '' ]
then
findcdmount /newroot/dev/cdroms/*
# Not in /dev/cdroms: try /dev/ide/cd
[ "${REAL_ROOT}" = '' ] && findcdmount /newroot/dev/ide/cd/*
[ "${REAL_ROOT}" = '' ] && findcdmount /newroot/dev/sr0
else
# Device specified on command line
findcdmount /newroot/${CDROOT_DEV}
fi
# Not in /dev/cdroms: try /dev/ide/cd
[ "${REAL_ROOT}" = '' ] && findcdmount /newroot/dev/ide/cd/*
if [ "${REAL_ROOT}" = '' ] if [ "${REAL_ROOT}" = '' ]
then then
# Undo stuff # Undo stuff
@ -167,10 +189,23 @@ then
fi fi
fi fi
if [ "${DO_keymap}" ]
then
if [ ! -e /dev/vc/0 ]
then
DEVBIND=1
mount -o bind /newroot/dev /dev
fi
chooseKeymap
[ "${DEVBIND}" -eq '1' ] && umount /dev
fi
# FIX: indent me in one $CDROOT -eq '0'
# Try to mount sysfs, and if it fails, do not use udev # Try to mount sysfs, and if it fails, do not use udev
if [ "${USE_UDEV_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ] if [ "${USE_UDEV_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ]
then then
mount -t sysfs sys /sys 2> /dev/null mount -t sysfs none /sys
[ "$?" -eq '0' ] || USE_UDEV_NORMAL=0 [ "$?" -eq '0' ] || USE_UDEV_NORMAL=0
fi fi
@ -380,9 +415,12 @@ then
elif [ "${CDROOT}" -eq '1' ] elif [ "${CDROOT}" -eq '1' ]
then then
umount /tmp/.initrd/proc || echo "*: Failed to unmount the initrd /proc!" umount /tmp/.initrd/proc || echo "*: Failed to unmount the initrd /proc!"
umount /dev > /dev/null 2>&1 umount /dev 2>/dev/null
mount -n --move /tmp/.initrd/dev dev || echo '*: Failed to move over the /dev tree!' mount -n --move /tmp/.initrd/dev dev 2>/dev/null
rm /tmp/.initrd/dev -rf || '*: Failed to remove the initrd /dev!' rm /tmp/.initrd/dev -rf || '*: Failed to remove the initrd /dev!'
umount /sys 2>/dev/null
umount /tmp/.initrd/sys 2>/dev/null
fi fi
echo -n '.' echo -n '.'

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Genkernel v3 # Genkernel v3
GK_V='3.0.2g' GK_V='3.1.0b'
TEMP='/var/tmp/genkernel' TEMP='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified. TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
@ -147,6 +147,55 @@ then
# Make deps # Make deps
compile_dep compile_dep
# Make prepare [2.6]
[ "${VER}" -gt '2' ] || [ "${VER}" -eq '2' -a "${PAT}" -ge '6' ] && compile_generic prepare kernel
# Run postconf
if [ "${CMD_POSTCONF}" != '' ]
then
print_info 1 '' 1 0
print_info 1 "Preparing to run postconf: \"${CMD_POSTCONF}\"" 0
CALLBACK_ESCAPE=0
CALLBACK_COUNT=0
trap "CALLBACK_ESCAPE=1" TERM KILL INT QUIT ABRT
while [[ ${CALLBACK_ESCAPE} -eq 0 && ${CALLBACK_COUNT} -lt 5 ]]
do
sleep 1; echo -n '.';
let CALLBACK_COUNT=${CALLBACK_COUNT}+1
done
if [ "${CALLBACK_ESCAPE}" -eq 0 ]
then
echo
echo
eval ${CMD_POSTCONF} | tee -a ${DEBUGFILE}
echo
print_info 1 "<<< Postconf callback exit status: ${PIPESTATUS[0]}"
else
echo
print_info 1 '>>> Postconf cancelled...'
fi
trap - TERM KILL INT QUIT ABRT
print_info 1 '' 1 0
fi
if [ "${GENSPLASH}" -eq '1' ]
then
if [ -x /sbin/splash ]
then
[ -z "${GENSPLASH_THEME}" ] && [ -e /etc/conf.d/splash ] && source /etc/conf.d/splash
[ -z "${GENSPLASH_THEME}" ] && GENSPLASH_THEME=default
print_info 1 " >> Installing gensplash [ using the ${GENSPLASH_THEME} theme ]..."
sed -i 's:$(obj)/gen_init_cpio $(initramfs-y) FORCE:$(if $(shell [ ! -f $(obj)/initramfs_data.cpio ] && echo '1' ), $(obj)/gen_init_cpio $(initramfs-y)):' ${KERNEL_DIR}/usr/Makefile
splash_geninitramfs -g ${KERNEL_DIR}/usr/initramfs_data.cpio.gz ${GENSPLASH_THEME}
gunzip ${KERNEL_DIR}/usr/initramfs_data.cpio.gz
else
print_warning 1 ' >> No splash detected; skipping!'
fi
fi
# Compile kernel # Compile kernel
compile_kernel compile_kernel
@ -216,8 +265,8 @@ then
fi fi
compile_devfsd compile_devfsd
[ "${VER}" -lt '2' ] || [ "${VER}" -eq '2' -a "${PAT}" -lt '6' -a "${UDEV}" -eq '1' ] && UDEV=0 && print_info 1 'udev: Target is a 2.4 kernel, support disabled.' #UDEV=0
[ "${VER}" -gt '2' ] || [ "${VER}" -eq '2' -a "${PAT}" -ge '6' ] && UDEV=1 && print_info 1 'udev: Target is a 2.6 kernel, support enabled.' #[ "${VER}" -gt '2' ] || [ "${VER}" -eq '2' -a "${PAT}" -ge '6' -a "${NOUDEV}" -eq '0' ] && UDEV=1 && print_info 1 'udev: Target is a 2.6 kernel, support enabled.'
[ "${UDEV}" -eq '1' ] && compile_udev [ "${UDEV}" -eq '1' ] && compile_udev
# Create initrd # Create initrd

@ -78,7 +78,7 @@ MODUTILS_SRCTAR="${GK_SHARE}/pkg/modutils-${MODUTILS_VER}.tar.bz2"
MODUTILS_DIR="modutils-${MODUTILS_VER}" MODUTILS_DIR="modutils-${MODUTILS_VER}"
MODUTILS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.4.bz2" MODUTILS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.4.bz2"
DIETLIBC_VER="0.26" DIETLIBC_VER="0.27"
DIETLIBC_SRCTAR="${GK_SHARE}/pkg/dietlibc-${DIETLIBC_VER}.tar.bz2" DIETLIBC_SRCTAR="${GK_SHARE}/pkg/dietlibc-${DIETLIBC_VER}.tar.bz2"
DIETLIBC_DIR="dietlibc-${DIETLIBC_VER}" DIETLIBC_DIR="dietlibc-${DIETLIBC_VER}"
DIETLIBC_BINCACHE="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%.tar.bz2" DIETLIBC_BINCACHE="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%.tar.bz2"
@ -90,7 +90,7 @@ DEVFSD_DIR="devfsd"
DEVFSD_BINCACHE="%%CACHE%%/devfsd-${DEVFSD_VER}-%%ARCH%%.bz2" DEVFSD_BINCACHE="%%CACHE%%/devfsd-${DEVFSD_VER}-%%ARCH%%.bz2"
DEVFSD_CONF_BINCACHE="%%CACHE%%/devfsd-conf-${DIETLIBC_VER}-%%ARCH%%.bz2" DEVFSD_CONF_BINCACHE="%%CACHE%%/devfsd-conf-${DIETLIBC_VER}-%%ARCH%%.bz2"
UDEV_VER="030" UDEV_VER="039"
UDEV_DIR="udev-${UDEV_VER}" UDEV_DIR="udev-${UDEV_VER}"
UDEV_SRCTAR="${GK_SHARE}/pkg/udev-${UDEV_VER}.tar.bz2" UDEV_SRCTAR="${GK_SHARE}/pkg/udev-${UDEV_VER}.tar.bz2"
UDEV_BINCACHE="%%CACHE%%/udev-${UDEV_VER}-%%ARCH%%.tar.bz2" UDEV_BINCACHE="%%CACHE%%/udev-${UDEV_VER}-%%ARCH%%.tar.bz2"

@ -1,60 +0,0 @@
--- busybox-1.00-pre2/shell/ash.c.orig 2003-08-24 16:31:08.000000000 -0700
+++ busybox-1.00-pre2/shell/ash.c 2003-08-24 16:32:41.000000000 -0700
@@ -543,6 +543,28 @@
static int parsenleft; /* copy of parsefile->nleft */
static int parselleft; /* copy of parsefile->lleft */
+struct strpush {
+ struct strpush *prev; /* preceding string on stack */
+ char *prevstring;
+ int prevnleft;
+#ifdef CONFIG_ASH_ALIAS
+ struct alias *ap; /* if push was associated with an alias */
+#endif
+ char *string; /* remember the string since it may change */
+};
+
+struct parsefile {
+ struct parsefile *prev; /* preceding file on stack */
+ int linno; /* current line */
+ int fd; /* file descriptor (or -1 if string) */
+ int nleft; /* number of chars left in this line */
+ int lleft; /* number of chars left in this buffer */
+ char *nextc; /* next char in buffer */
+ char *buf; /* input buffer */
+ struct strpush *strpush; /* for pushing strings at this level */
+ struct strpush basestrpush; /* so pushing one is fast */
+};
+
/* next character in input buffer */
static char *parsenextc; /* copy of parsefile->nextc */
static struct parsefile basepf; /* top level input file */
@@ -1577,28 +1599,6 @@
static int loopnest; /* current loop nesting level */
-struct strpush {
- struct strpush *prev; /* preceding string on stack */
- char *prevstring;
- int prevnleft;
-#ifdef CONFIG_ASH_ALIAS
- struct alias *ap; /* if push was associated with an alias */
-#endif
- char *string; /* remember the string since it may change */
-};
-
-struct parsefile {
- struct parsefile *prev; /* preceding file on stack */
- int linno; /* current line */
- int fd; /* file descriptor (or -1 if string) */
- int nleft; /* number of chars left in this line */
- int lleft; /* number of chars left in this buffer */
- char *nextc; /* next char in buffer */
- char *buf; /* input buffer */
- struct strpush *strpush; /* for pushing strings at this level */
- struct strpush basestrpush; /* so pushing one is fast */
-};
-
/*
* The parsefile structure pointed to by the global variable parsefile
* contains information about the current file being read.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -10,5 +10,5 @@ sim710 sym53c416"
MODULES_FIREWIRE="ieee1394 ohci1394 sbp2" MODULES_FIREWIRE="ieee1394 ohci1394 sbp2"
MODULES_ATARAID="ataraid pdcraid hptraid" MODULES_ATARAID="ataraid pdcraid hptraid"
MODULES_PCMCIA="pcmcia_core i82365 yenta_socket ds ide-cs" MODULES_PCMCIA="pcmcia_core yenta_socket i82365 ds ide-cs"
MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage" MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uchi-hcd ohci-hcd usbhid"

Loading…
Cancel
Save