On Mon, May 15, 2023 at 10:03:29AM +0200, Roland Hieber wrote:
> 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}"

We should remove the prompt in that case.

Michael

> +    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
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Reply via email to