]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
scripts/archive-source: speed up downloading subprojects
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 24 Sep 2025 12:04:00 +0000 (16:04 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 30 Sep 2025 15:33:25 +0000 (19:33 +0400)
Running meson on each subproject is quite slow.

According to Paolo, meson will run download tasks in parallel.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250924120426.2158655-4-marcandre.lureau@redhat.com>

scripts/archive-source.sh

index 476a996a70d527f9eef326db1af2b104a3ad9797..34ea86b6d3d716175914a7219828281cfa0aeb7a 100755 (executable)
@@ -77,9 +77,10 @@ function subproject_dir() {
 git archive --format tar "$(tree_ish)" > "$tar_file"
 test $? -ne 0 && error "failed to archive qemu"
 
+meson subprojects download $subprojects
+test $? -ne 0 && error "failed to download subprojects $subprojects"
+
 for sp in $subprojects; do
-    meson subprojects download $sp
-    test $? -ne 0 && error "failed to download subproject $sp"
     tar --append --file "$tar_file" --exclude=.git subprojects/"$(subproject_dir $sp)"
     test $? -ne 0 && error "failed to append subproject $sp to $tar_file"
 done