commit: 95404d6b022f71c8017d5400e7c47d4a09845433
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 15 23:30:36 2019 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 15 23:30:36 2019 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=95404d6b
gen_configkernel.sh: config_kernel(): No need to re-check required kernel
options when config wasn't modified
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
gen_configkernel.sh | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/gen_configkernel.sh b/gen_configkernel.sh
index ef88250..c37a9cb 100755
--- a/gen_configkernel.sh
+++ b/gen_configkernel.sh
@@ -724,20 +724,20 @@ config_kernel() {
print_info 1 "$(get_indent 1)>> Running 'make
olddefconfig' due to changed kernel options ..."
compile_generic olddefconfig kernel 2>/dev/null
fi
+
+ print_info 2 "$(get_indent 1)>> Checking if required kernel
options are still present ..."
+ local required_kernel_option=
+ for required_kernel_option in "${required_kernel_options[@]}"
+ do
+ local optval=$(kconfig_get_opt
"${KERNEL_OUTPUTDIR}/.config" "${required_kernel_option}")
+ if [ -z "${optval}" ]
+ then
+ gen_die "Something went wrong: Required kernel
option '${required_kernel_option}' which genkernel tried to set is missing!"
+ else
+ print_info 3 "$(get_indent 2) -
'${required_kernel_option}' is set to '${optval}'"
+ fi
+ done
else
print_info 2 "$(get_indent 1)>> genkernel did not need to
add/modify any kernel options."
fi
-
- print_info 2 "$(get_indent 1)>> Checking if required kernel options are
still present ..."
- local required_kernel_option=
- for required_kernel_option in "${required_kernel_options[@]}"
- do
- local optval=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}/.config"
"${required_kernel_option}")
- if [ -z "${optval}" ]
- then
- gen_die "Something went wrong: Required kernel option
'${required_kernel_option}' which genkernel tried to set is missing!"
- else
- print_info 3 "$(get_indent 2) -
'${required_kernel_option}' is set to '${optval}'"
- fi
- done
}