All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>,
	Jan Beulich <jbeulich@suse.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 1/2] make: Check tools/qemu-xen[-traditional] for qemu before downloading
Date: Tue, 8 Jul 2014 11:57:54 +0100	[thread overview]
Message-ID: <53BBCEB2.6050504@eu.citrix.com> (raw)
In-Reply-To: <21435.49304.344637.941064@mariner.uk.xensource.com>

On 07/08/2014 10:57 AM, Ian Jackson wrote:
> George Dunlap writes ("[PATCH 1/2] make: Check tools/qemu-xen[-traditional] for qemu before downloading"):
>> Currently xen, qemu-xen, and qemu-xen-traditional are kept in separate
>> repositories, but when we release them as a tarball, qemu-xen and
>> qemu-xen-traditional are in-lined into the tools/ directory.
> ...
>> +# Specify which qemu-dm to use. This may be `ioemu' to use the old
>> +# Mercurial in-tree version, or a local directory, or a git URL.
>> +# CONFIG_QEMU ?= `pwd`/$(XEN_ROOT)/../qemu-xen.git
>> +ifneq (,$(wildcard $(XEN_ROOT)/tools/qemu-xen-traditional))
>> +CONFIG_QEMU ?= $(XEN_ROOT)/tools/qemu-xen-traditional
>> +else
>> +CONFIG_QEMU ?= $(QEMU_REMOTE)
>> +endif
>
> Perhaps this could be better written as
>    CONFIG_QEMU ?= $(or $(wildcard $(XEN_ROOT)/tools/qemu-xen-traditional),\
>                        $(QEMU_REMOTE))

I'll give that a try.

> ?
>
>> +ifneq (,$(wildcard $(XEN_ROOT)/tools/qemu-xen))
>> +QEMU_UPSTREAM_URL ?= $(XEN_ROOT)/tools/qemu-xen
>> +endif
>
> I'm tempted to complain about the repetition here.  Perhaps
>    QEMU_UPSTREAM_INTREE ?= $(XEN_ROOT)/tools/qemu-xen
> and use it twice ?

Oh, you mean duplicating the path for the inlined repo.  Yeah, I could 
do something like that.

I was thinking about adding a CONFIG_QEMU_UPSTREAM option, so that _URL 
could actually mean URL, rather than sometimes meaning URL and sometimes 
meaning PATH.  But I thought that might be too much change to backport.

  -George

      reply	other threads:[~2014-07-08 10:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02 16:15 [PATCH 1/2] make: Check tools/qemu-xen[-traditional] for qemu before downloading George Dunlap
2014-07-02 16:15 ` [PATCH 2/2] make: Make "src-tarball" target actually make a source tarball George Dunlap
2014-07-03  8:29   ` Ian Campbell
2014-07-03 12:48     ` George Dunlap
2014-07-03 13:46       ` Ian Campbell
2014-07-08  9:50       ` Ian Jackson
2014-07-08 11:00         ` George Dunlap
2014-07-03 11:22   ` Anthony PERARD
2014-07-03 11:25     ` George Dunlap
2014-07-03  8:25 ` [PATCH 1/2] make: Check tools/qemu-xen[-traditional] for qemu before downloading Ian Campbell
2014-07-03  9:04   ` George Dunlap
2014-07-03  9:10     ` Ian Campbell
2014-07-08  9:57 ` Ian Jackson
2014-07-08 10:57   ` George Dunlap [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=53BBCEB2.6050504@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xen.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.