Skip to content

Commit 70d166f

Browse files
committed
Added tflite-micro component
1 parent ace36a9 commit 70d166f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
cmake_minimum_required(VERSION 3.5)
44

55
set(RMAKER_PATH ${CMAKE_SOURCE_DIR}/components/esp-rainmaker)
6-
set(EXTRA_COMPONENT_DIRS ${RMAKER_PATH}/components/esp-insights/components ${RMAKER_PATH}/components ${CMAKE_SOURCE_DIR}/components/esp-insights/components)
6+
set(EXTRA_COMPONENT_DIRS ${RMAKER_PATH}/components/esp-insights/components ${RMAKER_PATH}/components ${CMAKE_SOURCE_DIR}/components/esp-insights/components ${CMAKE_SOURCE_DIR}/components/tflite-micro/components)
77

88
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
99
project(arduino-lib-builder)

tools/update-components.sh

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ INSIGHTS_REPO_URL="https://github.com/espressif/esp-insights.git"
1010
DSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
1111
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
1212
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
13+
TFLITE_REPO_URL="https://github.com/espressif/tflite-micro-esp-examples.git"
1314

1415
#
1516
# CLONE/UPDATE ARDUINO
@@ -163,3 +164,16 @@ else
163164
fi
164165
if [ $? -ne 0 ]; then exit 1; fi
165166

167+
#
168+
# CLONE/UPDATE TFLITE MICRO
169+
#
170+
echo "Updating TFLite Micro..."
171+
if [ ! -d "$AR_COMPS/tflite-micro" ]; then
172+
git clone $TFLITE_REPO_URL "$AR_COMPS/tflite-micro"
173+
git -C "$AR_COMPS/tflite-micro" submodule update --init --recursive
174+
else
175+
git -C "$AR_COMPS/tflite-micro" fetch && \
176+
git -C "$AR_COMPS/tflite-micro" pull --ff-only
177+
git -C "$AR_COMPS/tflite-micro" submodule update --init --recursive
178+
fi
179+
if [ $? -ne 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)