From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from e2i605.smtp2go.com (e2i605.smtp2go.com [103.2.142.93]) (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 D1C125F56E for ; Sat, 10 Feb 2024 21:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.2.142.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707600175; cv=none; b=WU7PhZ70GA05uEyulpa4DfibJv3EDqndmnN2XpYTHmRH/qEtkQ2WUZV8HQTWYH+0HNFjM5dDnctG48CruGGjGW8b9bK7vaxL/oxWCOzPKy6iHdWqY0FE7HtWz3h4nBs1pefYo6r+2mbp0yZbfHd6ihyN5q8GVmcfMsSbSpQ35xw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707600175; c=relaxed/simple; bh=I1g56Qbu1U7xe3c1QV1JroAnkemuPw2aHxort9pD/Wc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QiIP1LtzxeXdLq/IhsFRcKzDAADE7cGQULKu+Iql5+JLu/T2vwaB34nD+jzcnDVUVbKuPhvvre5yJEkuQwBn1E7rUAtKuJq4Pgkji4pCAexzh3GsFBcmM1pKBIFwjT5sJvLfaP8vivGwTrYIeJNgfWTooM4vmIRlFMZGqM4Q+dQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fjasle.eu; spf=pass smtp.mailfrom=em1174286.fjasle.eu; dkim=pass (2048-bit key) header.d=smtpservice.net header.i=@smtpservice.net header.b=dqWDMqEl; dkim=pass (2048-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b=OGfTkmAQ; dkim=pass (1024-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b=JbkbT0pd; arc=none smtp.client-ip=103.2.142.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fjasle.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=em1174286.fjasle.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=smtpservice.net header.i=@smtpservice.net header.b="dqWDMqEl"; dkim=pass (2048-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b="OGfTkmAQ"; dkim=pass (1024-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b="JbkbT0pd" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=mp6320.a1-4.dyn; x=1707601063; h=Feedback-ID: X-Smtpcorp-Track:Message-ID:Subject:To:From:Date:Reply-To:Sender: List-Unsubscribe; bh=2Fq96AF5MB0+kJ+KJdOs/5ZldIf6fpvtRLYffLd24+I=; b=dqWDMqEl jXEKsKZlAF4JLOgY5r7AUhLifZ613mDWIJ0BURZqkLsHVLVJgCajChHswR6ryfDRXyN4f02fQpoeV lY/wtsHAjT2HOniJ9BXWyv1vtolpj4nOs6u1jjkZT5MCpnS+SKgY2fAY2GijJ6J+FM3I/3BiRUpcf SCIq4o+QMXn594NNdSmMVy8FNiHxAOTrf8KjhrGQn73+x6BJG16UP4c3kIjE/X+HJ/3bW/hR7J2BQ T+570EZu+ySulRnkClllFTJb8Iwsj7Av103Jmd2rH7iTKwwvQ6xyAMZS55PraJinhuJKmL0OXIHkg fYP2Om3jJA8uw3Ow3HGz02XNxA==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fjasle.eu; i=@fjasle.eu; q=dns/txt; s=s1174286; t=1707600163; h=from : subject : to : message-id : date; bh=2Fq96AF5MB0+kJ+KJdOs/5ZldIf6fpvtRLYffLd24+I=; b=OGfTkmAQKA++N3GT87VL3mhpGnh6mP3ZMsgIv9PRIkiZA/aOpzb5Xotmpyus1wtR+ZfFP V2HDQQJPrwIJeEZZrc9oaliDRfT55P40xJOO2wjdPoc/1w9PKwxLl8ZY7a5dULeTIzA18hd VzkJeMJqu8pwruPaRL7XF/FewFns96d9nooTSaS9cdvi0iTpCgfkck3ksMpXy3PW1f8vkC+ Wj5ZW+3dRJSMC0sQp58dkb5AuRTl4JcRhig1JSjingOri1hZshfzEHBaUvxEM0z+tD2986q diOwYKV9nzwNXjCdTkGlHjlduuItvrIfE3Cod7Rh8N9gSZB5I7T+S1KKvgtg== Received: from [10.139.162.187] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2-S2G) (envelope-from ) id 1rYulD-qt4Fr1-Lp; Sat, 10 Feb 2024 21:19:46 +0000 Received: from [10.85.249.164] (helo=leknes.fjasle.eu) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96.1-S2G) (envelope-from ) id 1rYulD-4XnyKn-0Z; Sat, 10 Feb 2024 21:19:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1707599972; bh=I1g56Qbu1U7xe3c1QV1JroAnkemuPw2aHxort9pD/Wc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JbkbT0pdaP8BnvXh9tpxj+YS6okGmBmnNGsrfdhfV9EoSpDF5F4uOHaMJ+xMqzgij GHorn8ZRP9m/80ivs1VHZsgnANVVzW1lsFOxlplnJSNro9J6nuH834VWmTQkPGt9Is yHwwg6G/9TmIg3PL7q7Lo4tsSP4IC66lViSJVPGw= Received: by leknes.fjasle.eu (Postfix, from userid 1000) id 9DE743E9DC; Sat, 10 Feb 2024 22:19:32 +0100 (CET) Date: Sat, 10 Feb 2024 22:19:32 +0100 From: Nicolas Schier To: "Russell King (Oracle)" Cc: Zhang Bingwu , 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 , 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: Re: [PATCH 1/2] kbuild: Abort make on install failures Message-ID: References: <20240210074601.5363-1-xtex@envs.net> <20240210074601.5363-2-xtex@envs.net> Precedence: bulk X-Mailing-List: linux-m68k@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="enK6rDCtE6qVMuuk" Content-Disposition: inline In-Reply-To: X-Smtpcorp-Track: 1rYI_D4bnyKn0Z.xzh01gNhdL6-Q Feedback-ID: 1174286m:1174286a9YXZ7r:1174286sd7ZiAHDp8 X-Report-Abuse: Please forward a copy of this message, including all headers, to --enK6rDCtE6qVMuuk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 10, 2024 at 10:29:00AM +0000 Russell King (Oracle) wrote: > On Sat, Feb 10, 2024 at 03:46:00PM +0800, Zhang Bingwu wrote: > > From: Zhang Bingwu > >=20 > > 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. > >=20 > > 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 > > --- Thanks for fixing! [...] > > 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) > > =20 > > +set -e > > + >=20 > What about #!/bin/sh -e on the first line, which is the more normal way > to do this for an entire script? are you sure? I can find many more occurrences of 'set -e' than the shebang version in the Linux tree, especially in the kbuild scripts, thus it's bike-shedding, isn't it? Reviewed-by: Nicolas Schier Kind regards, Nicolas --enK6rDCtE6qVMuuk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmXH6FkACgkQB1IKcBYm Emmflg//QV42IFPNYuHOXGOMGBjwhOcPS5a63Ery8+rM164QOh4y8GFFm70Ti5Wd s5wSWvSTxw+riHznvjEkrzi/KrHEMIWsy6HRRBdrzwpiytGb7QCnUT1LtSteBeNe JPtcZ5MGz0W4HIUA4cj46FxFGpR+DjnrGk2FoXd/BSwhYq0asA1muUHQ0YwN3ksS b86PM8Y/JgAbCGeA9qF+uZGaSFjU9cl4LQj14E7IPYrp9ZeDgYY3eC6vNPJ+64zD Jipvq0pg5G9MrN92hNXw/VVn4pGrquNcIqFQwGypcZIb2YrKOLEtPBctEqZkYNfd TGngv5bUFvUwllm9o/VpflR1XOx1auN2AJQux6l1ca41dhH/tKkFCrDU7V5Xxc6J 3VBC9QeZuVuh5AETrC9whYVFSIvoQvH5NHRV6ffqA6AGjXQJNsNNsUuwVnhliaDh vqNO7OJm2ZoZmlBjNCGI1LsjNateOOY7mzk1Fsz9pl0OyhkDjjDoT56rTcC+Ykz9 HSceveMepuVG/vTNMEwXIGAaG3p+7+/mj4QrwE9TAWCRs/ASCnaMYJUkPmJLfuXD tOP59blzBvkY5HAmDHMdl4AIFtM9rjm/JQORwYT2tB+MfdyZxCWWJPz7mjs6ykAy JF9090FJh3puL9bw721bvpb75ptKyBxpuvQsas2SspCCtT1DidQ= =NJcH -----END PGP SIGNATURE----- --enK6rDCtE6qVMuuk--