From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QD4aF-0005PK-Hk for qemu-devel@nongnu.org; Thu, 21 Apr 2011 20:50:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QD4aE-0005Sk-BQ for qemu-devel@nongnu.org; Thu, 21 Apr 2011 20:50:55 -0400 Received: from mail-vx0-f173.google.com ([209.85.220.173]:57264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QD4aE-0005Sg-9B for qemu-devel@nongnu.org; Thu, 21 Apr 2011 20:50:54 -0400 Received: by vxb41 with SMTP id 41so229462vxb.4 for ; Thu, 21 Apr 2011 17:50:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4DB06D28.1040007@mail.berlios.de> References: <1303391455-5289-1-git-send-email-peter.maydell@linaro.org> <4DB06D28.1040007@mail.berlios.de> Date: Fri, 22 Apr 2011 01:50:53 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] configure: Support --target-list=? to list available targets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org On 21 April 2011 18:45, Stefan Weil 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=3D?'. > The qemu executable supports this use pattern (-cpu ?), > but it's unusual for configure. > > Other options (--audio-drv-list=3DLIST, --audio-card-list=3DLIST) > show the available values in the help message (configure --help). > > What about a similar help text for --target-list? Like this: > > =C2=A0--target-list=3DLIST =C2=A0 =C2=A0 =C2=A0 set target list [] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 Available targets: i386-softmmu ... > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 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=3DLIST set target list (default: build everything) Available targets: i386-softmmu ... i386-linux-user ... or --target-list=3DLIST 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=3D? for all the options that take a list, in addition to giving the supported values in --help, but maybe that's overkill.) -- PMM