A bug was recently found in the make localmodconfig where it would miss
dependencies of config files are include in other config files inside
an if statement.
Also added a debug print that helped in solving this bug.
localmodconfig: Process source kconfig files as they are found
A bug was reported that caused localmodconfig to not keep all the
dependencies of ATH9K. This was caused by the kconfig file:
bool "Atheros wireless debugging"
Say Y, if you want to debug atheros wireless drivers.
Right now only ath9k makes use of this.
The current way kconfig works, it processes new source files after the
first file is completed. It creates an array of new source config files
and when the one file is finished, it continues with the next file.
Unfortunately, this means that it loses the fact that the source file is
within an "if" statement, and this means that each of these source file's
configs will not have the proper dependencies set.
As ATH9K requires ATH_CARDS set, the localmodconfig did not see that
dependency, and did not enable ATH_CARDS. When the oldconfig was run, it
forced ATH9K to be disabled.
Cc: firstname.lastname@example.org # 3.8+
Reported-by: Robert P. J. Day <email@example.com>
Tested-by: Robert P. J. Day <firstname.lastname@example.org>
Signed-off-by: Steven Rostedt <email@example.com>
1 file changed