Skip to content

Commit 84ca152

Browse files
authored
try recursive for esp-dsp
1 parent e8cf2c7 commit 84ca152

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tools/update-components.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ source ./tools/config.sh
55
CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
66
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
77
TINYUSB_REPO_DIR="$AR_COMPS/arduino_tinyusb/tinyusb"
8-
ESPDSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
9-
ESPDSP_REPO_DIR="$AR_COMPS/esp-dsp/espdsp"
8+
ESP_DSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
109

1110
#
1211
# CLONE/UPDATE ESP32-CAMERA
@@ -28,13 +27,15 @@ if [ $? -ne 0 ]; then exit 1; fi
2827
# CLONE/UPDATE ESP-DSP
2928
#
3029
echo "Updating ESP-DSP..."
31-
if [ ! -d "$ESPDSP_REPO_DIR" ]; then
32-
git clone -b master --depth 1 "$ESPDSP_REPO_URL" "$ESPDSP_REPO_DIR"
30+
if [ ! -d "$AR_COMPS/esp-dsp" ]; then
31+
git clone -b master --recursive --depth 1 --shallow-submodule $ESP_DSP_REPO_URL "$AR_COMPS/esp-dsp"
3332
else
34-
cd $ESPDSP_REPO_DIR
33+
cd "$AR_COMPS/esp-dsp"
3534
git pull
35+
git submodule update --depth 1
3636
# -ff is for cleaning untracked files as well as submodules
3737
git clean -ffdx
38+
cd -
3839
fi
3940
if [ $? -ne 0 ]; then exit 1; fi
4041

0 commit comments

Comments
 (0)