]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: improve the recursive dependency report
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 15 Aug 2018 05:59:45 +0000 (14:59 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Aug 2018 14:21:39 +0000 (23:21 +0900)
commit55e567dfbbb7a796634dd7f0a0ae017b87725e98
tree6309ef2c804936b4d4735b3c2070c9ee7754c968
parentfe66c33e0c06d29736a11a3363aa59f50b89a97d
kconfig: improve the recursive dependency report

This commit improves the messages of the recursive dependency.
Currently, sym->dir_dep.expr is not checked.  Hence, any dependency
in property visibility is regarded as the dependency of the symbol.

[Test Code 1]

  config A
          bool "a"
          depends on B

  config B
          bool "b"
          depends on A

[Test Code 2]

  config A
          bool "a" if B

  config B
          bool "b"
          depends on A

For both cases above, the same message is displayed:

        symbol B depends on A
        symbol A depends on B

This commit changes the message for the latter, like this:

        symbol B depends on A
        symbol A prompt is visible depending on B

Also, 'select' and 'imply' are distinguished.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Dirk Gouders <dirk@gouders.net>
scripts/kconfig/symbol.c
scripts/kconfig/tests/err_recursive_dep/expected_stderr