xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools/Makefile: unset MAKELEVEL before building QEMU
@ 2017-10-19 14:29 Anthony PERARD
  2017-10-19 15:19 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony PERARD @ 2017-10-19 14:29 UTC (permalink / raw)
  To: xen-devel; +Cc: Anthony PERARD, Wei Liu, Julien Grall, Ian Jackson

Since QEMU commits aef45d51d1204f3335fb99de6658e0c5612c2b67
"build: automatically handle GIT submodule checkout for dtc"
the QEMU makefiles rely on the variable MAKELEVEL to make a decision on
whether to update some git submodules or not. Since we call QEMU build
from within the Xen one, MAKELEVEL would already be greater than 0 and
the git submodules would not be updated and QEMU would fail to build.

Fix this by removing MAKELEVEL from the environment before trying to
build QEMU.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 tools/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/Makefile b/tools/Makefile
index 84d6e3b4e4..ab7a01ee1b 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -217,6 +217,7 @@ QEMU_XEN_ENABLE_DEBUG :=
 endif
 
 subdir-all-qemu-xen-dir: qemu-xen-dir-find
+	unset MAKELEVEL; \
 	if test -d $(QEMU_UPSTREAM_LOC) ; then \
 		source=$(QEMU_UPSTREAM_LOC); \
 	else \
-- 
Anthony PERARD


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools/Makefile: unset MAKELEVEL before building QEMU
  2017-10-19 14:29 [PATCH] tools/Makefile: unset MAKELEVEL before building QEMU Anthony PERARD
@ 2017-10-19 15:19 ` Ian Jackson
  2017-10-20  9:52   ` Julien Grall
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Jackson @ 2017-10-19 15:19 UTC (permalink / raw)
  To: Anthony PERARD; +Cc: xen-devel, Julien Grall, Wei Liu

Anthony PERARD writes ("[PATCH] tools/Makefile: unset MAKELEVEL before building QEMU"):
> Since QEMU commits aef45d51d1204f3335fb99de6658e0c5612c2b67
> "build: automatically handle GIT submodule checkout for dtc"
> the QEMU makefiles rely on the variable MAKELEVEL to make a decision on
> whether to update some git submodules or not. Since we call QEMU build
> from within the Xen one, MAKELEVEL would already be greater than 0 and
> the git submodules would not be updated and QEMU would fail to build.
> 
> Fix this by removing MAKELEVEL from the environment before trying to
> build QEMU.

Urgh.

I think this is a bug in the qemu makefiles.  But also, use of git
submodules is a bug in itself.  None of that is likely to be fixed.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools/Makefile: unset MAKELEVEL before building QEMU
  2017-10-19 15:19 ` Ian Jackson
@ 2017-10-20  9:52   ` Julien Grall
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Grall @ 2017-10-20  9:52 UTC (permalink / raw)
  To: Ian Jackson, Anthony PERARD; +Cc: xen-devel, Wei Liu

Hi,

On 19/10/17 16:19, Ian Jackson wrote:
> Anthony PERARD writes ("[PATCH] tools/Makefile: unset MAKELEVEL before building QEMU"):
>> Since QEMU commits aef45d51d1204f3335fb99de6658e0c5612c2b67
>> "build: automatically handle GIT submodule checkout for dtc"
>> the QEMU makefiles rely on the variable MAKELEVEL to make a decision on
>> whether to update some git submodules or not. Since we call QEMU build
>> from within the Xen one, MAKELEVEL would already be greater than 0 and
>> the git submodules would not be updated and QEMU would fail to build.
>>
>> Fix this by removing MAKELEVEL from the environment before trying to
>> build QEMU.
> 
> Urgh.
> 
> I think this is a bug in the qemu makefiles.  But also, use of git
> submodules is a bug in itself.  None of that is likely to be fixed.
> 
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Release-acked-by: Julien Grall <julien.grall@linaro.org>

Cheers,

> 
> Ian.
> 

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-20  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-19 14:29 [PATCH] tools/Makefile: unset MAKELEVEL before building QEMU Anthony PERARD
2017-10-19 15:19 ` Ian Jackson
2017-10-20  9:52   ` Julien Grall

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).