Skip to content

Commit 04d045f

Browse files
authored
add espcam again
without there are linking errors
1 parent 1a773c4 commit 04d045f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

tools/update-components.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source ./tools/config.sh
44

5-
#CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
5+
CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
66
#FACE_REPO_URL="https://github.com/espressif/esp-dl.git"
77
RMAKER_REPO_URL="https://github.com/espressif/esp-rainmaker.git"
88
DSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
@@ -34,6 +34,22 @@ if [ "$AR_BRANCH" ]; then
3434
fi
3535
if [ $? -ne 0 ]; then exit 1; fi
3636

37+
#
38+
# CLONE/UPDATE ESP32-CAMERA
39+
#
40+
41+
if [ ! -d "$AR_COMPS/esp32-camera" ]; then
42+
git clone $CAMERA_REPO_URL "$AR_COMPS/esp32-camera"
43+
else
44+
git -C "$AR_COMPS/esp32-camera" fetch && \
45+
git -C "$AR_COMPS/esp32-camera" pull --ff-only
46+
fi
47+
#this is a temp measure to fix build issue in recent IDF master
48+
if [ -f "$AR_COMPS/esp32-camera/idf_component.yml" ]; then
49+
rm -rf "$AR_COMPS/esp32-camera/idf_component.yml"
50+
fi
51+
if [ $? -ne 0 ]; then exit 1; fi
52+
3753
#
3854
# CLONE/UPDATE ESP-LITTLEFS
3955
#

0 commit comments

Comments
 (0)