[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/8] configure: clean-up the target-list-exclude logic
From: |
Alex Bennée |
Subject: |
[PULL 5/8] configure: clean-up the target-list-exclude logic |
Date: |
Wed, 16 Sep 2020 13:26:45 +0100 |
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>
diff --git a/configure b/configure
index f5fe48d6dd7b..58be974065c8 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
--
2.20.1
- [PULL 0/8] configure deprecation, linux-user and test fix, Alex Bennée, 2020/09/16
- [PULL 1/8] linux-user: test, don't assert addr != test in pgb_reserved_va, Alex Bennée, 2020/09/16
- [PULL 2/8] iotests: Drop readlink -f, Alex Bennée, 2020/09/16
- [PULL 4/8] configure: also skip deprecated targets with target-list-exclude, Alex Bennée, 2020/09/16
- [PULL 3/8] configure: move deprecated feature processing to supported_target, Alex Bennée, 2020/09/16
- [PULL 5/8] configure: clean-up the target-list-exclude logic,
Alex Bennée <=
- [PULL 6/8] configure: include tilegx-linux-user in the deprecation logic, Alex Bennée, 2020/09/16
- [PULL 7/8] gitlab: create a build-deprecated target, Alex Bennée, 2020/09/16
- Re: [PULL 7/8] gitlab: create a build-deprecated target, Peter Maydell, 2020/09/16
- Re: [PULL 7/8] gitlab: create a build-deprecated target, Alex Bennée, 2020/09/16
- Re: [PULL 7/8] gitlab: create a build-deprecated target, Philippe Mathieu-Daudé, 2020/09/16
- Re: [PULL 7/8] gitlab: create a build-deprecated target, Peter Maydell, 2020/09/25
- Re: [PULL 7/8] gitlab: create a build-deprecated target, Richard Henderson, 2020/09/25
- Re: [PULL 7/8] gitlab: create a build-deprecated target, Peter Maydell, 2020/09/25
[PULL 8/8] configure: add [lm32|unicore32]-softmmu to deprecation logic, Alex Bennée, 2020/09/16
Re: [PULL 0/8] configure deprecation, linux-user and test fix, Peter Maydell, 2020/09/17