Skip to content

Commit ab85b93

Browse files
authored
esp-dl as managed component (espressif#148)
* remove esp-dl cloning * Gets esp-dl managed component from GH master * Update idf_component.yml
1 parent 04d62dd commit ab85b93

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

Diff for: main/idf_component.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ dependencies:
22
# Required IDF version
33
idf: ">=5.1"
44
espressif/esp32-camera:
5-
version: "*"
5+
version: "master"
66
git: https://github.com/espressif/esp32-camera.git
77
require: public
88
espressif/esp-tflite-micro:
99
version: ">=1.2.0"
1010
require: public
1111
espressif/esp-dl:
12-
version: ">=2.0.0"
13-
path: ../components/esp-dl
12+
version: "master"
13+
git: https://github.com/espressif/esp-dl.git
1414
require: public
1515
rules:
1616
- if: "target in [esp32s3]"

Diff for: tools/update-components.sh

+17-17
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@ TFLITE_REPO_URL="https://github.com/espressif/tflite-micro-esp-examples.git"
2525
#
2626
# CLONE/UPDATE ESP-DL
2727
#
28-
echo "Updating ESP-DL..."
29-
if [ ! -d "$AR_COMPS/esp-dl" ]; then
30-
git clone $DL_REPO_URL "$AR_COMPS/esp-dl"
28+
#echo "Updating ESP-DL..."
29+
#if [ ! -d "$AR_COMPS/esp-dl" ]; then
30+
# git clone $DL_REPO_URL "$AR_COMPS/esp-dl"
3131
#this is a temp measure to fix build issue
32-
mv "$AR_COMPS/esp-dl/CMakeLists.txt" "$AR_COMPS/esp-dl/CMakeListsOld.txt"
33-
echo "idf_build_get_property(target IDF_TARGET)" > "$AR_COMPS/esp-dl/CMakeLists.txt"
34-
echo "if(NOT \${IDF_TARGET} STREQUAL \"esp32c6\" AND NOT \${IDF_TARGET} STREQUAL \"esp32h2\")" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
35-
cat "$AR_COMPS/esp-dl/CMakeListsOld.txt" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
36-
echo "endif()" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
37-
rm -rf "$AR_COMPS/esp-dl/CMakeListsOld.txt"
38-
else
39-
git -C "$AR_COMPS/esp-dl" fetch && \
40-
git -C "$AR_COMPS/esp-dl" pull --ff-only
41-
fi
42-
if [ $? -ne 0 ]; then exit 1; fi
32+
# mv "$AR_COMPS/esp-dl/CMakeLists.txt" "$AR_COMPS/esp-dl/CMakeListsOld.txt"
33+
# echo "idf_build_get_property(target IDF_TARGET)" > "$AR_COMPS/esp-dl/CMakeLists.txt"
34+
# echo "if(NOT \${IDF_TARGET} STREQUAL \"esp32c6\" AND NOT \${IDF_TARGET} STREQUAL \"esp32h2\")" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
35+
# cat "$AR_COMPS/esp-dl/CMakeListsOld.txt" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
36+
# echo "endif()" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
37+
# rm -rf "$AR_COMPS/esp-dl/CMakeListsOld.txt"
38+
#else
39+
# git -C "$AR_COMPS/esp-dl" fetch && \
40+
# git -C "$AR_COMPS/esp-dl" pull --ff-only
41+
#fi
42+
#if [ $? -ne 0 ]; then exit 1; fi
4343
#this is a temp measure to fix build issue
44-
if [ -f "$AR_COMPS/esp-dl/idf_component.yml" ]; then
45-
rm -rf "$AR_COMPS/esp-dl/idf_component.yml"
46-
fi
44+
#if [ -f "$AR_COMPS/esp-dl/idf_component.yml" ]; then
45+
# rm -rf "$AR_COMPS/esp-dl/idf_component.yml"
46+
#fi
4747

4848
#
4949
# CLONE/UPDATE ESP-SR

0 commit comments

Comments
 (0)