Don't generate empty help

Kconfig now complains when we have a help section with no text. If there
is nothing in @@help@@ don't output a `help` section.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
Chris Packham 2020-12-14 21:44:00 +13:00
parent 805fb9e1e0
commit 2340fa2912
2 changed files with 4 additions and 0 deletions

View File

@ -11,7 +11,9 @@ config @@dir|@@_@@choice|@@
#!foreach dependency
@@depline@@
#!end-foreach
#!if [ -n "@@*help@@" ]
help
#!end-if
#!foreach help
@@helpline@@
#!end-foreach

View File

@ -8,7 +8,9 @@ menuconfig @@dir|@@_@@choice|@@
#!foreach dependency
@@depline@@
#!end-foreach
#!if [ -n "@@*help@@" ]
help
#!end-if
#!foreach help
@@helpline@@
#!end-foreach