Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kconfig: add -e and -u options to *conf-cfg.sh scripts

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 <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>

+8
+2
scripts/kconfig/gconf-cfg.sh
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 + set -eu 5 + 4 6 cflags=$1 5 7 libs=$2 6 8
+2
scripts/kconfig/mconf-cfg.sh
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 + set -eu 5 + 4 6 cflags=$1 5 7 libs=$2 6 8
+2
scripts/kconfig/nconf-cfg.sh
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 + set -eu 5 + 4 6 cflags=$1 5 7 libs=$2 6 8
+2
scripts/kconfig/qconf-cfg.sh
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 + set -eu 5 + 4 6 cflags=$1 5 7 libs=$2 6 8 bin=$3