From 4eb3fac4d6255008b2230bde4989a05f2de23533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= Date: Mon, 17 Sep 2012 21:58:07 +0200 Subject: [PATCH 2/2] Provide kernel's all*config as genkernel's options. Map allyesconfig, allnoconfig, allmodconfig and alldefconfig from the kernel build system to genkernels options. --- gen_cmdline.sh | 12 ++++++++++++ gen_configkernel.sh | 4 ++++ gen_determineargs.sh | 1 + 3 files changed, 17 insertions(+), 0 deletions(-) diff --git a/gen_cmdline.sh b/gen_cmdline.sh index 938b1a5..c393dde 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -375,6 +375,18 @@ parse_cmdline() { print_info 2 "CMD_CLEAN: ${CMD_CLEAN}" print_info 2 "CMD_OLDCONFIG: ${CMD_OLDCONFIG}" ;; + --allyesconfig|--allnoconfig|--allmodconfig|--alldefconfig) + CMD_ALLCONFIG=$1 + CMD_ALLCONFIG=${CMD_ALLCONFIG#--all} + CMD_ALLCONFIG=${CMD_ALLCONFIG%config} + [[ "$CMD_ALLCONFIG" = "yes" || \ + "$CMD_ALLCONFIG" = "no" || \ + "$CMD_ALLCONFIG" = "def" || \ + "$CMD_ALLCONFIG" = "mod" ]] && \ + CMD_CLEAN=0 && CMD_OLDCONFIG=0 + print_info 2 "CMD_CLEAN: ${CMD_CLEAN}" + print_info 2 "CMD_ALLCONFIG: ${CMD_ALLCONFIG}" + ;; --gensplash=*) CMD_SPLASH=1 SPLASH_THEME=`parse_opt "$*"` diff --git a/gen_configkernel.sh b/gen_configkernel.sh index 315c9b8..448e57e 100755 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -69,6 +69,10 @@ config_kernel() { then print_info 1 ' >> Running oldconfig...' compile_generic oldconfig kernel + elif [[ -n "${ALLCONFIG}" ]] + then + print_info 1 " >> Running all${ALLCONFIG}config..." + compile_generic all${ALLCONFIG}config kernel else print_info 1 "kernel: --oldconfig is disabled; not running 'make oldconfig'." fi diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 7f352f8..4d413e0 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -110,6 +110,7 @@ determine_real_args() { set_config_with_override BOOL SYMLINK CMD_SYMLINK set_config_with_override STRING INSTALL_MOD_PATH CMD_INSTALL_MOD_PATH set_config_with_override BOOL OLDCONFIG CMD_OLDCONFIG + set_config_with_override STRING ALLCONFIG CMD_ALLCONFIG set_config_with_override BOOL LVM CMD_LVM set_config_with_override BOOL DMRAID CMD_DMRAID set_config_with_override BOOL ISCSI CMD_ISCSI -- 1.7.8.6