tools: moveconfig: warn loudly if moved option has no entry in Kconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 22 Aug 2016 13:18:21 +0000 (22:18 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 6 Sep 2016 17:18:20 +0000 (13:18 -0400)
commit916224c38d2e5a582bba472b9e4b133c12862efa
tree14491de2dba832238e0c7d3b09bbaf970e67d294
parent09c6c06688d0042872a2eba3b19862d74d2f4a8a
tools: moveconfig: warn loudly if moved option has no entry in Kconfig

Currently, the tool gives up moving an option quietly if its entry
was not found in Kconfig.

If the option is not defined in the config header in the first
place, it is no problem (as the Kconfig entry may have been hidden
by reasonable "depends on").

However, if the option is defined in the config header, the missing
Kconfig entry is a sign of possible behavior change.  It is highly
recommended to manually check if the option has been moved as
expected.  In this case, let's add "suspicious" in the log and
change the log color (if --color option is given) to make it stand
out.

This was suggested by Tom in [1].

[1] http://lists.denx.de/pipermail/u-boot/2016-July/261988.html

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Suggested-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/moveconfig.py