From 2340fa29125291b1db770616fcdc96a8ac1d103e Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Mon, 14 Dec 2020 21:44:00 +1300 Subject: 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 --- maintainer/kconfig-choice.template | 2 ++ 1 file changed, 2 insertions(+) (limited to 'maintainer/kconfig-choice.template') diff --git a/maintainer/kconfig-choice.template b/maintainer/kconfig-choice.template index bd0c4744..6f03707b 100644 --- a/maintainer/kconfig-choice.template +++ b/maintainer/kconfig-choice.template @@ -11,7 +11,9 @@ config @@dir|@@_@@choice|@@ #!foreach dependency @@depline@@ #!end-foreach +#!if [ -n "@@*help@@" ] help +#!end-if #!foreach help @@helpline@@ #!end-foreach -- cgit v1.2.3