public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] streamline_config.pl: handle also ${CONFIG_FOO}
@ 2023-06-07  6:14 Jiri Slaby (SUSE)
  2023-06-07  6:47 ` Mika Westerberg
  2023-06-07 12:22 ` Masahiro Yamada
  0 siblings, 2 replies; 4+ messages in thread
From: Jiri Slaby (SUSE) @ 2023-06-07  6:14 UTC (permalink / raw)
  To: masahiroy
  Cc: linux-kernel, Jiri Slaby, andreas.noever, michael.jamet,
	Mika Westerberg, YehezkelShB, Steven Rostedt,
	Linux Kbuild mailing list

From: Jiri Slaby <jslaby@suse.cz>

streamline_config.pl currently searches for CONFIG options in Kconfig
files as $(CONFIG_FOO). But some Kconfigs (e.g. thunderbolt) use
${CONFIG_FOO}. So fix up the regex to accept both.

This fixes:
$ make LSMOD=`pwd/`/lsmod localmodconfig
using config: '.config'
thunderbolt config not found!!

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: andreas.noever@gmail.com
Cc: michael.jamet@intel.com
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: YehezkelShB@gmail.com
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
---
 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 3387ad7508f7..d51cd7ac15d2 100755
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -317,7 +317,7 @@ foreach my $makefile (@makefiles) {
 	$_ = convert_vars($_, %make_vars);
 
 	# collect objects after obj-$(CONFIG_FOO_BAR)
-	if (/obj-\$\((CONFIG_[^\)]*)\)\s*[+:]?=\s*(.*)/) {
+	if (/obj-\$[({](CONFIG_[^})]*)[)}]\s*[+:]?=\s*(.*)/) {
 	    $var = $1;
 	    $objs = $2;
 
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-07 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-07  6:14 [PATCH] streamline_config.pl: handle also ${CONFIG_FOO} Jiri Slaby (SUSE)
2023-06-07  6:47 ` Mika Westerberg
2023-06-07 12:22 ` Masahiro Yamada
2023-06-07 14:49   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox