|
|
|
@ -32,7 +32,7 @@ config_kernel() {
|
|
|
|
|
# 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`
|
|
|
|
@ -47,7 +47,7 @@ config_kernel() {
|
|
|
|
|
print_info 1 'kernel: >> Running mrproper...'
|
|
|
|
|
compile_generic mrproper kernel
|
|
|
|
|
else
|
|
|
|
|
print_info 1 "config: --no-mrproper is enabled; not running 'make mrproper'."
|
|
|
|
|
print_info 1 "kernel: --no-mrproper is enabled; not running 'make mrproper'."
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# If we're not cleaning a la mrproper, then we don't want to try to overwrite the configs
|
|
|
|
@ -62,24 +62,24 @@ config_kernel() {
|
|
|
|
|
print_info 1 ' >> Running oldconfig...'
|
|
|
|
|
yes '' 2>/dev/null | compile_generic oldconfig kernel 2>/dev/null
|
|
|
|
|
else
|
|
|
|
|
print_info 1 "config: --oldconfig is disabled; not running 'make oldconfig'."
|
|
|
|
|
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: --no-clean is enabled; 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!'
|
|
|
|
|
|
|
|
|
@ -88,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
|
|
|
|
|