Skip to content

Commit ce1bd0c

Browse files
authored
ESP-DSP in update-components.sh
1 parent da8c71a commit ce1bd0c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tools/update-components.sh

Lines changed: 16 additions & 0 deletions
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
@@ -40,3 +42,17 @@ else
4042
git clean -ffdx
4143
fi
4244
if [ $? -ne 0 ]; then exit 1; fi
45+
46+
#
47+
# CLONE/UPDATE ESP-DSP
48+
#
49+
echo "Updating ESP-DSP..."
50+
if [ ! -d "$ESPDSP_REPO_DIR" ]; then
51+
git clone -b master --depth 1 "$ESPDSP_REPO_URL" "$ESPDSP_REPO_DIR"
52+
else
53+
cd $ESPDSP_REPO_DIR
54+
git pull
55+
# -ff is for cleaning untracked files as well as submodules
56+
git clean -ffdx
57+
fi
58+
if [ $? -ne 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)