Skip to content

Commit

Permalink
jade setup_environment: tweak qemu clone following issue with upstrea…
Browse files Browse the repository at this point in the history
…m 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.
  • Loading branch information
JamieDriver committed Dec 6, 2024
1 parent 9ebf888 commit 21f6025
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,10 @@ if [[ -n ${build_jade} ]]; then
# Clone the upstream if the directory does not exist
# Then build the emulator
if [ ! -d "qemu" ]; then
git clone --depth 1 --branch ${ESP_QEMU_BRANCH} --single-branch --recursive https://github.com/espressif/qemu.git ./qemu
git clone --quiet --depth 1 --branch ${ESP_QEMU_BRANCH} --single-branch --shallow-submodules https://github.com/espressif/qemu.git ./qemu
cd qemu

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

git checkout ${ESP_IDF_COMMIT}
Expand Down

0 comments on commit 21f6025

Please sign in to comment.