summaryrefslogtreecommitdiff
path: root/maintainer
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2020-12-14 08:44:00 (GMT)
committerChris Packham <judge.packham@gmail.com>2021-02-01 08:13:17 (GMT)
commit2340fa29125291b1db770616fcdc96a8ac1d103e (patch)
treec359586d557300af2281e18ae1846f72329eeda9 /maintainer
parent805fb9e1e028140d266e7ca5036bea9292545708 (diff)
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>
Diffstat (limited to 'maintainer')
-rw-r--r--maintainer/kconfig-choice.template2
-rw-r--r--maintainer/kconfig-menu.template2
2 files changed, 4 insertions, 0 deletions
diff --git a/maintainer/kconfig-choice.template b/maintainer/kconfig-choice.template
index bd0c474..6f03707 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
diff --git a/maintainer/kconfig-menu.template b/maintainer/kconfig-menu.template
index 4892435..1f5e7b2 100644
--- a/maintainer/kconfig-menu.template
+++ b/maintainer/kconfig-menu.template
@@ -8,7 +8,9 @@ menuconfig @@dir|@@_@@choice|@@
#!foreach dependency
@@depline@@
#!end-foreach
+#!if [ -n "@@*help@@" ]
help
+#!end-if
#!foreach help
@@helpline@@
#!end-foreach