From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1137828-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 615EB138350 for <garchives@archives.gentoo.org>; Tue, 14 Jan 2020 01:36:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7643FE09AB; Tue, 14 Jan 2020 01:36:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 583C0E09AB for <gentoo-commits@lists.gentoo.org>; Tue, 14 Jan 2020 01:36:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C51C234E062 for <gentoo-commits@lists.gentoo.org>; Tue, 14 Jan 2020 01:36:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 09B76A3 for <gentoo-commits@lists.gentoo.org>; Tue, 14 Jan 2020 01:36:26 +0000 (UTC) From: "Thomas Deutschmann" <whissi@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" <whissi@gentoo.org> Message-ID: <1578867007.b4bd0ae1a725d3bffdf8766ff80c2cff4c7639e9.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_compile.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: b4bd0ae1a725d3bffdf8766ff80c2cff4c7639e9 X-VCS-Branch: master Date: Tue, 14 Jan 2020 01:36:26 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d05ee7b0-db49-4e4e-8d8e-22bb50a3d489 X-Archives-Hash: 36f0c4218dda087f5c8177a199b630f6 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: