commit:     da27142c8819c05ed3bd75de1c4623d867e48f71
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 29 13:54:38 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 20:02:21 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=da27142c

gen_determineargs.sh: determine_real_args(): Don't allow KERNEL_OUTPUTDIR with 
spaces

Kernel Makefile just don't support that.

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gen_determineargs.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index 9170080..8044a97 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -680,6 +680,12 @@ determine_real_args() {
 
        if isTrue "${BUILD_KERNEL}"
        then
+               if isTrue "$(has_space_characters "${KERNEL_OUTPUTDIR}")"
+               then
+                       # Kernel Makefile doesn't support spaces in outputdir 
path...
+                       gen_die "--kernel-outputdir '${KERNEL_OUTPUTDIR}' 
contains space character(s) which are not supported!"
+               fi
+
                if [ "${KERNEL_DIR}" != "${KERNEL_OUTPUTDIR}" -a ! -d 
"${KERNEL_OUTPUTDIR}" ]
                then
                        print_warning 3 "Set --kernel-outputdir 
'${KERNEL_OUTPUTDIR}' does not exist; Will try to create ..."

Reply via email to