Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp458974lqp; Tue, 11 Jun 2024 09:13:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpibBVJlx1a1V1P0e20qpcOFO7LaIRoLpPthmv485jUv2pzZ5BBj4MhvO4UghRR8xhQj0GLRbZJmmqprFEsAiBVDFuKSs2L4I04yltEg== X-Google-Smtp-Source: AGHT+IGdPPtgF6zNK31utLhMsmJ0G5HbBe6o2MqphkFVwJtJ+ne5rqhrcA7yCwxWcx2/FUZgsspV X-Received: by 2002:a05:6a21:19c:b0:1b8:4764:3793 with SMTP id adf61e73a8af0-1b86bc5d23bmr4771548637.15.1718122433329; Tue, 11 Jun 2024 09:13:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718122433; cv=pass; d=google.com; s=arc-20160816; b=svpBFDQt/TwLS9XANrA536J6I1HXzWIKgLAW7j+IvFxytZ1zAEE0PKfOj3q7dp16V9 IL3UEPBdL/qsckRzquNaW7U/4hDgXtEUP35QM4T/Ig5kgJ5M0oY/qL7gXQ+aO1vNqiik 8byKXBSwnzjb3NP5XKiqUjUcSBqdxB8TsxZ7QeR7rPbCmJyQQgPfV3JR/Kz6VzErP33y SiKMZ7fpCkl3DZTifXMMI0BvnS3QLxpqzHBg2rw3xCLeH2E7Xwq2ASnkzvKRMEMmwyld FkPA6oHklegpM3BRtF92CTiKeWl+Gs9DOGdzvmiVh9I1c8aXxikDWu4WqmhobplyAYUe 6Eig== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=B8bollPgFRD2k2ByjfPOK7MSA5dWxfxqDU/4xUpMazU=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=cnX8XEw6YaVoYyLjEO0TanJZQ4bbiDuI0aeBHd3jEWAmpcHMsRVQeAnLRwJFkRGTUo tUZKuZ0Wjo2lElxRSglJsuFICm0DoevHQVWgzLIw102hPAgC8900VFYCTrfksTz9KGoK ejjtIx9E/tJ8ilXF7aX6g8Worwn0jzX0pIa5EQ74i+AB+PsV4hOFXSN5FTQhgsIqzSmA XatA64MisbjAZBaky7CN735fnoWLh7X+Bwm8Ar6j6Vqgb2pFROw2oPatAIpvEadcnxh3 K3ubJP7pt3uSIwQ5FUD1lGotsXpBceHnK5mIk+yzFNvXdbED9BC17mN+rmiAvg+xR65T 1NUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bvmxlu98; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-704151d643bsi6565238b3a.386.2024.06.11.09.13.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:13:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bvmxlu98; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 331B2B21A5F for ; Tue, 11 Jun 2024 16:09:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BB623AC1F; Tue, 11 Jun 2024 16:09:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bvmxlu98" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4EECC2C694; Tue, 11 Jun 2024 16:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718122191; cv=none; b=EpyG+Kngdb7MuPyS9LDQ2k+Oc3IS/4iGKrYlRulLRWO5NvCvsMnwxz+wn8Im7+PDVXVyllJSRMP+979hw1CPgF/45jEbNn07umsSrGozN6WxVo3SSbLvzbjCBcd0g9Fq2JEZRmYNgxvKNKaxQde5FsNlfmxUESy9GsqPpH8Uu/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718122191; c=relaxed/simple; bh=OBoA2p8QUxX2YtCi+LzDy3re7iW0nv+1GXUkJNvdsDI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rkklZVO9XnA04xiG1TkPAPkPwsN6pN4w3gCL5XKpedumTLI5fERPzbwpRlkLUfJlcsvGZcZ9vEdI16RSLqP9VorTE/C/Gb8D7ykP9lYthBCQcyPZ2Sy9bsSCpzGWk3gGiDC/Uo+4kTxNATrdYoBRaHxy58v1nrRHgOaythxRYfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Bvmxlu98; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE99EC2BD10; Tue, 11 Jun 2024 16:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718122190; bh=OBoA2p8QUxX2YtCi+LzDy3re7iW0nv+1GXUkJNvdsDI=; h=From:To:Cc:Subject:Date:From; b=Bvmxlu98iciUZNvAZSJZSsrsMj9aBuOSwhWbwHu9WAz58bDJlUJvw0iHoHJ455++C +TBtEcyUJ0WVbPM5v2jUerd8Gvy6lKHBwrgWbsQSeQZFlWIEnYkAFMKVtXzgOfTKuZ ryPqV/2zr1uyinq9DIY9H8WPgcAf+MepUxRF/cWEwCORG1AGR6xKSTXSIAUlAQ5fAq YwO9SuuzO3wQiELHZSsLHuwaoowl23lLW1SaknVZolX4O036aB4VjALxGKsptyIXG/ L7swlNzPWS05WjF+1X5kJEA3V/1tEyEkOsm5zW7CBymoYHUuFhUdlluIoT9wGlgvIk T304MfCs4Nb2g== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 1/2] kconfig: add -e and -u options to *conf-cfg.sh scripts Date: Wed, 12 Jun 2024 01:08:05 +0900 Message-ID: <20240611160938.3511096-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Set -e to make these scripts fail on the first error. Set -u because these scripts are invoked by Makefile, and do not work properly without necessary variables defined. Both options are described in POSIX. [1] [1]: https://pubs.opengroup.org/onlinepubs/009604499/utilities/set.html Signed-off-by: Masahiro Yamada --- scripts/kconfig/gconf-cfg.sh | 2 ++ scripts/kconfig/mconf-cfg.sh | 2 ++ scripts/kconfig/nconf-cfg.sh | 2 ++ scripts/kconfig/qconf-cfg.sh | 2 ++ 4 files changed, 8 insertions(+) diff --git a/scripts/kconfig/gconf-cfg.sh b/scripts/kconfig/gconf-cfg.sh index 040d8f338820..fc954c0538fa 100755 --- a/scripts/kconfig/gconf-cfg.sh +++ b/scripts/kconfig/gconf-cfg.sh @@ -1,6 +1,8 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 +set -eu + cflags=$1 libs=$2 diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh index 1e61f50a5905..1bc304dc2f7d 100755 --- a/scripts/kconfig/mconf-cfg.sh +++ b/scripts/kconfig/mconf-cfg.sh @@ -1,6 +1,8 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 +set -eu + cflags=$1 libs=$2 diff --git a/scripts/kconfig/nconf-cfg.sh b/scripts/kconfig/nconf-cfg.sh index f871a2160e36..a20290b1a37d 100755 --- a/scripts/kconfig/nconf-cfg.sh +++ b/scripts/kconfig/nconf-cfg.sh @@ -1,6 +1,8 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 +set -eu + cflags=$1 libs=$2 diff --git a/scripts/kconfig/qconf-cfg.sh b/scripts/kconfig/qconf-cfg.sh index 0e113b0f2455..bb2df66363a8 100755 --- a/scripts/kconfig/qconf-cfg.sh +++ b/scripts/kconfig/qconf-cfg.sh @@ -1,6 +1,8 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 +set -eu + cflags=$1 libs=$2 bin=$3 -- 2.43.0