commit: cea37f350778e214bed8891be8b178e24e4820d0
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 2 12:31:33 2019 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Oct 2 12:31:33 2019 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=cea37f35
gen_determineargs.sh: determine_real_args(): Add --strip=<type> validation
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
gen_determineargs.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index 5b43160..fdef153 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -698,6 +698,14 @@ determine_real_args() {
if isTrue "${BUILD_KERNEL}"
then
+ case "${CMD_STRIP_TYPE}" in
+ all|kernel|modules|none)
+ ;;
+ *)
+ gen_die "Invalid strip type
'${CMD_STRIP_TYPE}'; --strip=<type> requires one of: all, kernel, modules, none"
+ ;;
+ esac
+
if isTrue "$(has_space_characters "${KERNEL_OUTPUTDIR}")"
then
# Kernel Makefile doesn't support spaces in outputdir
path...