mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
streamline_config.pl: handle also ${CONFIG_FOO}
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>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
committed by
Masahiro Yamada
parent
43fc0a9990
commit
98d7c7544a
@@ -317,7 +317,7 @@ foreach my $makefile (@makefiles) {
|
|||||||
$_ = convert_vars($_, %make_vars);
|
$_ = convert_vars($_, %make_vars);
|
||||||
|
|
||||||
# collect objects after obj-$(CONFIG_FOO_BAR)
|
# collect objects after obj-$(CONFIG_FOO_BAR)
|
||||||
if (/obj-\$\((CONFIG_[^\)]*)\)\s*[+:]?=\s*(.*)/) {
|
if (/obj-\$[({](CONFIG_[^})]*)[)}]\s*[+:]?=\s*(.*)/) {
|
||||||
$var = $1;
|
$var = $1;
|
||||||
$objs = $2;
|
$objs = $2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user