[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230607061417.13636-1-jirislaby@kernel.org>
Date: Wed, 7 Jun 2023 08:14:17 +0200
From: "Jiri Slaby (SUSE)" <jirislaby@...nel.org>
To: masahiroy@...nel.org
Cc: linux-kernel@...r.kernel.org, Jiri Slaby <jslaby@...e.cz>,
andreas.noever@...il.com, michael.jamet@...el.com,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
YehezkelShB@...il.com, Steven Rostedt <rostedt@...dmis.org>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Subject: [PATCH] streamline_config.pl: handle also ${CONFIG_FOO}
From: Jiri Slaby <jslaby@...e.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@...e.cz>
Cc: andreas.noever@...il.com
Cc: michael.jamet@...el.com
Cc: Mika Westerberg <mika.westerberg@...ux.intel.com>
Cc: YehezkelShB@...il.com
Cc: Steven Rostedt <rostedt@...dmis.org>
Cc: Linux Kbuild mailing list <linux-kbuild@...r.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
Powered by blists - more mailing lists