All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Anthony PERARD <anthony.perard@citrix.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PULL 01/11] build: automatically handle GIT submodule checkout for dtc
Date: Thu, 19 Oct 2017 15:15:41 +0100	[thread overview]
Message-ID: <20171019141541.GS8408@redhat.com> (raw)
In-Reply-To: <20171019140545.GA30324@perard.uk.xensource.com>

On Thu, Oct 19, 2017 at 03:05:45PM +0100, Anthony PERARD wrote:
> On Mon, Oct 16, 2017 at 03:16:34PM +0200, Gerd Hoffmann wrote:
> > From: "Daniel P. Berrange" <berrange@redhat.com>
> > 
> > Currently if DTC is required by configure and not available in the host
> > OS install, we exit with an error message telling the user to checkout a
> > git submodule or install the library.
> > 
> > This introduces automatic handling of the git submodule checkout process
> > and enables it for dtc. This only runs if building from GIT, so users of
> > release tarballs still need the system library install. The current state
> > of the git checkout is stashed in .git-submodule-status, and a helper
> > program is used to determine if this state matches the desired submodule
> > state. A dependency against 'Makefile' ensures that the submodule state
> > is refreshed at the start of the build process
> > 
> > Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
> > Message-id: 20170929101201.21039-2-berrange@redhat.com
> > 
> > [ kraxel: use /bin/sh not bash for scripts/git-submodule.sh ]
> > [ kraxel: fix Makefile dependencies ]
> > 
> > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> > 
> > [fixup] Makefile dep
> > ---
> 
> > diff --git a/Makefile b/Makefile
> > index 97b4508d7d..9866909e08 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -14,6 +14,27 @@ ifneq ($(wildcard config-host.mak),)
> >  all:
> >  include config-host.mak
> >  
> > +git-submodule-update:
> > +
> > +.PHONY: git-submodule-update
> > +
> > +ifeq (0,$(MAKELEVEL))
> 
> Hi,
> 
> this new patch, and especialy the use MAKELEVEL here does not work when
> we build Xen, since we build QEMU when building Xen.
> 
> When Xen is built, a clone of qemu.git is made, and then configure/make
> is called. At this point, MAKELEVEL would already be set so
> the makefile rule git-submodule-update would be empty.
> 
> Is it possible to do things differently in the QEMU makefiles? (Or do we
> have to simply unset MAKELEVEL in xen makefiles before building qemu.)

If it is practical from the Xen side, I think it would be preferrable
to unset MAKELEVEL when jumping in to build QEMU, that way any part of
QEMU makefiles can rely on MAKELEVEL being set normally.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

  reply	other threads:[~2017-10-19 14:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-16 13:16 [Qemu-devel] [PULL 00/11] Ui 20171016 patches Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 01/11] build: automatically handle GIT submodule checkout for dtc Gerd Hoffmann
2017-10-19 14:05   ` Anthony PERARD
2017-10-19 14:15     ` Daniel P. Berrange [this message]
2017-10-16 13:16 ` [Qemu-devel] [PULL 02/11] docker: don't rely on submodules existing in the main checkout Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 03/11] ui: add keycodemapdb repository as a GIT submodule Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 04/11] ui: convert common input code to keycodemapdb Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 05/11] ui: convert key events to QKeyCodes immediately Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 06/11] ui: don't export qemu_input_event_new_key Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 07/11] tools: add qemu-keymap Gerd Hoffmann
2017-10-19 22:09   ` Eric Blake
2017-10-19 22:12     ` Eric Blake
2017-10-20  6:52       ` Thomas Huth
2017-10-20  7:09         ` Fam Zheng
2017-10-16 13:16 ` [Qemu-devel] [PULL 08/11] Add pc-bios/keymaps/Makefile Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 09/11] pc-bios/keymaps: keymaps update Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 10/11] ui/gtk: Fix deprecation of vte_terminal_copy_clipboard Gerd Hoffmann
2017-10-16 13:16 ` [Qemu-devel] [PULL 11/11] gtk: fix wrong id between texture and framebuffer Gerd Hoffmann
2017-10-17  9:44 ` [Qemu-devel] [PULL 00/11] Ui 20171016 patches Peter Maydell
2017-10-19  6:50 ` Thomas Huth
2017-10-19  7:14   ` Gerd Hoffmann
2017-10-19  9:13     ` Daniel P. Berrange
2017-10-19  9:11   ` Daniel P. Berrange
  -- strict thread matches above, loose matches on Subject: below --
2017-10-13  8:14 [Qemu-devel] [PULL 00/11] Ui 20171013 patches Gerd Hoffmann
2017-10-13  8:14 ` [Qemu-devel] [PULL 01/11] build: automatically handle GIT submodule checkout for dtc Gerd Hoffmann

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=20171019141541.GS8408@redhat.com \
    --to=berrange@redhat.com \
    --cc=anthony.perard@citrix.com \
    --cc=kraxel@redhat.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 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.