Skip to contentSkip to conversation

tools/Makefile: unset MAKELEVEL before building QEMU

PATCH In review Anthony PERARD 3 participants 3 messages Oct 19, 2017 – Oct 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tools/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/Makefile +1 -0
index 84d6e3b4e4..ab7a01ee1b 100644
@@ -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 \
Signature · 7 lines
Anthony PERARD


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw

Anthony PERARD writes ("[PATCH] tools/Makefile: unset MAKELEVEL before building QEMU"):

Quoted 9 lines

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.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw

Hi,

Quoted 11 lines · Ian Jackson

Anthony PERARD writes ("[PATCH] tools/Makefile: unset MAKELEVEL before building QEMU"):

Quoted 9 lines

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.

Quoted 6 lines

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.

Cheers,

Quoted 3 lines

Ian.

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel