linux-uconsole/scripts/kconfig
Steven Rostedt adc0186cfa kconfig/streamline-config.pl: Fix parsing Makefile with variables
commit 364212fdda upstream.

Thomas Lange reported that when he did a 'make localmodconfig', his
config was missing the brcmsmac driver, even though he had the module
loaded.

Looking into this, I found the file:
drivers/net/wireless/brcm80211/brcmsmac/Makefile
had the following in the Makefile:

MODULEPFX := brcmsmac

obj-$(CONFIG_BRCMSMAC)  += $(MODULEPFX).o

The way streamline-config.pl works, is parsing all the
 obj-$(CONFIG_FOO) += foo.o
lines to find that CONFIG_FOO belongs to the module foo.ko.

But in this case, the brcmsmac.o was not used, but a variable in its place.

By changing streamline-config.pl to remember defined variables in Makefiles
and substituting them when they are used in the obj-X lines, allows
Thomas (and others) to have their brcmsmac module stay configured
when it is loaded and running "make localmodconfig".

Reported-by: Thomas Lange <thomas-lange2@gmx.de>
Tested-by: Thomas Lange <thomas-lange2@gmx.de>
Cc: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2012-01-25 17:24:47 -08:00
..
lxdialog kconfig: fix menuconfig on debian lenny 2010-09-20 14:09:31 +02:00
.gitignore scripts: add nconf into gitignore file 2010-06-03 10:12:40 +02:00
check.sh kbuild: check if we can link gettext not just compile 2007-10-12 21:13:50 +02:00
conf.c kconfig: Avoid buffer underrun in choice input 2011-04-08 12:05:20 +02:00
confdata.c kconfig: do not record timestamp in .config 2011-05-24 16:13:40 +02:00
expr.c kconfig: Make expr_copy() take a const argument 2010-12-21 17:59:16 +01:00
expr.h kconfig: get rid of unused flags 2011-04-15 15:12:57 +02:00
gconf.c gconfig: Hide unused left treeview when start up the interface 2011-05-24 15:41:51 +02:00
gconf.glade scripts/kconfig/gconf.glade Update broken web addresses. 2010-09-17 16:54:42 +02:00
images.c
kconfig_load.c
kxgettext.c kconfig: Propagate const 2010-09-30 22:17:48 +02:00
lex.zconf.c_shipped kconfig: get rid of unused flags 2011-04-15 15:12:57 +02:00
lkc.h Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 2011-01-10 08:28:17 -08:00
lkc_proto.h Merge branch 'message-callback' into kbuild/kconfig 2010-10-28 00:54:25 +02:00
Makefile kconfig: quiet commands when V=0 2011-04-29 10:41:15 +02:00
mconf.c kconfig: replace KERNELVERSION usage by the mainmenu's prompt 2010-09-19 22:53:53 -04:00
menu.c kbuild: Fix help text not displayed in choice option. 2011-11-11 09:36:57 -08:00
nconf.c nconfig: Silence unused return values from wattrset 2011-04-19 09:21:52 +02:00
nconf.gui.c kbuild: fix typo 2010-08-17 11:00:43 +02:00
nconf.h nconfig: add search support 2010-08-16 22:04:55 +02:00
POTFILES.in kconfig: gettext support for lxdialog 2008-01-28 23:14:39 +01:00
qconf.cc xconfig: merge code path to conf_write() 2011-05-25 15:05:07 +02:00
qconf.h kconfig qconf: port to QT4 2010-09-01 16:14:29 +02:00
streamline_config.pl kconfig/streamline-config.pl: Fix parsing Makefile with variables 2012-01-25 17:24:47 -08:00
symbol.c Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 2011-01-10 08:28:17 -08:00
util.c kconfig: expand file names 2010-09-19 22:54:07 -04:00
zconf.gperf kconfig: add an option to determine a menu's visibility 2010-11-22 11:27:17 -02:00
zconf.hash.c_shipped kconfig: regen parser 2010-11-22 11:27:32 -02:00
zconf.l kconfig: get rid of unused flags 2011-04-15 15:12:57 +02:00
zconf.tab.c_shipped kconfig: regen parser 2010-11-22 11:27:32 -02:00
zconf.y kconfig: add an option to determine a menu's visibility 2010-11-22 11:27:17 -02:00