* Update CMakeLists.txt Removes RainMaker and replaces "all" to get it working with WSL Ubuntu * Tool fix Moving SR files copy from tools/copy-libs.sh to /build.sh :: WSL fix Commenting out all cloned components that are now part of the Managed Components. * Update idf_component.yml Lib builder Managed Components for the top level (not in Arduino as IDF Component level). Includes only Tensor Flow and Deep Learning. All other managed component will be added to ESP32-Arduino repository. * Adds Camera Component * DL component only for S3 * get Camera component from GH * Camera component for any Version + Public * Test for SR Models building in CI * add SR component to the CI * fix idf_component.yml format * Reverting not necessary change about ESP-SR component
119 lines
4.4 KiB
Bash
Executable file
119 lines
4.4 KiB
Bash
Executable file
#/bin/bash
|
|
|
|
source ./tools/config.sh
|
|
|
|
CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
|
|
DL_REPO_URL="https://github.com/espressif/esp-dl.git"
|
|
SR_REPO_URL="https://github.com/espressif/esp-sr.git"
|
|
RMAKER_REPO_URL="https://github.com/espressif/esp-rainmaker.git"
|
|
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
|
|
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
|
|
TFLITE_REPO_URL="https://github.com/espressif/tflite-micro-esp-examples.git"
|
|
|
|
#
|
|
# CLONE/UPDATE ESP32-CAMERA
|
|
#
|
|
#echo "Updating ESP32 Camera..."
|
|
#if [ ! -d "$AR_COMPS/esp32-camera" ]; then
|
|
# git clone $CAMERA_REPO_URL "$AR_COMPS/esp32-camera"
|
|
#else
|
|
# git -C "$AR_COMPS/esp32-camera" fetch && \
|
|
# git -C "$AR_COMPS/esp32-camera" pull --ff-only
|
|
#fi
|
|
#if [ $? -ne 0 ]; then exit 1; fi
|
|
|
|
#
|
|
# CLONE/UPDATE ESP-DL
|
|
#
|
|
echo "Updating ESP-DL..."
|
|
if [ ! -d "$AR_COMPS/esp-dl" ]; then
|
|
git clone $DL_REPO_URL "$AR_COMPS/esp-dl"
|
|
#this is a temp measure to fix build issue
|
|
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 "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"
|
|
echo "endif()" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
|
|
rm -rf "$AR_COMPS/esp-dl/CMakeListsOld.txt"
|
|
else
|
|
git -C "$AR_COMPS/esp-dl" fetch && \
|
|
git -C "$AR_COMPS/esp-dl" pull --ff-only
|
|
fi
|
|
if [ $? -ne 0 ]; then exit 1; fi
|
|
#this is a temp measure to fix build issue
|
|
if [ -f "$AR_COMPS/esp-dl/idf_component.yml" ]; then
|
|
rm -rf "$AR_COMPS/esp-dl/idf_component.yml"
|
|
fi
|
|
|
|
#
|
|
# CLONE/UPDATE ESP-SR
|
|
#
|
|
#echo "Updating ESP-SR..."
|
|
#if [ ! -d "$AR_COMPS/esp-sr" ]; then
|
|
# git clone $SR_REPO_URL "$AR_COMPS/esp-sr"
|
|
#else
|
|
# git -C "$AR_COMPS/esp-sr" fetch && \
|
|
# git -C "$AR_COMPS/esp-sr" pull --ff-only
|
|
#fi
|
|
#if [ $? -ne 0 ]; then exit 1; fi
|
|
|
|
#
|
|
# CLONE/UPDATE ESP-RAINMAKER
|
|
#
|
|
#echo "Updating ESP-RainMaker..."
|
|
#if [ ! -d "$AR_COMPS/esp-rainmaker" ]; then
|
|
# git clone $RMAKER_REPO_URL "$AR_COMPS/esp-rainmaker" && \
|
|
# git -C "$AR_COMPS/esp-rainmaker" reset --hard d8e93454f495bd8a414829ec5e86842b373ff555 && \
|
|
# git -C "$AR_COMPS/esp-rainmaker" submodule update --init --recursive
|
|
# else
|
|
# git -C "$AR_COMPS/esp-rainmaker" fetch && \
|
|
# git -C "$AR_COMPS/esp-rainmaker" pull --ff-only && \
|
|
# git -C "$AR_COMPS/esp-rainmaker" submodule update --init --recursive
|
|
#fi
|
|
#if [ $? -ne 0 ]; then exit 1; fi
|
|
|
|
#this is a temp measure to fix build issue
|
|
#if [ -f "$AR_COMPS/esp-rainmaker/components/esp-insights/components/esp_insights/scripts/get_projbuild_gitconfig.py" ] && [ `cat "$AR_COMPS/esp-rainmaker/components/esp-insights/components/esp_insights/scripts/get_projbuild_gitconfig.py" | grep esp32c6 | wc -l` == "0" ]; then
|
|
# echo "Overwriting 'get_projbuild_gitconfig.py'"
|
|
# cp -f "tools/get_projbuild_gitconfig.py" "$AR_COMPS/esp-rainmaker/components/esp-insights/components/esp_insights/scripts/get_projbuild_gitconfig.py"
|
|
#fi
|
|
|
|
#
|
|
# CLONE/UPDATE ESP-LITTLEFS
|
|
#
|
|
#echo "Updating ESP-LITTLEFS..."
|
|
#if [ ! -d "$AR_COMPS/esp_littlefs" ]; then
|
|
# git clone $LITTLEFS_REPO_URL "$AR_COMPS/esp_littlefs" && \
|
|
# git -C "$AR_COMPS/esp_littlefs" submodule update --init --recursive
|
|
#else
|
|
# git -C "$AR_COMPS/esp_littlefs" fetch && \
|
|
# git -C "$AR_COMPS/esp_littlefs" pull --ff-only && \
|
|
# git -C "$AR_COMPS/esp_littlefs" submodule update --init --recursive
|
|
#fi
|
|
#if [ $? -ne 0 ]; then exit 1; fi
|
|
|
|
#
|
|
# CLONE/UPDATE TINYUSB
|
|
#
|
|
echo "Updating TinyUSB..."
|
|
if [ ! -d "$AR_COMPS/arduino_tinyusb/tinyusb" ]; then
|
|
git clone $TINYUSB_REPO_URL "$AR_COMPS/arduino_tinyusb/tinyusb"
|
|
else
|
|
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" fetch && \
|
|
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" pull --ff-only
|
|
fi
|
|
if [ $? -ne 0 ]; then exit 1; fi
|
|
|
|
#
|
|
# CLONE/UPDATE TFLITE MICRO
|
|
#
|
|
#echo "Updating TFLite Micro..."
|
|
#if [ ! -d "$AR_COMPS/tflite-micro" ]; then
|
|
# git clone $TFLITE_REPO_URL "$AR_COMPS/tflite-micro"
|
|
# git -C "$AR_COMPS/tflite-micro" submodule update --init --recursive
|
|
#else
|
|
# git -C "$AR_COMPS/tflite-micro" fetch && \
|
|
# git -C "$AR_COMPS/tflite-micro" pull --ff-only
|
|
# git -C "$AR_COMPS/tflite-micro" submodule update --init --recursive
|
|
#fi
|
|
#if [ $? -ne 0 ]; then exit 1; fi
|