diff options
author | Peter Maydell | 2013-05-20 17:16:16 +0200 |
---|---|---|
committer | Anthony Liguori | 2013-06-03 20:24:45 +0200 |
commit | 25b483381adf4144bad3cf3f433b4658da5e15bb (patch) | |
tree | c1288f6ec2d22b81ee34aa0c30c8329ef8a09ee9 /configure | |
parent | configure: Autogenerate default target list (diff) | |
download | qemu-25b483381adf4144bad3cf3f433b4658da5e15bb.tar.gz qemu-25b483381adf4144bad3cf3f433b4658da5e15bb.tar.xz qemu-25b483381adf4144bad3cf3f433b4658da5e15bb.zip |
configure: Report unknown target names more helpfully
If the user specifies a target list themselves, check each entry
to make sure it's a target we recognise. This allows us to print
a helpful error message, rather than falling through (where we
would probably eventually end up hitting the uninformative
"ERROR: Unsupported target CPU").
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1369062976-301-3-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1343,6 +1343,19 @@ if test -z "${target_list+xxx}" ; then else target_list=`echo "$target_list" | sed -e 's/,/ /g'` fi + +# Check that we recognised the target name; this allows a more +# friendly error message than if we let it fall through. +for target in $target_list; do + case " $default_target_list " in + *" $target "*) + ;; + *) + error_exit "Unknown target name '$target'" + ;; + esac +done + # see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yes |