Skip to content

Commit 01a9e39

Browse files
committed
Fix RainMaker builds and new sr models path
1 parent 725f9c3 commit 01a9e39

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# CMakeLists in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.5)
44

5-
set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/components/esp-rainmaker/components ${CMAKE_SOURCE_DIR}/components/esp-insights/components)
5+
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)
67

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

tools/copy-libs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ for item in "${@:2:${#@}-5}"; do
8484
item=`get_actual_path $item`
8585
INCLUDES+="$item "
8686
elif [ "${item:0:2}" = ".." ]; then
87-
if [[ "${item:0:14}" = "../components/" && "${item:0:22}" != "../components/arduino/" ]] || [[ "${item:0:11}" = "../esp-idf/" ]]; then
87+
if [[ "${item:0:14}" = "../components/" && "${item:0:22}" != "../components/arduino/" ]] || [[ "${item:0:11}" = "../esp-idf/" ]] || [[ "${item:0:22}" = "../managed_components/" ]]; then
8888
item="$PWD${item:2}"
8989
item=`get_actual_path $item`
9090
INCLUDES+="$item "
@@ -474,9 +474,9 @@ echo -n "$LD_SCRIPTS" > "$FLAGS_DIR/ld_scripts"
474474
echo -n "$AR_LIBS" > "$FLAGS_DIR/ld_libs"
475475

476476
# sr model.bin
477-
if [ -f "build/model.bin" ]; then
477+
if [ -f "build/srmodels/srmodels.bin" ]; then
478478
mkdir -p "$AR_SDK/esp_sr"
479-
cp -f "build/model.bin" "$AR_SDK/esp_sr/"
479+
cp -f "build/srmodels/srmodels.bin" "$AR_SDK/esp_sr/"
480480
cp -f "partitions.csv" "$AR_SDK/esp_sr/"
481481
fi
482482

0 commit comments

Comments
 (0)