summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlex Bennée2020-09-15 15:43:14 +0200
committerAlex Bennée2020-09-16 11:07:01 +0200
commit98db9a066748fdbbd4131fd874c04d40fd0aca4b (patch)
tree5a38f01b3397608d135c97ab072caf649de1c54b /configure
parentconfigure: also skip deprecated targets with target-list-exclude (diff)
downloadqemu-98db9a066748fdbbd4131fd874c04d40fd0aca4b.tar.gz
qemu-98db9a066748fdbbd4131fd874c04d40fd0aca4b.tar.xz
qemu-98db9a066748fdbbd4131fd874c04d40fd0aca4b.zip
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 1 insertions, 9 deletions
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