Most host packages are not meant to be selected by users, instead they
are selected by target packages.

Signed-off-by: Roland Hieber <r...@pengutronix.de>
---
 scripts/lib/ptxd_lib_template.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh
index 6f91d8629b01..d77c4a73be8c 100644
--- a/scripts/lib/ptxd_lib_template.sh
+++ b/scripts/lib/ptxd_lib_template.sh
@@ -106,7 +106,12 @@ ptxd_template_read_author() {
 export -f ptxd_template_read_author
 
 ptxd_template_read_section() {
-    local section_name="${1:-project_specific}"
+    local section_name
+    if [ "${action}" = "host" ]; then
+       section_name="${1:-hosttools_noprompt}"
+    else
+       section_name="${1:-project_specific}"
+    fi
     ptxd_template_read "enter package section" section "${section_name}"
 }
 export -f ptxd_template_read_section
-- 
2.39.2


Reply via email to