Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1447699rdb; Sat, 10 Feb 2024 02:30:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeK0QOQ3cQGtgbnQfSoLlEnCO+ZXO2MDsZrTfAxSwM2vp3v4+B0H/2sV+TwZjcrPtTgloI1ll9AkS+6WJ7ImBIIDjoQI/cBW5zRn6HuA== X-Google-Smtp-Source: AGHT+IFkXwA7n6CrISbESJcG1DhM3nngIKlWedriw0439GvqoXWDA6bpLbpM6xqdaMZEtpx7HwRU X-Received: by 2002:a05:6e02:1a09:b0:363:d96f:6850 with SMTP id s9-20020a056e021a0900b00363d96f6850mr2561317ild.12.1707561019664; Sat, 10 Feb 2024 02:30:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707561019; cv=pass; d=google.com; s=arc-20160816; b=S17vbyOs6ldKUelw5Ef/AcmC1bjqzaLDjKv7e71ve4pzI6P9Aq1ODAQed0VSAgxa4A CRgUUWpK4wz3Sbk6QMIueNgi6K5looi+Rl5qbQpbdFs/l3qkcbTT5SCwspyuf8+JKI/K ytae4IuiADvHBrAmKcmYcPbpKABVPWe0rmX35VfZcUSFjczKPyd40tMNeGNAlmTQI7Nu FhrlUWUQ86dulbugeOfS/O5NYEl6MQ74lu6LVioTEBpTBR0+xx7b8vK6pX7a4qUBclbO JzYOw2INs1ffwEnSx8rwyMTcDbkGl1pys2juh8vvtGRg4jwOW3VOdQye5Cjcru+3hT7D u5Sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=ph4jzB86nHaGBdGyQlHwPpxZccThyM3+Io4W8gZIxGI=; fh=XRVLV0k/oMePMPl3/Y6/us8z/BJ51cO2xz/oINawCWs=; b=DUq9homoQtmoqkhF+E/zXXwTfXX6ydfpa/oeRorMe/81aHRdXuylbfK5WIREvnvvNg TXhB4fjkiVWpiPHASTWianP6Vrf/8khrC8LnOyk2T7fS5jomJQ0SF5wnr+mhPZn5WWhh a2C3emY19ga+tOw3a5mtrOvfGJf8dsVdvebvmmq7QoGR53+47nx7p9SEZ14QZtMB7BD2 s+Z+qQAJgor+iAui+FDA8E/yRITR9kr0C4+RxWFGAG2F+WTq0XLZEucTzrnkQr0KxBrG HS3cKRJmPSJipZ9rEEDr2yKIt3ziw5r5PKg4+KtfG6Ym6RNrxEz5sr+qPqUd8JjcLETl Kt0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="T/mPfRyu"; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-60362-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk X-Forwarded-Encrypted: i=2; AJvYcCVsGQZvNsiOlOWhDG8PEoJmjSERjBPAtLPVoDucWJ/JbyvzQqzfkB8RdKOobwKHR33zTmCjWsPQcMmpt7PoqFmKFCJqFFd04LsUwqbSYg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l190-20020a6325c7000000b005dc1281f243si3273488pgl.371.2024.02.10.02.30.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 02:30:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60362-linux.lists.archive=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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="T/mPfRyu"; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-60362-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 4F5AF284486 for ; Sat, 10 Feb 2024 10:30:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E9EE36B1B; Sat, 10 Feb 2024 10:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="T/mPfRyu" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 5D64A364C7; Sat, 10 Feb 2024 10:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707561012; cv=none; b=Pb8Q2Am0ajIhxHtP2n1qR7edDka+jD0SvelBANk9GhRlvClzlIdx38G2wQAdQUJLlwYS+Z4rfTh6gsWfpeP5YY5lyMzC1nL61o3iZc0KXemV4q3noqpMs7V5gnf1npLBhOkx8EZ9AjvPltUGi86/Zr34URnS03ihGlrDcQc5y58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707561012; c=relaxed/simple; bh=A3ud78No7kD0Dn1wHTcneyRE+SVmCuqOLRHwIx5bJeE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UDryS4xgtan2kzS2fIDZCadmK9a1YmfXa9Aaxam26VNC6fVf1zo5TsUOpSurzr9Adv2YmXMWAxpxNfqZpPahxw+kLlJtwkVVg962D1bm61ITmnlISAEAGLss7MXc3ZDqJljn2Rci3AEPOUpMcwTgelv8BssCiSPIV8AgWwlBDjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=T/mPfRyu; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ph4jzB86nHaGBdGyQlHwPpxZccThyM3+Io4W8gZIxGI=; b=T/mPfRyuRFUl8GCt02nw5hF8m8 Awp1djpMFwBhecelf0XDJm5aDEs/HFqx7756B0bVepr/IJfGnj/mDwY2ntorwNMhuX7PNwkVwgiOs Vo0wg1FUKUe1QsAW95tmiDTM0/WP/VecHW4kPFzjiebWPfx/akDPQAN9lTy2Xp/2xXX+IbY8KnVwk MgbJRMZIRSjH+kI3aucCRbMHAnW4kOdZf765ego1yIRs35nz7bEpVbQLqzKKnVgwsNeRfkoMwTEpr nQVW3vHN/FJOwHxxSdheb5jdA9FltDBf0iVdtYybDa44bHMN/9CrHW6PvlCMexy63eQf+bCpkOJr8 eiPfQRGA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:38040) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rYkbe-0006qq-0m; Sat, 10 Feb 2024 10:29:10 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rYkbU-0007Ja-Ln; Sat, 10 Feb 2024 10:29:00 +0000 Date: Sat, 10 Feb 2024 10:29:00 +0000 From: "Russell King (Oracle)" To: Zhang Bingwu Cc: 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 , 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240210074601.5363-2-xtex@envs.net> Sender: Russell King (Oracle) On Sat, Feb 10, 2024 at 03:46:00PM +0800, Zhang Bingwu wrote: > 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 > --- > 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 > + What about #!/bin/sh -e on the first line, which is the more normal way to do this for an entire script? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!