Skip to content

Commit 0920ba7

Browse files
authored
add dsp component
1 parent fe4f96d commit 0920ba7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tools/update-components.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +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+
ESP_DSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
89

910
#
1011
# CLONE/UPDATE ESP32-CAMERA
@@ -22,6 +23,22 @@ else
2223
fi
2324
if [ $? -ne 0 ]; then exit 1; fi
2425

26+
#
27+
# CLONE/UPDATE ESP-DSP
28+
#
29+
echo "Updating ESP-DSP..."
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"
32+
else
33+
cd "$AR_COMPS/esp-dsp"
34+
git pull
35+
git submodule update --depth 1
36+
# -ff is for cleaning untracked files as well as submodules
37+
git clean -ffdx
38+
cd -
39+
fi
40+
if [ $? -ne 0 ]; then exit 1; fi
41+
2542
#
2643
# Arduino needs cam_hal.h from esp32-camera in include folder
2744
#

0 commit comments

Comments
 (0)