kconfig: Terminate menu blocks with a comment in the generated config
authorAlexander Popov <alex.popov@linux.com>
Fri, 17 May 2019 19:42:22 +0000 (22:42 +0300)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 27 Sep 2019 20:31:25 +0000 (22:31 +0200)
commit7b1214ae732be753158ec3c004d232c3c2dfc592
tree7a6256d2e32e3589a34384b8235fbbe1f21dd5d9
parentfcd2962f05220e69124436a67cb9f93b46b6cf14
kconfig: Terminate menu blocks with a comment in the generated config

Currently menu blocks start with a pretty header but end with nothing in
the generated config. So next config options stick together with the
options from the menu block.

Let's terminate menu blocks in the generated config with a comment and
a newline if needed. Example:

...
CONFIG_BPF_STREAM_PARSER=y
CONFIG_NET_FLOW_LIMIT=y

#
# Network testing
#
CONFIG_NET_PKTGEN=y
CONFIG_NET_DROP_MONITOR=y
# end of Network testing
# end of Networking options

CONFIG_HAMRADIO=y
...

Signed-off-by: Alexander Popov <alex.popov@linux.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/confdata.c