aboutsummaryrefslogtreecommitdiff
path: root/maintainer
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2020-12-14 21:44:00 +1300
committerChris Packham <judge.packham@gmail.com>2021-02-01 21:13:17 +1300
commit2340fa29125291b1db770616fcdc96a8ac1d103e (patch)
treec359586d557300af2281e18ae1846f72329eeda9 /maintainer
parent805fb9e1e028140d266e7ca5036bea9292545708 (diff)
downloadcrosstool-ng-2340fa29125291b1db770616fcdc96a8ac1d103e.tar.gz
crosstool-ng-2340fa29125291b1db770616fcdc96a8ac1d103e.tar.bz2
crosstool-ng-2340fa29125291b1db770616fcdc96a8ac1d103e.zip
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 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
diff --git a/maintainer/kconfig-menu.template b/maintainer/kconfig-menu.template
index 4892435d..1f5e7b2e 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