From: Alex Bennée Date: Tue, 15 Sep 2020 13:43:14 +0000 (+0100) Subject: configure: clean-up the target-list-exclude logic X-Git-Tag: v5.2.0-rc0~108^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=98db9a066748fdbbd4131fd874c04d40fd0aca4b;p=users%2Fdwmw2%2Fqemu.git configure: clean-up the target-list-exclude logic Rather than sed and loop just do a grep. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20200915134317.11110-6-alex.bennee@linaro.org> --- diff --git a/configure b/configure index f5fe48d6dd..58be974065 100755 --- a/configure +++ b/configure @@ -1739,17 +1739,9 @@ if test -z "$target_list"; then fi fi -exclude_list=$(echo "$target_list_exclude" | sed -e 's/,/ /g') for config in $mak_wilds; do target="$(basename "$config" .mak)" - exclude="no" - for excl in $exclude_list; do - if test "$excl" = "$target"; then - exclude="yes" - break; - fi - done - if test "$exclude" = "no"; then + if echo "$target_list_exclude" | grep -vq "$target"; then default_target_list="${default_target_list} $target" fi done