From patchwork Sat Feb 10 07:46:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xtex X-Patchwork-Id: 199232 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1346191dyd; Fri, 9 Feb 2024 23:47:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcsL+cuA76wdvFS6S+qJMa9wqUh7EkZbE8tMU/LFDxGznaZgRvjQCtM65Z8fxA4EgOYW8LAQ0qtSHdEGN5jPTgqZgOUw== X-Google-Smtp-Source: AGHT+IFJx/9k6pNOi6wN0PzdlaQaYYBDgC2m1qoXGWbGDT6DphDqlsVN1wmUfItYik2YOoDrz43m X-Received: by 2002:a17:902:eec1:b0:1d9:5ed4:ec07 with SMTP id h1-20020a170902eec100b001d95ed4ec07mr1745058plb.52.1707551262973; Fri, 09 Feb 2024 23:47:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707551262; cv=pass; d=google.com; s=arc-20160816; b=BLijRaE/g0MJhiZMcCkLHchqZz4GfDJp1ZPuV3OJzjUiUuYRNIN6U46GHeANurDxMF Pqb92awm30at/BNrlTwTRiAcNgbx9w2Gd4GmxV6n+1b8Tmc9wUCGCWhU1jPZ1qS6S8R9 kUf+IEtNQdj2ho4FptnVQRwiKknAeK/KdrV1TDQqGIep+RMZUh0JAKShWcJArRiFEhV3 rRei8yDxZFR2/lcg5/L6TGjgysy8gwhNBqoGFrJWWK/kp+WRFCsqbfUqqgGML3UEV6jM 8YR7l+8foK0646vuGFBRUTk61C3GBVjNW+JQFkTcVK/hz5TjFImjPMqi+OmoFqRDJmID 51Kw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yyUazkvkRh10ZbEGZX7/MXwA6mkniL0Aqt6WS89cGkk=; fh=LTipo5LTB1Pzlslyxm6jcmHnzJRWOMgczFhRle3wPwE=; b=WpyX1ilSDpMHQXNcHzMSQCrMuPH8dkvok+eRbs9IADR5JHECDl1psU4sXx9ef67i9Z t6mXANKnq7tL8qQPzKNWBpooP9U5R/fAEtGqT0o808/+6dldkawoMl2ool4844z66wTt vkECWBAHM9T4aA6cBC+cTaSbOnRZkpynKmziCSsrs6wmwmWbGTSkycyXOtSFzUcwaAp0 pM2ZlbxwJZfNj/RpFlBh0xGP1061XGwdgXyXbxA/lNUgviWDatIhyggE5PB1/QFfVrzo Yd1DC8LyFOTZKhyFWqbqnweiQD4nx5ekKhAuAJQa29gagm2ZAeMEgPLYqwkRmpGUKNOs wBjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@envs.net header.s=modoboa header.b="hd/XVnAi"; arc=pass (i=1 spf=pass spfdomain=envs.net dkim=pass dkdomain=envs.net dmarc=pass fromdomain=envs.net); spf=pass (google.com: domain of linux-kernel+bounces-60339-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60339-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=envs.net X-Forwarded-Encrypted: i=2; AJvYcCW0GFcIic7f2AqrTxNczfCpVJuQHO4I8uw2cO6F56KMjanbBTtgGY8aJjvmBBLnCEw3FE6s5TxIcFc0/l855CFkiXsgKw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q16-20020a170902dad000b001da17ce989dsi1731147plx.278.2024.02.09.23.47.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 23:47:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60339-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@envs.net header.s=modoboa header.b="hd/XVnAi"; arc=pass (i=1 spf=pass spfdomain=envs.net dkim=pass dkdomain=envs.net dmarc=pass fromdomain=envs.net); spf=pass (google.com: domain of linux-kernel+bounces-60339-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60339-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=envs.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BA706285AA1 for ; Sat, 10 Feb 2024 07:47:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F45E3613A; Sat, 10 Feb 2024 07:47:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=envs.net header.i=@envs.net header.b="hd/XVnAi" Received: from mail.envs.net (mail.envs.net [5.199.136.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B714229424; Sat, 10 Feb 2024 07:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.199.136.28 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707551235; cv=none; b=aPIy5NyKPJDRGmWd4UTLnCnE7sACUivIN4hBKfkRw9g/Nh4g14NVMVOyQl+1eRh/XVfMGrRG891tgWNmvgKbaI/h4gXpOKtOZ6HJretsOhj6gikJCigPLC5a15Oo/wnjqY02/wa0IF1+NO0YEQ/tq+mL300i8blcNlUAiXnGxrk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707551235; c=relaxed/simple; bh=ftAJHSxo5Rsx/0DaR5hsL6pNxlltkkDCUMwyIZ5u780=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zs7gUV3LMyNEPiQfWWOcNBUT1gh3biIMO+bpKT5Lcn1ZIP6Ow1SyS2T4U5Yud5AMTo1hdANyBc72zfNJKHCKD1Ok08Me1N6bfWzTnmC4OdpPWy8jMncO971dVSR7T2MBgnNp7YWgc8GAFgXNiYBit9UBUTbL4pGCZqIAeoi5DMc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=envs.net; spf=pass smtp.mailfrom=envs.net; dkim=pass (4096-bit key) header.d=envs.net header.i=@envs.net header.b=hd/XVnAi; arc=none smtp.client-ip=5.199.136.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=envs.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=envs.net Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 8A86F38A067E; Sat, 10 Feb 2024 07:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1707551230; bh=yyUazkvkRh10ZbEGZX7/MXwA6mkniL0Aqt6WS89cGkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hd/XVnAimjrqEjNcLEHz1FnGusJEW32uyKQYnIKt5uFodkm1RM3EYTgs6lpTGn9JV NUqTvBugmu1lMKqlk092oyo/KZaFN4NXF6D6VwQOuHnGQDNyHkJlsm/Y3K1oPoePvy QZV1bS/HMqeEMt78NTjNT/s4ZJ5Mit6QXmA862rrT+GW/IEbkV4jDc05MIwIHszBLl qQ3DEqw1ELqeViRk20ILeVQA999OVMuJBTgPCi1GAV/6n6WFVxBNt5RQKNteZvMYAV Nd6fCGeU8tZamgqr5iY+Kg5XWePuTdcKYfJ88KcC7z3e0MI+Cqq9z/SQ8BZqFaKIpa fVExG6myqkBA9ugvB76Adioe1PhFwNqkLWz7IEKJLd53SdCeiDNheQ5FZkxe6sFTzO TPIkG+DuOaLJFNNMhgVYZxF4biAq/jAsMkO7FoqWd+MbULyheCb4tcZ5kOgxbwTRTw 099PvijCadI39fEEOHcDZ+1EFxNa7Q1//PZTbjIKJ9z3LC3MNALiRXdBrXMR2Jvixl fgNJrSkHSAJ9P4XyfyDDhpux12a6SJLMTJqVkQZtAvSutrNijPNWpd/nf0nNdtgTPh z1dEc8QNvl0DRLtQzoOK6pb2fazvjtaZYp/zHg3GkyQKdDABuu1VuJ58d9TFLa2IqZ h8BhqRVSWGgAM9IACgQNk9sA= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FENJE3rEUQ0U; Sat, 10 Feb 2024 07:47:00 +0000 (UTC) Received: from xtexx.eu.org (unknown [223.73.102.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sat, 10 Feb 2024 07:47:00 +0000 (UTC) From: Zhang Bingwu To: Russell King , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Dinh Nguyen , "James E.J. Bottomley" , Helge Deller , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , "David S. Miller" , Andreas Larsson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Zhang Bingwu , Masahiro Yamada , Nathan Chancellor , Nicolas Schier Cc: x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: [PATCH 1/2] kbuild: Abort make on install failures Date: Sat, 10 Feb 2024 15:46:00 +0800 Message-ID: <20240210074601.5363-2-xtex@envs.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240210074601.5363-1-xtex@envs.net> References: <20240210074601.5363-1-xtex@envs.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790497272916393600 X-GMAIL-MSGID: 1790497272916393600 From: Zhang Bingwu Setting '-e' flag tells shells to exit with error exit code immediately after any of commands fails, and causes make(1) to regard recipes as failed. Before this, make will still continue to succeed even after the installation failed, for example, for insufficient permission or directory does not exist. Signed-off-by: Zhang Bingwu Reviewed-by: Nicolas Schier --- arch/arm/boot/install.sh | 2 ++ arch/arm64/boot/install.sh | 2 ++ arch/m68k/install.sh | 2 ++ arch/nios2/boot/install.sh | 2 ++ arch/parisc/install.sh | 2 ++ arch/riscv/boot/install.sh | 2 ++ arch/s390/boot/install.sh | 2 ++ arch/sparc/boot/install.sh | 2 ++ arch/x86/boot/install.sh | 2 ++ 9 files changed, 18 insertions(+) diff --git a/arch/arm/boot/install.sh b/arch/arm/boot/install.sh index 9ec11fac7d8d..34e2c6e31fd1 100755 --- a/arch/arm/boot/install.sh +++ b/arch/arm/boot/install.sh @@ -17,6 +17,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + if [ "$(basename $2)" = "zImage" ]; then # Compressed install echo "Installing compressed kernel" diff --git a/arch/arm64/boot/install.sh b/arch/arm64/boot/install.sh index 9b7a09808a3d..cc2f4ccca6c0 100755 --- a/arch/arm64/boot/install.sh +++ b/arch/arm64/boot/install.sh @@ -17,6 +17,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + if [ "$(basename $2)" = "Image.gz" ] || [ "$(basename $2)" = "vmlinuz.efi" ] then # Compressed install diff --git a/arch/m68k/install.sh b/arch/m68k/install.sh index af65e16e5147..b6829b3942b3 100755 --- a/arch/m68k/install.sh +++ b/arch/m68k/install.sh @@ -16,6 +16,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + if [ -f $4/vmlinuz ]; then mv $4/vmlinuz $4/vmlinuz.old fi diff --git a/arch/nios2/boot/install.sh b/arch/nios2/boot/install.sh index 34a2feec42c8..1161f2bf59ec 100755 --- a/arch/nios2/boot/install.sh +++ b/arch/nios2/boot/install.sh @@ -16,6 +16,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + if [ -f $4/vmlinuz ]; then mv $4/vmlinuz $4/vmlinuz.old fi diff --git a/arch/parisc/install.sh b/arch/parisc/install.sh index 933d031c249a..664c2d77f776 100755 --- a/arch/parisc/install.sh +++ b/arch/parisc/install.sh @@ -16,6 +16,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + if [ "$(basename $2)" = "vmlinuz" ]; then # Compressed install echo "Installing compressed kernel" diff --git a/arch/riscv/boot/install.sh b/arch/riscv/boot/install.sh index 4c63f3f0643d..a59639dff64f 100755 --- a/arch/riscv/boot/install.sh +++ b/arch/riscv/boot/install.sh @@ -17,6 +17,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + if [ "$(basename $2)" = "Image.gz" ]; then # Compressed install echo "Installing compressed kernel" diff --git a/arch/s390/boot/install.sh b/arch/s390/boot/install.sh index a13dd2f2aa1c..fa41486258ee 100755 --- a/arch/s390/boot/install.sh +++ b/arch/s390/boot/install.sh @@ -15,6 +15,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + echo "Warning: '${INSTALLKERNEL}' command not available - additional " \ "bootloader config required" >&2 if [ -f "$4/vmlinuz-$1" ]; then mv -- "$4/vmlinuz-$1" "$4/vmlinuz-$1.old"; fi diff --git a/arch/sparc/boot/install.sh b/arch/sparc/boot/install.sh index 4f130f3f30d6..68de67c5621e 100755 --- a/arch/sparc/boot/install.sh +++ b/arch/sparc/boot/install.sh @@ -16,6 +16,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + if [ -f $4/vmlinuz ]; then mv $4/vmlinuz $4/vmlinuz.old fi diff --git a/arch/x86/boot/install.sh b/arch/x86/boot/install.sh index 0849f4b42745..93784abcd66d 100755 --- a/arch/x86/boot/install.sh +++ b/arch/x86/boot/install.sh @@ -16,6 +16,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + if [ -f $4/vmlinuz ]; then mv $4/vmlinuz $4/vmlinuz.old fi From patchwork Sat Feb 10 07:46:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xtex X-Patchwork-Id: 199233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1346227dyd; Fri, 9 Feb 2024 23:47:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMr+9JspzGIG48gSXxyrpF3Uc54THP2Xl7F3fvh4njYMvz2tMMKI2B+MQBpX1++n2t1Gt/Xwt/KWHwooLzTq0ltaA/Xw== X-Google-Smtp-Source: AGHT+IE9GrADwvbO0Uw+ZN8imGnUwPeX1Jwmy2y9iGq45S/MkPEHOO28bnRpUHB1v/N13QpxWpUT X-Received: by 2002:a05:6a20:d819:b0:19e:8866:9e56 with SMTP id iv25-20020a056a20d81900b0019e88669e56mr5008523pzb.11.1707551276957; Fri, 09 Feb 2024 23:47:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707551276; cv=pass; d=google.com; s=arc-20160816; b=s+BwZRu3CWtIaO+oSvdFKNMgN9iQ0pwRCsQNveFMQfwpV7dshGed3yB4sawNTG8fA4 /a9/NUALaBE94MywGXmQDGZorLk5dK9oG5tEI9WRzEQQqeEKZFb5qNikB/Pj4+9NqF9h BAYLDPJ+F+/u/Z65/hkjwbvdfDkr8JFVF3J+4AJ+/QbE4j0pwR4vnoOkYVM3mvtRLV/u uWOms+kye5UKuYV4qxSos8nFlBSrJU71weduSgSWnZyndl/UpVTVJgmn7IEI+c/rjcTE YSUJL52a0zAJhls8Cpxw8vRgGKpFE2fv7DcYon0fr1R/bP1ja7lzB9eatazD8KjO2rm6 n53A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3RXoGcCjW+CB+wVoqLryQrySRvbelditpYUk0T7yTSY=; fh=0En/CT/yfplNV87Yr9Frf7Nui8Zzfr8KUso+MzigLpY=; b=MOsWmGneRgGsp2l6x/uwfebACJOfS09y6g0w3gDYQDjzJry0eO1H/Cj14LtDhGemHP +G8LasCEtKBUtX/I9Zq9FG5YYT+EI5HTsDl2Hk/2Ki9PgQ5EsSKh4k+TZcPu7gsgVvtO GlAZ4WHXx07tbhXYnf0L1o7bb4Fa7U5BIbfmCPbAS9nPvCk/28lN+KRW7YDrrLAk8Bb5 VKxs2G2CDkq7xwwpVn7gt5GzoOoMZWcf6jIIeYnBsO0xGeBMgs6SfyN3EZE5iVpk2vk7 jCZwyiNC71VcaX5YdiFnOtvLlgVbdVWChS953vPNP39GBwX9WH8nnE8w6Ic1u1JTuGXK Ra8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@envs.net header.s=modoboa header.b=KDptHeRj; arc=pass (i=1 spf=pass spfdomain=envs.net dkim=pass dkdomain=envs.net dmarc=pass fromdomain=envs.net); spf=pass (google.com: domain of linux-kernel+bounces-60340-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60340-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=envs.net X-Forwarded-Encrypted: i=2; AJvYcCWvzodMCKT7OlJEdhoQXyB4O9YDF7ACa/NyYZIifhO2bPXvAr2RIrg+zQpCQwSvVY2mno+3JwknGHX//DAmkfct8PrMmw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y68-20020a636447000000b005cd811e2ffesi3181697pgb.18.2024.02.09.23.47.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 23:47:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60340-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@envs.net header.s=modoboa header.b=KDptHeRj; arc=pass (i=1 spf=pass spfdomain=envs.net dkim=pass dkdomain=envs.net dmarc=pass fromdomain=envs.net); spf=pass (google.com: domain of linux-kernel+bounces-60340-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60340-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=envs.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B3B4C28579F for ; Sat, 10 Feb 2024 07:47:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E3C3364B4; Sat, 10 Feb 2024 07:47:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=envs.net header.i=@envs.net header.b="KDptHeRj" Received: from mail.envs.net (mail.envs.net [5.199.136.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 728FD28DBF; Sat, 10 Feb 2024 07:47:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.199.136.28 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707551246; cv=none; b=LVdeWHtvCdf0R0rISKKk+doME0gzz+G8hjm2FscCvdPO7pxT1eh/V2s036ltBhQXqPcQU8U/9XB5lSg+DyUrnnfSUTuDE4DIRHOF5Z7EdkmSRaynVYbQjzsneo+ol5/GXsixWrONW0YCWgHZf9FGB2e/JpRtA2D6VhbpiFcoISU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707551246; c=relaxed/simple; bh=GZiZoI6e3JvsqnLrL5xGsh92gGaBzJaPJ2zt48adfWs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cI8AYMm4doo0deUUXDYXxBJ4CHonamdImTjInW//2zbUwqVnyCykZKr4b+Gz1ayGstxKZ2OZe008NGRwxX9WFhTm+AfQDclUbUQPJE+D0yE4H4Tq1Mo8XWpGxxS4tb/pLQqr/u3+OUkVAbLaRBfT2zu6VSZIIQtNptXfy4Oqgn0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=envs.net; spf=pass smtp.mailfrom=envs.net; dkim=pass (4096-bit key) header.d=envs.net header.i=@envs.net header.b=KDptHeRj; arc=none smtp.client-ip=5.199.136.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=envs.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=envs.net Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id DE4E138A067D; Sat, 10 Feb 2024 07:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1707551242; bh=3RXoGcCjW+CB+wVoqLryQrySRvbelditpYUk0T7yTSY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KDptHeRjyPkaRYgDgQJ76TMbGq2rsbc0AgiZQdCY1JOAdzUUBP4+RjmkgxBwk+Z4T j1LGFsSoHsi7dXIAgAUbI/PPv5xfuDLWxP4xy8zkDFsW90QSwB5pLXrOkhMRao+XlL KAGg3sF0YhX3cFUj7jBo9lVPvYfUmcRpz6Dlk3dlkBOPJkdR3HhxzbFttuK6GrofQY ObwJoxqqdzPs/TeRoNi+Jn9jBlea4UDeZraoiBsmmwSyGY6ev426Owf0SUmoV+i3RR OaHBBhn4elcui9shUMYi0MKJm8/fdLhF53D6fhPStFXiuMRn+EylTstmABQgAIluS2 k+BkRN8SrN9KqQntdQIwXQxV3M4XoETzxQqWgTPpLG+5rridntyZXpp9JG4db2uRBf 53smMVcv8z4u3nsFvR1BYtrtMOFXQdDNIkr8vIHR2Y4Fb9WClbM357GuFTdzDohLL3 ufzACtqqpgzpeAUIpB+hpnQys9UGaf19H5UEWoZBtp06T3Gxxhaq3RMkgzB2quBqMc qLRu15nv/pXCuJxUSCsVfTbMkWHMyB4bG4gVLFKO2bEIjVS1ikgXoHx6r8+N90JWh3 W6U+HRvy34HObUcQk+4BHgKYhAFIqbkHlDApBHipsmz5NzMx1YZiZUH05xtydi02qS 1mp9NGb4qW3iB47WQjcJKO8A= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qlRMxgQ5V7Qg; Sat, 10 Feb 2024 07:47:13 +0000 (UTC) Received: from xtexx.eu.org (unknown [223.73.102.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sat, 10 Feb 2024 07:47:12 +0000 (UTC) From: Zhang Bingwu To: Russell King , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Dinh Nguyen , "James E.J. Bottomley" , Helge Deller , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , "David S. Miller" , Andreas Larsson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Zhang Bingwu , Masahiro Yamada , Nathan Chancellor , Nicolas Schier Cc: x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: [PATCH 2/2] kbuild: Create INSTALL_PATH directory if it does not exist Date: Sat, 10 Feb 2024 15:46:01 +0800 Message-ID: <20240210074601.5363-3-xtex@envs.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240210074601.5363-1-xtex@envs.net> References: <20240210074601.5363-1-xtex@envs.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790497287640689129 X-GMAIL-MSGID: 1790497287640689129 From: Zhang Bingwu If INSTALL_PATH is not a valid directory, create it, like what modules_install and dtbs_install will do in the same situation. Signed-off-by: Zhang Bingwu Reviewed-by: Nicolas Schier --- scripts/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 9bb0fb44f04a..02b845e7ab33 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -20,6 +20,10 @@ do fi done +if [ "${INSTALL_PATH}" != "" ] && ! [ -e "${INSTALL_PATH}" ]; then + mkdir -p "${INSTALL_PATH}" +fi + # User/arch may have a custom install script for file in "${HOME}/bin/${INSTALLKERNEL}" \ "/sbin/${INSTALLKERNEL}" \