Skip to content

Commit f0911fe

Browse files
authored
Update update-components.sh for esp-dsp
1 parent b367a35 commit f0911fe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tools/update-components.sh

+16
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ 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"
810

911
#
1012
# CLONE/UPDATE ESP32-CAMERA
@@ -22,6 +24,20 @@ else
2224
fi
2325
if [ $? -ne 0 ]; then exit 1; fi
2426

27+
#
28+
# CLONE/UPDATE ESP-DSP
29+
#
30+
echo "Updating ESP-DSP..."
31+
if [ ! -d "$ESPDSP_REPO_DIR" ]; then
32+
git clone -b master --depth 1 "$ESPDSP_REPO_URL" "$ESPDSP_REPO_DIR"
33+
else
34+
cd $ESPDSP_REPO_DIR
35+
git pull
36+
# -ff is for cleaning untracked files as well as submodules
37+
git clean -ffdx
38+
fi
39+
if [ $? -ne 0 ]; then exit 1; fi
40+
2541
#
2642
# Arduino needs cam_hal.h from esp32-camera in include folder
2743
#

0 commit comments

Comments
 (0)