]> git.proxmox.com Git - pve-qemu.git/commitdiff
buildsys: fixup submodule target
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 17 Oct 2023 12:10:07 +0000 (14:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Oct 2023 13:01:23 +0000 (15:01 +0200)
It's not enough to initialize the submodules anymore, as some got
replaced by wrap files, see QEMU commit 2019cabfee ("meson:
subprojects: replace submodules with wrap files").

Download the subprojects during initialization of the QEMU submodule,
so building (without the automagical --enable-download) can succeeed
afterwards.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 6c62c78b6a50f6ddfb5a1a462c31e14c2efa0f5d..e389a9c5cae31837e25d85bdde8f4b6a3bde932e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,10 @@ all: $(DEBS)
 
 .PHONY: submodule
 submodule:
-       test -f "$(SRCDIR)/configure" || git submodule update --init --recursive
+ifeq ($(shell test -f "$(SRCDIR)/configure" && echo 1 || echo 0), 0)
+       git submodule update --init --recursive
+       cd $(SRCDIR); meson subprojects download
+endif
 
 PC_BIOS_FW_PURGE_LIST_IN = \
        hppa-firmware.img \