# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 03 Feb 2008; Andrew Gaffney <agaffney@gentoo.org> gen_configkernel.sh,
+ genkernel.conf:
+ Clean up OLDCONFIG logic and default to OLDCONFIG=yes. This is for bug 207895
+
02 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> generic/linuxrc:
Moving the code to start resume operations so it doesn't run when booting
from CD. We also don't execute the code if there's no real_resume set on the
print_info 1 ' Previous config backed up to .config.bak'
cp "${KERNEL_CONFIG}" "${KERNEL_DIR}/.config" || gen_die 'Could not copy configuration file!'
fi
- if isTrue "${CLEAN}" || isTrue "${OLDCONFIG}"
+ if isTrue "${OLDCONFIG}"
then
- if ! isTrue "${CLEAN}"
- then
- print_info 1 'config: >> Running oldconfig...'
- else
- print_info 1 ' >> Running oldconfig...'
- fi
+ print_info 1 ' >> Running oldconfig...'
yes '' 2>/dev/null | compile_generic oldconfig kernel 2>/dev/null
fi
if isTrue "${CLEAN}"
# =========Common Command Line Option Defaults=========
# 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"
+OLDCONFIG="yes"
# Run 'make menuconfig' before compiling this kernel?
MENUCONFIG="no"