From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 D7EAC138335 for ; Tue, 23 Jul 2019 19:47:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 173E1E086E; Tue, 23 Jul 2019 19:47:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 F06EAE084E for ; Tue, 23 Jul 2019 19:47:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 B5FD034853E for ; Tue, 23 Jul 2019 19:47:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5F7A4622 for ; Tue, 23 Jul 2019 19:47:16 +0000 (UTC) From: "Thomas Deutschmann" 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" Message-ID: <1563908790.c09d959757ab97a50b9af373b975f7b7c4ecf99a.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_determineargs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: c09d959757ab97a50b9af373b975f7b7c4ecf99a X-VCS-Branch: master Date: Tue, 23 Jul 2019 19:47:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 60ba0c4d-82bb-4e62-aeb6-67ef68454495 X-Archives-Hash: 85226158d639c2ecd5c191c5b92ee280 commit: c09d959757ab97a50b9af373b975f7b7c4ecf99a Author: Thomas Deutschmann gentoo org> AuthorDate: Tue Jul 23 19:05:02 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Tue Jul 23 19:06:30 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c09d9597 gen_determineargs.sh: determine_real_args(): Try to create $KERNEL_OUTPUTDIR when $KERNEL_DIR != $KERNEL_OUTPUTDIR That's typically the case when user has set --kernel-outputdir option. Signed-off-by: Thomas Deutschmann gentoo.org> gen_determineargs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gen_determineargs.sh b/gen_determineargs.sh index a82fb0a..549fb59 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -459,6 +459,12 @@ determine_real_args() { if isTrue "${BUILD_KERNEL}" then + 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 ..." + mkdir -p "${KERNEL_OUTPUTDIR}" || gen_die "Failed to create '${KERNEL_OUTPUTDIR}'!" + fi + if [ -n "${KERNEL_LOCALVERSION}" ] then case "${KERNEL_LOCALVERSION}" in