[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range o
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets |
Date: |
Wed, 23 Mar 2016 17:20:56 +0000 |
This is useful if you want to build all targets of a given architecture
or type. A simple submatch to an real target will add it to the list.
Signed-off-by: Alex Bennée <address@hidden>
---
configure | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index b88d0db..ebf8a42 100755
--- a/configure
+++ b/configure
@@ -1246,7 +1246,8 @@ Standard options:
--target-list=LIST set target list (default: build everything)
$(echo Available targets: $default_target_list | \
fold -s -w 53 | sed -e 's/^/ /')
-
+ LIST can contain stems to match sets of targets
+ (e.g. softmmu will match all softmmu targets)
Advanced options (experts only):
--source-path=PATH path of source code [$source_path]
--cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]
@@ -1639,15 +1640,29 @@ fi
# Check that we recognised the target name; this allows a more
# friendly error message than if we let it fall through.
+final_target_list=""
for target in $target_list; do
case " $default_target_list " in
*" $target "*)
+ final_target_list="$target $final_target_list"
;;
*)
- error_exit "Unknown target name '$target'"
+ # Maybe we can match to range of targets?
+ exp="no"
+ for match in $default_target_list; do
+ if test "${match#*$target}" != "$match" ; then
+ final_target_list="$match $final_target_list"
+ exp="yes"
+ fi
+ done
+ if test "$exp" = "no"; then
+ error_exit "Unknown target name '$target'"
+ fi
;;
esac
done
+target_list=$final_target_list
+
# see if system emulation was really requested
case " $target_list " in
--
2.7.3
- [Qemu-devel] [PATCH v2 0/5] travis: reduce the matrix, add OSX, speed-up builds, Alex Bennée, 2016/03/23
- [Qemu-devel] [PATCH v2 1/5] .travis.yml: collapse the test matrix, Alex Bennée, 2016/03/23
- [Qemu-devel] [PATCH v2 2/5] .travis.yml: enable OSX builds, Alex Bennée, 2016/03/23
- [Qemu-devel] [PATCH v2 3/5] .travis.yml: make -j3, Alex Bennée, 2016/03/23
- [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets,
Alex Bennée <=
- Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets, Sergey Fedorov, 2016/03/24
- Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets, Alex Bennée, 2016/03/24
- Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets, Sergey Fedorov, 2016/03/24
- Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets, Alex Bennée, 2016/03/24
- Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets, Sergey Fedorov, 2016/03/24
- Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets, Alex Bennée, 2016/03/24
- Re: [Qemu-devel] [PATCH v2 4/5] ./configure: accept stems to match a range of targets, Sergey Fedorov, 2016/03/24
[Qemu-devel] [PATCH v2 5/5] .travis.yml: reduce target list on core configure tweaks, Alex Bennée, 2016/03/23