diff --git a/ChangeLog b/ChangeLog index 8e1bc2f..cce54ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ # Distributed under the GPL v2 # $Id$ + 20 Jan 2011; Sebastian Pipping gen_configkernel.sh: + Move application of kernel config after "make mrproper" as that deletes + .config (whereas "make clean" does not) (bug #351906) + 20 Jan 2011; Sebastian Pipping patches/busybox/1.18.1/1.18.1-mdstart.diff: busybox 1.18.1: Return of mdstart as an applet (regression) (bug #351909) diff --git a/gen_configkernel.sh b/gen_configkernel.sh index b562287..2f14b4d 100755 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -29,10 +29,10 @@ config_kernel() { determine_config_file cd "${KERNEL_DIR}" || gen_die 'Could not switch to the kernel directory!' - # Backup and replace kernel .config - if isTrue "${CLEAN}" || [ ! -f "${KERNEL_DIR}/.config" ] + # Backup current kernel .config + if isTrue "${MRPROPER}" || [ ! -f "${KERNEL_DIR}/.config" ] then - print_info 1 "config: Using config from ${KERNEL_CONFIG}" + print_info 1 "kernel: Using config from ${KERNEL_CONFIG}" if [ -f "${KERNEL_DIR}/.config" ] then NOW=`date +--%Y-%m-%d--%H-%M-%S` @@ -40,39 +40,46 @@ config_kernel() { || gen_die "Could not backup kernel config (${KERNEL_DIR}/.config)" print_info 1 " Previous config backed up to .config${NOW}.bak" fi - cp "${KERNEL_CONFIG}" "${KERNEL_DIR}/.config" || gen_die 'Could not copy configuration file!' fi if isTrue ${MRPROPER} then print_info 1 'kernel: >> Running mrproper...' compile_generic mrproper kernel + else + print_info 1 "kernel: --mrproper is disabled; not running 'make mrproper'." fi - # If we're not cleaning, then we don't want to try to overwrite the configs + # If we're not cleaning a la mrproper, then we don't want to try to overwrite the configs # or we might remove configurations someone is trying to test. + if isTrue "${MRPROPER}" || [ ! -f "${KERNEL_DIR}/.config" ] + then + cp "${KERNEL_CONFIG}" "${KERNEL_DIR}/.config" || gen_die 'Could not copy configuration file!' + fi if isTrue "${OLDCONFIG}" then print_info 1 ' >> Running oldconfig...' yes '' 2>/dev/null | compile_generic oldconfig kernel 2>/dev/null + else + print_info 1 "kernel: --oldconfig is disabled; not running 'make oldconfig'." fi if isTrue "${CLEAN}" then print_info 1 'kernel: >> Cleaning...' compile_generic clean kernel else - print_info 1 "config: --no-clean is enabled; not running 'make clean'." + print_info 1 "kernel: --clean is disabled; not running 'make clean'." fi if isTrue ${MENUCONFIG} then - print_info 1 'config: >> Invoking menuconfig...' + print_info 1 'kernel: >> Invoking menuconfig...' compile_generic menuconfig runtask [ "$?" ] || gen_die 'Error: menuconfig failed!' elif isTrue ${CMD_GCONFIG} then - print_info 1 'config: >> Invoking gconfig...' + print_info 1 'kernel: >> Invoking gconfig...' compile_generic gconfig kernel [ "$?" ] || gen_die 'Error: gconfig failed!' @@ -81,7 +88,7 @@ config_kernel() { if isTrue ${CMD_XCONFIG} then - print_info 1 'config: >> Invoking xconfig...' + print_info 1 'kernel: >> Invoking xconfig...' compile_generic xconfig kernel [ "$?" ] || gen_die 'Error: xconfig failed!' fi