qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] configure: Support --target-list=? to list avai


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] configure: Support --target-list=? to list available targets
Date: Fri, 22 Apr 2011 01:50:53 +0100

On 21 April 2011 18:45, Stefan Weil <address@hidden> wrote:
> Am 21.04.2011 15:10, schrieb Peter Maydell:
>> Add support for getting configure to print the list of all targets
>> that can be built, via the option '--target-list=?'.

> The qemu executable supports this use pattern (-cpu ?),
> but it's unusual for configure.
>
> Other options (--audio-drv-list=LIST, --audio-card-list=LIST)
> show the available values in the help message (configure --help).
>
> What about a similar help text for --target-list? Like this:
>
>  --target-list=LIST       set target list []
>                           Available targets: i386-softmmu ...
>                           i386-linux-user ...

The "[]" here is wrong, incidentally, because the bit in [] is
supposed to be the default value, which for the target list is
not "build no targets" but "build all targets". So we could
either say:

  --target-list=LIST       set target list (default: build everything)
                           Available targets: i386-softmmu ...
                           i386-linux-user ...

or

  --target-list=LIST       set target list [i386-softmmu ...
i386-linux-user ...]

I vaguely prefer the first but have no strong feelings.

The other issue is that the target list is vastly longer than
any of the existing lists in the help, so it probably needs
something to automatically format it so it doesn't mess up
the formatting of the --help message.

(We could perhaps support --option=? for all the options that
take a list, in addition to giving the supported values in
--help, but maybe that's overkill.)

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]