commit: b4bd0ae1a725d3bffdf8766ff80c2cff4c7639e9
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 12 22:02:26 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Jan 12 22:10:07 2020 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=b4bd0ae1
gen_compile.sh: compile_kernel(): Improve error message when kernel binary
wasn't found
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
gen_compile.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gen_compile.sh b/gen_compile.sh
index 3b96f48..e5254d7 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -312,11 +312,12 @@ compile_kernel() {
return
fi
- local tmp_kernel_binary=$(find_kernel_binary
${KERNEL_BINARY_OVERRIDE:-${KERNEL_BINARY}})
+ local
tmp_kernel_binary_to_look_for="${KERNEL_BINARY_OVERRIDE:-${KERNEL_BINARY}}"
+ local tmp_kernel_binary=$(find_kernel_binary
${tmp_kernel_binary_to_look_for})
local tmp_kernel_binary2=$(find_kernel_binary ${KERNEL_BINARY_2})
if [ -z "${tmp_kernel_binary}" ]
then
- gen_die "Cannot locate kernel binary"
+ gen_die "Failed to locate kernel binary
'${tmp_kernel_binary_to_look_for}' in '${KERNEL_OUTPUTDIR}'!"
fi
# if source != outputdir, we need this: