diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt index ff04a8e..994d7de 100644 --- a/doc/genkernel.8.txt +++ b/doc/genkernel.8.txt @@ -91,6 +91,9 @@ KERNEL CONFIGURATION *--*[*no-*]*menuconfig*:: Runs, or does not run "make menuconfig" after running "make oldconfig". +*--*[*no-*]*nconfig*:: + Runs, or does not run "make nconfig" after running "make oldconfig". + *--*[*no-*]*save-config*:: Saves, or does not save the kernel configuration to '/etc/kernels' if the kernel is successfully compiled. diff --git a/gen_cmdline.sh b/gen_cmdline.sh index e491913..4092ef0 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -25,6 +25,8 @@ longusage() { echo " Kernel Configuration settings" echo " --menuconfig Run menuconfig after oldconfig" echo " --no-menuconfig Do not run menuconfig after oldconfig" + echo " --nconfig Run nconfig after oldconfig" + echo " --no-nconfig Do not run nconfig after oldconfig" echo " --gconfig Run gconfig after oldconfig" echo " --no-gconfig Don't run gconfig after oldconfig" echo " --xconfig Run xconfig after oldconfig" @@ -172,6 +174,7 @@ usage() { echo echo 'Some useful options:' echo ' --menuconfig Run menuconfig after oldconfig' + echo ' --nconfig Run nconfig after oldconfig (requires ncurses)' echo ' --no-clean Do not run make clean before compilation' echo ' --no-mrproper Do not run make mrproper before compilation,' echo ' this is implied by --no-clean.' @@ -356,6 +359,14 @@ parse_cmdline() { CMD_MENUCONFIG=0 print_info 2 "CMD_MENUCONFIG: ${CMD_MENUCONFIG}" ;; + --nconfig) + CMD_NCONFIG=1 + print_info 2 "CMD_NCONFIG: ${CMD_NCONFIG}" + ;; + --no-nconfig) + CMD_NCONFIG=0 + print_info 2 "CMD_NCONFIG: ${CMD_NCONFIG}" + ;; --gconfig|--no-gconfig) CMD_GCONFIG=`parse_optbool "$*"` print_info 2 "CMD_GCONFIG: ${CMD_GCONFIG}" diff --git a/gen_configkernel.sh b/gen_configkernel.sh index fbfed3e..2b70fa5 100755 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -85,6 +85,11 @@ config_kernel() { print_info 1 'kernel: >> Invoking menuconfig...' compile_generic menuconfig kernelruntask [ "$?" ] || gen_die 'Error: menuconfig failed!' + elif isTrue ${NCONFIG} + then + print_info 1 'kernel: >> Invoking nconfig...' + compile_generic nconfig kernelruntask + [ "$?" ] || gen_die 'Error: nconfig failed!' elif isTrue ${CMD_GCONFIG} then print_info 1 'kernel: >> Invoking gconfig...' diff --git a/gen_determineargs.sh b/gen_determineargs.sh index fbe7d95..4e016d6 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -96,6 +96,7 @@ determine_real_args() { set_config_with_override BOOL POSTCLEAR CMD_POSTCLEAR set_config_with_override BOOL MRPROPER CMD_MRPROPER set_config_with_override BOOL MENUCONFIG CMD_MENUCONFIG + set_config_with_override BOOL NCONFIG CMD_NCONFIG set_config_with_override BOOL CLEAN CMD_CLEAN set_config_with_override STRING MINKERNPACKAGE CMD_MINKERNPACKAGE diff --git a/genkernel.conf b/genkernel.conf index 306e848..e9f5ae1 100644 --- a/genkernel.conf +++ b/genkernel.conf @@ -17,6 +17,12 @@ OLDCONFIG="yes" # Run 'make menuconfig' before compiling this kernel? MENUCONFIG="no" +# Run 'make nconfig' (ncurses 'menuconfig') before compiling this kernel? +NCONFIG="no" + +# Note, that two previous lines are mutual exclusive (logically), while +# MENUCONFIG has a higher priority if both them is enabled. + # Run 'make clean' before compilation? # If set to NO, implies MRPROPER WILL NOT be run # Also, if clean is NO, it won't copy over any configuration