Added two patches from John R. Graham <john_r_graham@mindspring.com> from bug #180161. This should fix bug #180161, bug #144703, and bug #150697.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@515 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 18 years ago
parent 29bf002711
commit 505cb92dc6

@ -2,6 +2,11 @@
# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
21 Jun 2007; Chris Gianelloni <wolf31o2@gentoo.org> gen_determineargs.sh,
gen_funcs.sh, genkernel, genkernel.8, genkernel.conf:
Added two patches from John R. Graham <john_r_graham@mindspring.com> from
bug #180161. This should fix bug #180161, bug #144703, and bug #150697.
21 Jun 2007; Chris Gianelloni <wolf31o2@gentoo.org> x86/kernel-config-2.6: 21 Jun 2007; Chris Gianelloni <wolf31o2@gentoo.org> x86/kernel-config-2.6:
Added USB Printer support for bug #176543. Added USB Printer support for bug #176543.

@ -274,10 +274,12 @@ determine_real_args() {
then then
MRPROPER="${CMD_MRPROPER}" MRPROPER="${CMD_MRPROPER}"
fi fi
if [ "${CMD_MENUCONFIG}" != '' ] if [ "${CMD_MENUCONFIG}" != '' ]
then then
MENUCONFIG="${CMD_MENUCONFIG}" MENUCONFIG="${CMD_MENUCONFIG}"
fi fi
if [ "${CMD_CLEAN}" != '' ] if [ "${CMD_CLEAN}" != '' ]
then then
CLEAN="${CMD_CLEAN}" CLEAN="${CMD_CLEAN}"
@ -391,7 +393,12 @@ determine_real_args() {
fi fi
fi fi
if isTrue "${CMD_OLDCONFIG}" if [ "${CMD_OLDCONFIG}" != '' ]
then
OLDCONFIG="${CMD_OLDCONFIG}"
fi
if isTrue "${OLDCONFIG}"
then then
OLDCONFIG=1 OLDCONFIG=1
else else

@ -373,22 +373,24 @@ copy_image_with_preserve() {
fi fi
# We only erase the old image when it is the exact same version as the # We only erase the old image when it is the exact same version as the
# current image. Different version old images are left behind. This is # current and new images. Different version old images are left behind.
# consistent with how "make install" of the manual kernel build works. # This is consistent with how "make install" of the manual kernel build
if [ "${currDestImage}.old" == "${prevDestImage}" ] # works.
if [ "${currDestImage}" == "${fullDestName}" -a \
"${prevDestImage}" == "${currDestImage}.old" ]
then then
# #
# Case for current / old of the same base version. # Case for new, currrent, and old of the same base version.
# #
print_info 5 " Same base version. May have to delete old image to make room." print_info 5 " Same base version. May have to delete old image to make room."
if [ "${prevDestImageExists}" -eq '1' ]
then
print_info 5 " Deleting old identical version ${symlinkName}."
rm -f "${BOOTDIR}/${prevDestImage}"
fi
if [ "${currDestImageExists}" -eq '1' ] if [ "${currDestImageExists}" -eq '1' ]
then then
if [ "${prevDestImageExists}" -eq '1' ]
then
print_info 5 " Deleting old identical version ${symlinkName}."
rm -f "${BOOTDIR}/${prevDestImage}"
fi
print_info 5 " Moving ${BOOTDIR}/${currDestImage}" print_info 5 " Moving ${BOOTDIR}/${currDestImage}"
print_info 5 " to ${BOOTDIR}/${currDestImage}.old" print_info 5 " to ${BOOTDIR}/${currDestImage}.old"
mv "${BOOTDIR}/${currDestImage}" "${BOOTDIR}/${currDestImage}.old" || mv "${BOOTDIR}/${currDestImage}" "${BOOTDIR}/${currDestImage}.old" ||
@ -398,12 +400,12 @@ copy_image_with_preserve() {
# #
# Case for current / old not of the same base version. # Case for current / old not of the same base version.
# #
print_info 5 " Different base version. Do not delete old iamges." print_info 5 " Different base version. Do not delete old images."
if [ "${currDestImageExists}" -eq 1 ] if [ "${currDestImageExists}" -eq 1 ]
then then
prevDestImage="${currDestImage}" prevDestImage="${currDestImage}"
currDestImage="${fullDestName}"
fi fi
currDestImage="${fullDestName}"
fi fi
print_info 5 " Copying ${symlinkName}: ${newSrceImage}" print_info 5 " Copying ${symlinkName}: ${newSrceImage}"

@ -4,8 +4,10 @@
PATH="/bin:/usr/bin:/sbin:/usr/sbin" PATH="/bin:/usr/bin:/sbin:/usr/sbin"
GK_V='3.4.8' GK_V='3.4.8'
# Set the default for TMPDIR. May be modified by genkernel.conf or the
# --tempdir command line option.
TMPDIR='/var/tmp/genkernel' TMPDIR='/var/tmp/genkernel'
TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified. TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
small_die() { small_die() {
@ -26,6 +28,8 @@ source ${GK_BIN}/gen_moddeps.sh || gen_die "Could not read ${GK_BIN}/gen_moddeps
source ${GK_BIN}/gen_package.sh || gen_die "Could not read ${GK_BIN}/gen_package.sh" source ${GK_BIN}/gen_package.sh || gen_die "Could not read ${GK_BIN}/gen_package.sh"
source ${GK_BIN}/gen_bootloader.sh || gen_die "Could not read ${GK_BIN}/gen_bootloader.sh" source ${GK_BIN}/gen_bootloader.sh || gen_die "Could not read ${GK_BIN}/gen_bootloader.sh"
TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$
trap_cleanup(){ trap_cleanup(){
# Call exit code of 1 for failure # Call exit code of 1 for failure
cleanup cleanup

@ -55,8 +55,7 @@ to 0, minimal debugging is done; if this is set to 5 as much output as
possible is given. possible is given.
.TP .TP
\fB\-\-debugfile=\fR<outfile> \fB\-\-debugfile=\fR<outfile>
This outputs full debugging data; regardless of --debuglevel to the file This outputs debugging data to the file <outfile>. By default this is
<outfile>. By default this is
.I /var/log/genkernel.log\fR. .I /var/log/genkernel.log\fR.
.TP .TP
\fB\-\-\fR[no\-]\fBcolor\fR \fB\-\-\fR[no\-]\fBcolor\fR
@ -227,6 +226,9 @@ Use <file> for the linuxrc instead of the genkernel linuxrc.
\fB\-\-arch\-override=\fR<arch> \fB\-\-arch\-override=\fR<arch>
Force the architecture settings described by the <arch> profile Force the architecture settings described by the <arch> profile
instead of autodetecting the running architecture. instead of autodetecting the running architecture.
.TP
\fB\-\-tempdir=\fR<dir>
Sets genkernel's temporary working directory to <dir>.
.PP .PP
.BR Output \ Settings .BR Output \ Settings
.TP .TP

@ -2,6 +2,11 @@
# ===========GENKERNEL BASIC CONFIGURATION============= # ===========GENKERNEL BASIC CONFIGURATION=============
# Run 'make oldconfig' before compiling this kernel?
# If set to "yes", also suppresses the fetch of the kernel .config file from
# /etc/kernels, thus preserving the .config file in /usr/src/linux.
# OLDCONFIG="no"
# Run 'make menuconfig' before compiling this kernel? # Run 'make menuconfig' before compiling this kernel?
MENUCONFIG="no" MENUCONFIG="no"
@ -23,6 +28,9 @@ BOOTSPLASH="yes"
# Mount BOOTDIR automatically if it isn't mounted? # Mount BOOTDIR automatically if it isn't mounted?
MOUNTBOOT="yes" MOUNTBOOT="yes"
# Make symlinks in BOOTDIR automatically?
# SYMLINK="no"
# Save the new configuration in /etc/kernels upon # Save the new configuration in /etc/kernels upon
# successfull compilation # successfull compilation
SAVE_CONFIG="yes" SAVE_CONFIG="yes"
@ -48,6 +56,9 @@ USECOLOR="yes"
# %%ARCH%% - Final determined architecture # %%ARCH%% - Final determined architecture
# %%CACHE%% - Final determined cache location # %%CACHE%% - Final determined cache location
# Set genkernel's temporary work directory. Default is /var/tmp/genkernel
# TMPDIR="/var/tmp/genkernel"
# Set the boot directory, default is /boot # Set the boot directory, default is /boot
#BOOTDIR="/boot" #BOOTDIR="/boot"

Loading…
Cancel
Save