qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	qemu-devel@nongnu.org
Cc: Christian Borntraeger <borntraeger@de.ibm.com>,
	cohuck@redhat.com, philippe.mathieu.daude@gmail.com,
	Alexander Graf <agraf@suse.de>,
	mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3] build-sys: add --disable-vhost-user
Date: Tue, 8 Aug 2017 14:46:00 +0200	[thread overview]
Message-ID: <27f7b529-8c8e-2b2d-933f-e97b116a8fca@redhat.com> (raw)
In-Reply-To: <CAJ+F1CJ23X1eHqWQDkY=3vNv4A+CXCSavxeA3bcdnbnTSQ8-GA@mail.gmail.com>

On 08.08.2017 14:37, Marc-André Lureau wrote:
> Hi
> 
> On Sun, Aug 6, 2017 at 11:19 PM Paolo Bonzini <pbonzini@redhat.com
> <mailto:pbonzini@redhat.com>> wrote:
> 
>     On 05/08/2017 09:39, Thomas Huth wrote:
>     >> +CONFIG_VHOST_USER_SCSI=$(and $(CONFIG_VHOST_USER),$(CONFIG_LINUX))
>     > I have to say that I don't really like using $(and ...) in our
>     makefiles
>     > like this. You rely on the fact that the config variables are
>     either set
>     > to "y" or not set at all ... but if somebody ever tries to set
>     > CONFIG_VHOST_USER=n and CONFIG_LINUX=y for example (which sounds
>     valid,
>     > too), this will break. Isn't there a better way of checking that both
>     > variables are set to "y" ?
> 
>     $(call land, ...) does exactly this.
> 
>  
> The patch is now merged. Thomas, Paolo, do you want to send a follow-up
> patch? If not, I can.

There are also a bunch of other spots in our Makefiles that use $(and
...) and shoult be converted to $(call land) instead. I already put a
TODO item on my list, so I'll eventually send a patch for this. But if
you're faster, feel free to post it first (just put me on CC: so that I
am aware of it).

 Thomas

      reply	other threads:[~2017-08-08 12:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03  9:07 [Qemu-devel] [PATCH v3] build-sys: add --disable-vhost-user Marc-André Lureau
2017-08-03  9:42 ` Cornelia Huck
2017-08-05  7:39 ` Thomas Huth
2017-08-06 21:18   ` Paolo Bonzini
2017-08-08 12:37     ` Marc-André Lureau
2017-08-08 12:46       ` Thomas Huth [this message]

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=27f7b529-8c8e-2b2d-933f-e97b116a8fca@redhat.com \
    --to=thuth@redhat.com \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=marcandre.lureau@gmail.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philippe.mathieu.daude@gmail.com \
    --cc=qemu-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).