All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Laurent Desnogues <laurent.desnogues@gmail.com>
Cc: qemu-trivial <qemu-trivial@nongnu.org>,
	Peter Maydell <peter.maydell@linaro.org>,
	Anthony Liguori <aliguori@us.ibm.com>,
	berrange@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] configure: Allow builds without any system or user emulation
Date: Mon, 24 Sep 2012 14:49:20 +0200	[thread overview]
Message-ID: <506056D0.5020502@weilnetz.de> (raw)
In-Reply-To: <CABoDooNWZXcrgu2OVtjfC-MkLYoWx=_-68iHzy4ufBK-VV_73A@mail.gmail.com>

Am 24.09.2012 12:57, schrieb Laurent Desnogues:
> On Sat, Sep 22, 2012 at 11:37 PM, Stefan Weil<sw@weilnetz.de>  wrote:
>> Am 14.09.2012 19:02, schrieb Stefan Weil:
>>
>>> The old code aborted configure when no emulation target was selected.
>>> Even after removing the 'exit 1', it tried to read from STDIN
>>> when QEMU was configured with
>>>
>>>       configure' '--disable-user' '--disable-system'
>>>
>>> This is fixed here.
>>>
>>> Signed-off-by: Stefan Weil<sw@weilnetz.de>
>>> ---
>>>
>>> This patch can be applied after 66d5499b3 was reverted.
>>>
>>> It also works on top of 66d5499b3. In this case only Makefile
>>> needs modifications, and the configure part of the patch must be removed.
>>>
>>> Regards
>>>
>>> Stefan Weil
>>>
>>>
>>>    Makefile  |    5 +++++
>>>    configure |    4 ----
>>>    2 files changed, 5 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 9523e05..d38ac0f 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -52,8 +52,13 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
>>> BUILD_DIR=$(BUILD_DIR)
>>>    SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
>>>    SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d,
>>> $(TARGET_DIRS))
>>>
>>> +ifeq ($(SUBDIR_DEVICES_MAK),)
>>> +config-all-devices.mak:
>>> +       $(call quiet-command,echo '# no devices'>   $@,"  GEN   $@")
>>> +else
>>>    config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
>>>          $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort
>>> -u>   $@,"  GEN   $@")
>>> +endif
>>>
>>>    -include $(SUBDIR_DEVICES_MAK_DEP)
>>>
>>> diff --git a/configure b/configure
>>> index fc27bd9..a9305f3 100755
>>> --- a/configure
>>> +++ b/configure
>>> @@ -1331,10 +1331,6 @@ if test -z "$target_list" ; then
>>>    else
>>>        target_list=`echo "$target_list" | sed -e 's/,/ /g'`
>>>    fi
>>> -if test -z "$target_list" ; then
>>> -    echo "No targets enabled"
>>> -    exit 1
>>> -fi
>>>    # see if system emulation was really requested
>>>    case " $target_list " in
>>>      *"-softmmu "*) softmmu=yes
>>>
>>
>>
>>
>> Ping? 66d5499b3 was reverted, so my patch can be applied if nobody objects.
>
> Works fine here.
>
> I think Daniel's original proposal to use some keyword for target-list
> is more convenient than having to use both --disable-user and
> --disable-system, but that's no big deal :-)
>
>
> Laurent

Thanks for testing. Support for --target-list= (empty target list
instead of --disable-user --disable-system) also requires the same
modifications and can be implemented by an additional patch.

Stefan



WARNING: multiple messages have this Message-ID (diff)
From: Stefan Weil <sw@weilnetz.de>
To: Laurent Desnogues <laurent.desnogues@gmail.com>
Cc: qemu-trivial <qemu-trivial@nongnu.org>,
	Peter Maydell <peter.maydell@linaro.org>,
	Anthony Liguori <aliguori@us.ibm.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] configure: Allow builds without any system or user emulation
Date: Mon, 24 Sep 2012 14:49:20 +0200	[thread overview]
Message-ID: <506056D0.5020502@weilnetz.de> (raw)
In-Reply-To: <CABoDooNWZXcrgu2OVtjfC-MkLYoWx=_-68iHzy4ufBK-VV_73A@mail.gmail.com>

Am 24.09.2012 12:57, schrieb Laurent Desnogues:
> On Sat, Sep 22, 2012 at 11:37 PM, Stefan Weil<sw@weilnetz.de>  wrote:
>> Am 14.09.2012 19:02, schrieb Stefan Weil:
>>
>>> The old code aborted configure when no emulation target was selected.
>>> Even after removing the 'exit 1', it tried to read from STDIN
>>> when QEMU was configured with
>>>
>>>       configure' '--disable-user' '--disable-system'
>>>
>>> This is fixed here.
>>>
>>> Signed-off-by: Stefan Weil<sw@weilnetz.de>
>>> ---
>>>
>>> This patch can be applied after 66d5499b3 was reverted.
>>>
>>> It also works on top of 66d5499b3. In this case only Makefile
>>> needs modifications, and the configure part of the patch must be removed.
>>>
>>> Regards
>>>
>>> Stefan Weil
>>>
>>>
>>>    Makefile  |    5 +++++
>>>    configure |    4 ----
>>>    2 files changed, 5 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 9523e05..d38ac0f 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -52,8 +52,13 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
>>> BUILD_DIR=$(BUILD_DIR)
>>>    SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
>>>    SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d,
>>> $(TARGET_DIRS))
>>>
>>> +ifeq ($(SUBDIR_DEVICES_MAK),)
>>> +config-all-devices.mak:
>>> +       $(call quiet-command,echo '# no devices'>   $@,"  GEN   $@")
>>> +else
>>>    config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
>>>          $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort
>>> -u>   $@,"  GEN   $@")
>>> +endif
>>>
>>>    -include $(SUBDIR_DEVICES_MAK_DEP)
>>>
>>> diff --git a/configure b/configure
>>> index fc27bd9..a9305f3 100755
>>> --- a/configure
>>> +++ b/configure
>>> @@ -1331,10 +1331,6 @@ if test -z "$target_list" ; then
>>>    else
>>>        target_list=`echo "$target_list" | sed -e 's/,/ /g'`
>>>    fi
>>> -if test -z "$target_list" ; then
>>> -    echo "No targets enabled"
>>> -    exit 1
>>> -fi
>>>    # see if system emulation was really requested
>>>    case " $target_list " in
>>>      *"-softmmu "*) softmmu=yes
>>>
>>
>>
>>
>> Ping? 66d5499b3 was reverted, so my patch can be applied if nobody objects.
>
> Works fine here.
>
> I think Daniel's original proposal to use some keyword for target-list
> is more convenient than having to use both --disable-user and
> --disable-system, but that's no big deal :-)
>
>
> Laurent

Thanks for testing. Support for --target-list= (empty target list
instead of --disable-user --disable-system) also requires the same
modifications and can be implemented by an additional patch.

Stefan

  reply	other threads:[~2012-09-24 12:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 17:02 [Qemu-devel] [PATCH] configure: Allow builds without any system or user emulation Stefan Weil
2012-09-22 21:37 ` Stefan Weil
2012-09-24 10:57   ` Laurent Desnogues
2012-09-24 12:49     ` Stefan Weil [this message]
2012-09-24 12:49       ` Stefan Weil
2012-09-26 12:38 ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=506056D0.5020502@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=aliguori@us.ibm.com \
    --cc=berrange@redhat.com \
    --cc=laurent.desnogues@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.