Skip to content

Commit 21f6025

Browse files
author
Jamie C. Driver
committed
jade setup_environment: tweak qemu clone following issue with upstream repo
Do not clone submodules recursively as an unused upstream module has disappeared, and the qemu build handles fetching submodules as needed. Also add flag to clone submodules without their entire history.
1 parent 9ebf888 commit 21f6025

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/setup_environment.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,10 @@ if [[ -n ${build_jade} ]]; then
331331
# Clone the upstream if the directory does not exist
332332
# Then build the emulator
333333
if [ ! -d "qemu" ]; then
334-
git clone --depth 1 --branch ${ESP_QEMU_BRANCH} --single-branch --recursive https://github.com/espressif/qemu.git ./qemu
334+
git clone --quiet --depth 1 --branch ${ESP_QEMU_BRANCH} --single-branch --shallow-submodules https://github.com/espressif/qemu.git ./qemu
335335
cd qemu
336336

337337
git checkout ${ESP_QEMU_COMMIT}
338-
git submodule update --recursive --init
339338
./configure \
340339
--target-list=xtensa-softmmu \
341340
--enable-gcrypt \
@@ -374,7 +373,7 @@ if [[ -n ${build_jade} ]]; then
374373
# Clone the upstream if the directory does not exist
375374
# Then build and install the tools
376375
if [ ! -d "esp-idf" ]; then
377-
git clone --depth=1 --branch ${ESP_IDF_BRANCH} --single-branch --recursive https://github.com/espressif/esp-idf.git ./esp-idf
376+
git clone --quiet --depth=1 --branch ${ESP_IDF_BRANCH} --single-branch --recursive --shallow-submodules https://github.com/espressif/esp-idf.git ./esp-idf
378377
cd esp-idf
379378

380379
git checkout ${ESP_IDF_COMMIT}

0 commit comments

Comments
 (0)