mirror of https://gitee.com/openkylin/qemu.git
configure: clean-up the target-list-exclude logic
Rather than sed and loop just do a grep. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200915134317.11110-6-alex.bennee@linaro.org>
This commit is contained in:
parent
3a5ae4a936
commit
98db9a0667
|
@ -1739,17 +1739,9 @@ if test -z "$target_list"; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exclude_list=$(echo "$target_list_exclude" | sed -e 's/,/ /g')
|
|
||||||
for config in $mak_wilds; do
|
for config in $mak_wilds; do
|
||||||
target="$(basename "$config" .mak)"
|
target="$(basename "$config" .mak)"
|
||||||
exclude="no"
|
if echo "$target_list_exclude" | grep -vq "$target"; then
|
||||||
for excl in $exclude_list; do
|
|
||||||
if test "$excl" = "$target"; then
|
|
||||||
exclude="yes"
|
|
||||||
break;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if test "$exclude" = "no"; then
|
|
||||||
default_target_list="${default_target_list} $target"
|
default_target_list="${default_target_list} $target"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue