Skip to content
Snippets Groups Projects
Commit 98db9a06 authored by Alex Bennée's avatar Alex Bennée
Browse files

configure: clean-up the target-list-exclude logic


Rather than sed and loop just do a grep.

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-Id: <20200915134317.11110-6-alex.bennee@linaro.org>
parent 3a5ae4a9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment