From 65b3a9737987e2a1ea2fb12f0ca178f4e9adfa1d Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Wed, 3 Jul 2024 22:14:17 -0700 Subject: [PATCH] Speed up qemu clone with multiple submodules in parallel --- bin/wally-tool-chain-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/wally-tool-chain-install.sh b/bin/wally-tool-chain-install.sh index 61686a22e..959ade85c 100755 --- a/bin/wally-tool-chain-install.sh +++ b/bin/wally-tool-chain-install.sh @@ -223,9 +223,9 @@ echo -e "Installing/Updating QEMU" echo -e "*************************************************************************" echo -e "*************************************************************************\n${ENDC}" cd "$RISCV" -if [[ ((! -e qemu) && ($(git clone --recurse-submodules https://github.com/qemu/qemu) || true)) || ($(cd qemu; git fetch; git rev-parse HEAD) != $(cd qemu; git rev-parse origin/master)) || (! -e $RISCV/include/qemu-plugin.h) ]]; then +if [[ ((! -e qemu) && ($(git clone --recurse-submodules -j ${NUM_THREADS} https://github.com/qemu/qemu) || true)) || ($(cd qemu; git fetch; git rev-parse HEAD) != $(cd qemu; git rev-parse origin/master)) || (! -e $RISCV/include/qemu-plugin.h) ]]; then cd qemu - git reset --hard && git clean -f && git checkout master && git pull --recurse-submodules + git reset --hard && git clean -f && git checkout master && git pull --recurse-submodules -j ${NUM_THREADS} ./configure --target-list=riscv64-softmmu --prefix="$RISCV" make -j ${NUM_THREADS} make install