15.09.2020 16:43, Alex Bennée wrote:
> This is the common point at which we validate targets so it makes
> sense to add_to deprecated_features here. It will make future target
> deprecation easier as we only need to tweak one list.
> 
> Signed-off-by: Alex Bennée <alex.ben...@linaro.org>
> ---
>  configure | 14 ++++++++++----

> +
> +    # if a deprecated target is enabled we note it here
> +    if echo "$deprecated_targets_list" | grep -q "$1"; then
> +        add_to deprecated_features $1
> +    fi


  case " $deprecated_targets_list " in (*" $1 "*) add_to deprecated_features 
$1;; esac

JFYI, - there's nothing wrong with echo|grep, it will work about the same way.. 
:)

/mjt

Reply via email to