Renamed gensplash to splash and marked gensplash as deprecated. This is 3.4.9_pre3 for testing.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@536 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 18 years ago
parent 10990c2210
commit 208a983055

@ -2,6 +2,12 @@
# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
17 Sep 2007; Chris Gianelloni <wolf31o2@gentoo.org> gen_cmdline.sh,
gen_configkernel.sh, gen_determineargs.sh, gen_initramfs.sh, genkernel,
genkernel.8, mips/config.sh:
Renamed gensplash to splash and marked gensplash as deprecated. This is
3.4.9_pre3 for testing.
17 Sep 2007; Chris Gianelloni <wolf31o2@gentoo.org> TODO, 17 Sep 2007; Chris Gianelloni <wolf31o2@gentoo.org> TODO,
alpha/modules_load, gen_cmdline.sh, gen_compile.sh, gen_configkernel.sh, alpha/modules_load, gen_cmdline.sh, gen_compile.sh, gen_configkernel.sh,
gen_determineargs.sh, gen_initramfs.sh, gen_initrd.sh, gen_determineargs.sh, gen_initramfs.sh, gen_initrd.sh,

@ -30,8 +30,9 @@ longusage() {
echo " --no-clean Do not run make clean before compilation" echo " --no-clean Do not run make clean before compilation"
echo " --no-mrproper Do not run make mrproper before compilation" echo " --no-mrproper Do not run make mrproper before compilation"
echo " --oldconfig Implies --no-clean and runs a 'make oldconfig'" echo " --oldconfig Implies --no-clean and runs a 'make oldconfig'"
echo " --gensplash Install gensplash support into bzImage" echo " --gensplash Install framebuffer splash support into initramfs"
echo " --no-gensplash Do not use gensplash" echo " --splash Install framebuffer splash support into initramfs"
echo " --no-splash Do not install framebuffer splash"
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 " --symlink Manage symlinks in /boot for installed images" echo " --symlink Manage symlinks in /boot for installed images"
@ -65,8 +66,10 @@ longusage() {
echo " --no-mountboot Don't mount BOOTDIR automatically" echo " --no-mountboot Don't mount BOOTDIR automatically"
echo " --bootdir=<dir> Set the location of the boot-directory, default is /boot" echo " --bootdir=<dir> Set the location of the boot-directory, default is /boot"
echo " Initialization" echo " Initialization"
echo " --gensplash=<theme> Force gensplash using <theme>" echo " --gensplash=<theme> Enable framebuffer splash using <theme>"
echo " --gensplash-res=<res> Select gensplash resolutions" echo " --gensplash-res=<res> Select splash theme resolutions to install"
echo " --splash=<theme> Enable framebuffer splash using <theme>"
echo " --splash-res=<res> Select splash theme resolutions to install"
echo " --do-keymap-auto Forces keymap selection at boot" echo " --do-keymap-auto Forces keymap selection at boot"
echo " --evms Include EVMS support" echo " --evms Include EVMS support"
echo " --> 'emerge evms' in the host operating system" echo " --> 'emerge evms' in the host operating system"
@ -315,23 +318,44 @@ parse_cmdline() {
print_info 2 "CMD_OLDCONFIG: ${CMD_OLDCONFIG}" print_info 2 "CMD_OLDCONFIG: ${CMD_OLDCONFIG}"
;; ;;
--gensplash=*) --gensplash=*)
CMD_GENSPLASH=1 CMD_SPLASH=1
GENSPLASH_THEME=`parse_opt "$*"` SPLASH_THEME=`parse_opt "$*"`
print_info 2 "CMD_GENSPLASH: ${CMD_GENSPLASH}" print_info 2 "CMD_SPLASH: ${CMD_SPLASH}"
print_info 2 "GENSPLASH_THEME: ${GENSPLASH_THEME}" print_info 2 "SPLASH_THEME: ${SPLASH_THEME}"
echo
print_warning 1 "Please use --splash, as --gensplash is deprecated."
;; ;;
--gensplash) --gensplash)
CMD_GENSPLASH=1 CMD_SPLASH=1
GENSPLASH_THEME='default' SPLASH_THEME='default'
print_info 2 "CMD_GENSPLASH: ${CMD_GENSPLASH}" print_info 2 "CMD_SPLASH: ${CMD_SPLASH}"
echo
print_warning 1 "Please use --splash, as --gensplash is deprecated."
;;
--splash=*)
CMD_SPLASH=1
SPLASH_THEME=`parse_opt "$*"`
print_info 2 "CMD_SPLASH: ${CMD_SPLASH}"
print_info 2 "SPLASH_THEME: ${SPLASH_THEME}"
;; ;;
--no-gensplash) --splash)
CMD_GENSPLASH=0 CMD_SPLASH=1
print_info 2 "CMD_GENSPLASH: ${CMD_GENSPLASH}" SPLASH_THEME='default'
print_info 2 "CMD_SPLASH: ${CMD_SPLASH}"
;;
--no-splash)
CMD_SPLASH=0
print_info 2 "CMD_SPLASH: ${CMD_SPLASH}"
;; ;;
--gensplash-res=*) --gensplash-res=*)
GENSPLASH_RES=`parse_opt "$*"` SPLASH_RES=`parse_opt "$*"`
print_info 2 "GENSPLASH_RES: ${GENSPLASH_RES}" print_info 2 "SPLASH_RES: ${SPLASH_RES}"
echo
print_warning 1 "Please use --splash-res, as --gensplash-res is deprecated."
;;
--splash-res=*)
SPLASH_RES=`parse_opt "$*"`
print_info 2 "SPLASH_RES: ${SPLASH_RES}"
;; ;;
--install) --install)
CMD_NOINSTALL=0 CMD_NOINSTALL=0

@ -116,7 +116,7 @@ config_kernel() {
sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_BLK_DEV_DM is.*/CONFIG_BLK_DEV_DM=m/g' sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_BLK_DEV_DM is.*/CONFIG_BLK_DEV_DM=m/g'
fi fi
if isTrue ${GENSPLASH} if isTrue ${SPLASH}
then then
sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_FB_SPLASH is.*/CONFIG_FB_SPLASH=y/g' sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_FB_SPLASH is.*/CONFIG_FB_SPLASH=y/g'
fi fi

@ -216,16 +216,16 @@ determine_real_args() {
UNIONFS_MODULES_BINCACHE=`arch_replace "${UNIONFS_MODULES_BINCACHE}"` UNIONFS_MODULES_BINCACHE=`arch_replace "${UNIONFS_MODULES_BINCACHE}"`
BLKID_BINCACHE=`arch_replace "${BLKID_BINCACHE}"` BLKID_BINCACHE=`arch_replace "${BLKID_BINCACHE}"`
if [ "${CMD_GENSPLASH}" != '' ] if [ "${CMD_SPLASH}" != '' ]
then then
GENSPLASH=${CMD_GENSPLASH} SPLASH=${CMD_SPLASH}
fi fi
if isTrue ${GENSPLASH} if isTrue ${SPLASH}
then then
GENSPLASH=1 SPLASH=1
else else
GENSPLASH=0 SPLASH=0
fi fi
if isTrue ${COMPRESS_INITRD} if isTrue ${COMPRESS_INITRD}

@ -226,29 +226,29 @@ append_evms(){
rm -r "${TEMP}/initramfs-evms-temp/" rm -r "${TEMP}/initramfs-evms-temp/"
} }
append_gensplash(){ append_splash(){
if [ -x /usr/bin/splash_geninitramfs ] || [ -x /sbin/splash_geninitramfs ] if [ -x /usr/bin/splash_geninitramfs ] || [ -x /sbin/splash_geninitramfs ]
then then
[ -z "${GENSPLASH_THEME}" ] && [ -e /etc/conf.d/splash ] && source /etc/conf.d/splash [ -z "${SPLASH_THEME}" ] && [ -e /etc/conf.d/splash ] && source /etc/conf.d/splash
[ -z "${GENSPLASH_THEME}" ] && GENSPLASH_THEME=default [ -z "${SPLASH_THEME}" ] && SPLASH_THEME=default
print_info 1 " >> Installing gensplash [ using the ${GENSPLASH_THEME} theme ]..." print_info 1 " >> Installing splash [ using the ${SPLASH_THEME} theme ]..."
if [ -d "${TEMP}/initramfs-gensplash-temp" ] if [ -d "${TEMP}/initramfs-splash-temp" ]
then then
rm -r "${TEMP}/initramfs-gensplash-temp/" rm -r "${TEMP}/initramfs-splash-temp/"
fi fi
mkdir -p "${TEMP}/initramfs-gensplash-temp" mkdir -p "${TEMP}/initramfs-splash-temp"
cd / cd /
local tmp="" local tmp=""
[ -n "${GENSPLASH_RES}" ] && tmp="-r ${GENSPLASH_RES}" [ -n "${SPLASH_RES}" ] && tmp="-r ${SPLASH_RES}"
splash_geninitramfs -c "${TEMP}/initramfs-gensplash-temp" ${tmp} ${GENSPLASH_THEME} || gen_die "Could not build splash cpio archive" splash_geninitramfs -c "${TEMP}/initramfs-splash-temp" ${tmp} ${SPLASH_THEME} || gen_die "Could not build splash cpio archive"
if [ -e "/usr/share/splashutils/initrd.splash" ]; then if [ -e "/usr/share/splashutils/initrd.splash" ]; then
mkdir -p "${TEMP}/initramfs-gensplash-temp/etc" mkdir -p "${TEMP}/initramfs-splash-temp/etc"
cp -f "/usr/share/splashutils/initrd.splash" "${TEMP}/initramfs-gensplash-temp/etc" cp -f "/usr/share/splashutils/initrd.splash" "${TEMP}/initramfs-splash-temp/etc"
fi fi
cd "${TEMP}/initramfs-gensplash-temp/" cd "${TEMP}/initramfs-splash-temp/"
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \ find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing splash cpio" || gen_die "compressing splash cpio"
rm -r "${TEMP}/initramfs-gensplash-temp/" rm -r "${TEMP}/initramfs-splash-temp/"
else else
print_warning 1 ' >> No splash detected; skipping!' print_warning 1 ' >> No splash detected; skipping!'
fi fi
@ -445,7 +445,7 @@ create_initramfs() {
fi fi
append_data 'blkid' "${DISKLABEL}" append_data 'blkid' "${DISKLABEL}"
append_data 'gensplash' "${GENSPLASH}" append_data 'splash' "${SPLASH}"
# This should always be appended last # This should always be appended last
if [ "${INITRAMFS_OVERLAY}" != '' ] if [ "${INITRAMFS_OVERLAY}" != '' ]

@ -2,7 +2,7 @@
# Genkernel v3 # Genkernel v3
PATH="/bin:/usr/bin:/sbin:/usr/sbin" PATH="/bin:/usr/bin:/sbin:/usr/sbin"
GK_V='3.4.9_pre2' GK_V='3.4.9_pre3'
# Set the default for TMPDIR. May be modified by genkernel.conf or the # Set the default for TMPDIR. May be modified by genkernel.conf or the
# --tempdir command line option. # --tempdir command line option.
@ -375,7 +375,7 @@ then
echo echo
print_info 1 'WARNING... WARNING... WARNING...' print_info 1 'WARNING... WARNING... WARNING...'
print_info 1 'Additional kernel cmdline arguments that *may* be required to boot properly...' print_info 1 'Additional kernel cmdline arguments that *may* be required to boot properly...'
[ "${GENSPLASH}" -eq '1' ] && print_info 1 "add \"vga=791 splash=silent,theme:${GENSPLASH_THEME} console=tty1 quiet\" if you use a gensplash framebuffer ]" [ "${SPLASH}" -eq '1' ] && print_info 1 "add \"vga=791 splash=silent,theme:${SPLASH_THEME} console=tty1 quiet\" if you use a splash framebuffer ]"
[ "${LVM}" -eq '1' ] && print_info 1 'add "dolvm" for lvm support' [ "${LVM}" -eq '1' ] && print_info 1 'add "dolvm" for lvm support'
[ "${EVMS}" -eq '1' ] && print_info 1 'add "doevms" for evms support' [ "${EVMS}" -eq '1' ] && print_info 1 'add "doevms" for evms support'
[ "${DMRAID}" -eq '1' ] && print_info 1 'add "dodmraid" for dmraid support' [ "${DMRAID}" -eq '1' ] && print_info 1 'add "dodmraid" for dmraid support'

@ -175,14 +175,14 @@ module compilation stage of 2.4 series kernels to avoid bottlenecks; the
.PP .PP
.BR Initialization .BR Initialization
.TP .TP
\fB\-\-\fR[no\-]\fBgensplash=\fR<theme> \fB\-\-\fR[no\-]\fBsplash=\fR<theme>
If the extra argument is specified, gensplash is forced using <theme> If the extra argument is specified, splash is forced using <theme>
rather than the default theme specified in your gensplash rather than the default theme specified in your splash
configuration. If \fB\-\-no-gensplash\fR is specified, then configuration. If \fB\-\-no-splash\fR is specified, then
gensplash is disabled. splash is disabled.
.TP .TP
\fB\-\-gensplash-res=\fR<resolutions> \fB\-\-splash-res=\fR<resolutions>
Optionally select gensplash resolutions to include. Optionally select splash resolutions to include.
.TP .TP
\fB\-\-do\-keymap\-auto\fR \fB\-\-do\-keymap\-auto\fR
Force keymap selection at boot. Force keymap selection at boot.

@ -14,7 +14,6 @@ UTILS_LD=ld
# Initrd/Initramfs Options # Initrd/Initramfs Options
COMPRESS_INITRD="yes" COMPRESS_INITRD="yes"
GENSPLASH=0
USECOLOR="yes" USECOLOR="yes"
NOINITRDMODULES="yes" NOINITRDMODULES="yes"
BUSYBOX=1 BUSYBOX=1

Loading…
Cancel
Save