Skip to content

Commit c36b309

Browse files
authored
add face
since it is supported now in latest core 2.0.x stage
1 parent bfb9a5f commit c36b309

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

tools/update-components.sh

+17-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source ./tools/config.sh
44

55
CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
6-
#FACE_REPO_URL="https://github.com/espressif/esp-dl.git"
6+
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"
99
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
@@ -50,6 +50,22 @@ if [ -f "$AR_COMPS/esp32-camera/idf_component.yml" ]; then
5050
fi
5151
if [ $? -ne 0 ]; then exit 1; fi
5252

53+
#
54+
# CLONE/UPDATE ESP-FACE
55+
#
56+
57+
if [ ! -d "$AR_COMPS/esp-face" ]; then
58+
git clone $FACE_REPO_URL "$AR_COMPS/esp-face"
59+
# cml=`cat "$AR_COMPS/esp-face/CMakeLists.txt"`
60+
# echo "if(IDF_TARGET STREQUAL \"esp32\" OR IDF_TARGET STREQUAL \"esp32s2\" OR IDF_TARGET STREQUAL \"esp32s3\")" > "$AR_COMPS/esp-face/CMakeLists.txt"
61+
# echo "$cml" >> "$AR_COMPS/esp-face/CMakeLists.txt"
62+
# echo "endif()" >> "$AR_COMPS/esp-face/CMakeLists.txt"
63+
else
64+
git -C "$AR_COMPS/esp-face" fetch && \
65+
git -C "$AR_COMPS/esp-face" pull --ff-only
66+
fi
67+
if [ $? -ne 0 ]; then exit 1; fi
68+
5369
#
5470
# CLONE/UPDATE ESP-LITTLEFS
5571
#

0 commit comments

Comments
 (0)