Skip to content

Commit 612954f

Browse files
Added tflite-micro component (#128)
* Update build badge in README.md * Added tflite-micro component --------- Co-authored-by: Me No Dev <[email protected]>
1 parent 5282659 commit 612954f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-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)
6+
set(EXTRA_COMPONENT_DIRS ${RMAKER_PATH}/components/esp-insights/components ${RMAKER_PATH}/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

+15
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RMAKER_REPO_URL="https://github.com/espressif/esp-rainmaker.git"
88
INSIGHTS_REPO_URL="https://github.com/espressif/esp-insights.git"
99
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
1010
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
11+
TFLITE_REPO_URL="https://github.com/espressif/tflite-micro-esp-examples.git"
1112

1213
#
1314
# CLONE/UPDATE ARDUINO
@@ -162,3 +163,17 @@ else
162163
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" pull --ff-only
163164
fi
164165
if [ $? -ne 0 ]; then exit 1; fi
166+
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)