Signed-off-by: Roland Hieber <r...@pengutronix.de>
---
PATCH 1/2 and PATCH 2/2 can stay as they are.
---
 rules/templates/template-class-existing-target-in | 4 +---
 rules/templates/template-class-in                 | 4 +---
 scripts/lib/ptxd_lib_template.sh                  | 8 ++++++++
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/rules/templates/template-class-existing-target-in 
b/rules/templates/template-class-existing-target-in
index d563fb7bb657..b1c8e71023bc 100644
--- a/rules/templates/template-class-existing-target-in
+++ b/rules/templates/template-class-existing-target-in
@@ -2,6 +2,4 @@
 
 config @CLASS@@PACKAGE@
        tristate
-@DEFAULT@@SELECT@      prompt "@package@"
-       help
-         FIXME
+@DEFAULT@@SELECT@@PROMPT@
diff --git a/rules/templates/template-class-in 
b/rules/templates/template-class-in
index d563fb7bb657..b1c8e71023bc 100644
--- a/rules/templates/template-class-in
+++ b/rules/templates/template-class-in
@@ -2,6 +2,4 @@
 
 config @CLASS@@PACKAGE@
        tristate
-@DEFAULT@@SELECT@      prompt "@package@"
-       help
-         FIXME
+@DEFAULT@@SELECT@@PROMPT@
diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh
index d77c4a73be8c..8d1e22c80ade 100644
--- a/scripts/lib/ptxd_lib_template.sh
+++ b/scripts/lib/ptxd_lib_template.sh
@@ -113,6 +113,14 @@ ptxd_template_read_section() {
        section_name="${1:-project_specific}"
     fi
     ptxd_template_read "enter package section" section "${section_name}"
+
+    export PROMPT='    prompt "'${package}'"
+       help
+         FIXME
+'
+    case "${section}" in
+       hosttools_noprompt*) PROMPT="";;
+    esac
 }
 export -f ptxd_template_read_section
 
-- 
2.39.2


Reply via email to