[PATCH 1/7] linux-kbuild: fix: config option can be bool

From: David Hunter
Date: Fri Sep 13 2024 - 13:12:48 EST


Select configs that do not have a prompt. Config options can be bool or
tristate. Ensure that bool options are also selected.

Signed-off-by: David Hunter <david.hunter.linux@xxxxxxxxx>
---
scripts/kconfig/streamline_config.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index d51cd7ac15d2..a828d7ab7e26 100755
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -238,7 +238,7 @@ sub read_kconfig {
}

# configs without prompts must be selected
- } elsif ($state ne "NONE" && /^\s*(tristate\s+\S|prompt\b)/) {
+ } elsif ($state ne "NONE" && /^\s*((bool|tristate)\s+\S|prompt\b)/) {
# note if the config has a prompt
$prompts{$config} = 1;

--
2.43.0