esp-dl as managed component (#148)

* remove esp-dl cloning

* Gets esp-dl managed component from GH master

* Update idf_component.yml
This commit is contained in:
Rodrigo Garcia 2023-11-10 20:09:24 -03:00 committed by GitHub
parent 04d62dd0dc
commit ab85b933d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 20 deletions

View file

@ -2,15 +2,15 @@ dependencies:
# Required IDF version # Required IDF version
idf: ">=5.1" idf: ">=5.1"
espressif/esp32-camera: espressif/esp32-camera:
version: "*" version: "master"
git: https://github.com/espressif/esp32-camera.git git: https://github.com/espressif/esp32-camera.git
require: public require: public
espressif/esp-tflite-micro: espressif/esp-tflite-micro:
version: ">=1.2.0" version: ">=1.2.0"
require: public require: public
espressif/esp-dl: espressif/esp-dl:
version: ">=2.0.0" version: "master"
path: ../components/esp-dl git: https://github.com/espressif/esp-dl.git
require: public require: public
rules: rules:
- if: "target in [esp32s3]" - if: "target in [esp32s3]"

View file

@ -25,25 +25,25 @@ TFLITE_REPO_URL="https://github.com/espressif/tflite-micro-esp-examples.git"
# #
# CLONE/UPDATE ESP-DL # CLONE/UPDATE ESP-DL
# #
echo "Updating ESP-DL..." #echo "Updating ESP-DL..."
if [ ! -d "$AR_COMPS/esp-dl" ]; then #if [ ! -d "$AR_COMPS/esp-dl" ]; then
git clone $DL_REPO_URL "$AR_COMPS/esp-dl" # git clone $DL_REPO_URL "$AR_COMPS/esp-dl"
#this is a temp measure to fix build issue #this is a temp measure to fix build issue
mv "$AR_COMPS/esp-dl/CMakeLists.txt" "$AR_COMPS/esp-dl/CMakeListsOld.txt" # mv "$AR_COMPS/esp-dl/CMakeLists.txt" "$AR_COMPS/esp-dl/CMakeListsOld.txt"
echo "idf_build_get_property(target IDF_TARGET)" > "$AR_COMPS/esp-dl/CMakeLists.txt" # echo "idf_build_get_property(target IDF_TARGET)" > "$AR_COMPS/esp-dl/CMakeLists.txt"
echo "if(NOT \${IDF_TARGET} STREQUAL \"esp32c6\" AND NOT \${IDF_TARGET} STREQUAL \"esp32h2\")" >> "$AR_COMPS/esp-dl/CMakeLists.txt" # echo "if(NOT \${IDF_TARGET} STREQUAL \"esp32c6\" AND NOT \${IDF_TARGET} STREQUAL \"esp32h2\")" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
cat "$AR_COMPS/esp-dl/CMakeListsOld.txt" >> "$AR_COMPS/esp-dl/CMakeLists.txt" # cat "$AR_COMPS/esp-dl/CMakeListsOld.txt" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
echo "endif()" >> "$AR_COMPS/esp-dl/CMakeLists.txt" # echo "endif()" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
rm -rf "$AR_COMPS/esp-dl/CMakeListsOld.txt" # rm -rf "$AR_COMPS/esp-dl/CMakeListsOld.txt"
else #else
git -C "$AR_COMPS/esp-dl" fetch && \ # git -C "$AR_COMPS/esp-dl" fetch && \
git -C "$AR_COMPS/esp-dl" pull --ff-only # git -C "$AR_COMPS/esp-dl" pull --ff-only
fi #fi
if [ $? -ne 0 ]; then exit 1; fi #if [ $? -ne 0 ]; then exit 1; fi
#this is a temp measure to fix build issue #this is a temp measure to fix build issue
if [ -f "$AR_COMPS/esp-dl/idf_component.yml" ]; then #if [ -f "$AR_COMPS/esp-dl/idf_component.yml" ]; then
rm -rf "$AR_COMPS/esp-dl/idf_component.yml" # rm -rf "$AR_COMPS/esp-dl/idf_component.yml"
fi #fi
# #
# CLONE/UPDATE ESP-SR # CLONE/UPDATE ESP-SR