Skip to content

Commit e86b30a

Browse files
authored
Add option to build.sh to enable debug in ESP-IDF (#151)
* Add option to build.sh to enable debug in ESP-IDF * Make PR title use the info from versions.txt * Copy dependencies.lock for each target
1 parent 9234dd9 commit e86b30a

12 files changed

+74
-144
lines changed

build.sh

+49-25
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fi
1212

1313
TARGET="all"
1414
BUILD_TYPE="all"
15+
BUILD_DEBUG="default"
1516
SKIP_ENV=0
1617
COPY_OUT=0
1718
ARCHIVE_OUT=0
@@ -20,21 +21,22 @@ if [ -z $DEPLOY_OUT ]; then
2021
fi
2122

2223
function print_help() {
23-
echo "Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf_libs|copy_bootloader|mem_variant>] [config ...]"
24+
echo "Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-D <debug_level>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf_libs|copy_bootloader|mem_variant>] [config ...]"
2425
echo " -s Skip installing/updating of ESP-IDF and all components"
2526
echo " -A Set which branch of arduino-esp32 to be used for compilation"
2627
echo " -I Set which branch of ESP-IDF to be used for compilation"
2728
echo " -i Set which commit of ESP-IDF to be used for compilation"
2829
echo " -e Archive the build to dist"
2930
echo " -d Deploy the build to github arduino-esp32"
31+
echo " -D Debug level to be set to ESP-IDF. One of default,none,error,warning,info,debug or verbose"
3032
echo " -c Set the arduino-esp32 folder to copy the result to. ex. '$HOME/Arduino/hardware/espressif/esp32'"
3133
echo " -t Set the build target(chip). ex. 'esp32s3'"
3234
echo " -b Set the build type. ex. 'build' to build the project and prepare for uploading to a board"
3335
echo " ... Specify additional configs to be applied. ex. 'qio 80m' to compile for QIO Flash@80MHz. Requires -b"
3436
exit 1
3537
}
3638

37-
while getopts ":A:I:i:c:t:b:sde" opt; do
39+
while getopts ":A:I:i:c:t:b:D:sde" opt; do
3840
case ${opt} in
3941
s )
4042
SKIP_ENV=1
@@ -58,6 +60,9 @@ while getopts ":A:I:i:c:t:b:sde" opt; do
5860
i )
5961
export IDF_COMMIT="$OPTARG"
6062
;;
63+
D )
64+
BUILD_DEBUG="$OPTARG"
65+
;;
6166
t )
6267
TARGET=$OPTARG
6368
;;
@@ -107,16 +112,16 @@ else
107112
source ./tools/config.sh
108113
fi
109114

110-
if [ -f "./managed_components/espressif__esp-sr/.component_hash" ]; then
111-
rm -rf ./managed_components/espressif__esp-sr/.component_hash
115+
if [ -f "$AR_MANAGED_COMPS/espressif__esp-sr/.component_hash" ]; then
116+
rm -rf $AR_MANAGED_COMPS/espressif__esp-sr/.component_hash
112117
fi
113118

114119
if [ "$BUILD_TYPE" != "all" ]; then
115120
if [ "$TARGET" = "all" ]; then
116121
echo "ERROR: You need to specify target for non-default builds"
117122
print_help
118123
fi
119-
configs="configs/defconfig.common;configs/defconfig.$TARGET"
124+
configs="configs/defconfig.common;configs/defconfig.$TARGET;configs/defconfig.debug_$BUILD_DEBUG"
120125

121126
# Target Features Configs
122127
for target_json in `jq -c '.targets[]' configs/builds.json`; do
@@ -141,19 +146,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
141146
fi
142147

143148
rm -rf build sdkconfig out
144-
145-
# Add components version info
146-
mkdir -p "$AR_TOOLS/esp32-arduino-libs" && rm -rf version.txt && rm -rf "$AR_TOOLS/esp32-arduino-libs/versions.txt"
147-
component_version="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD)
148-
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
149-
for component in `ls "$AR_COMPS"`; do
150-
if [ -d "$AR_COMPS/$component/.git" ] || [ -d "$AR_COMPS/$component/.github" ]; then
151-
component_version="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD || git -C "$AR_COMPS/$component" tag --points-at HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)
152-
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
153-
fi
154-
done
155-
component_version="tinyusb: "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" symbolic-ref --short HEAD || git -C "$AR_COMPS/arduino_tinyusb/tinyusb" tag --points-at HEAD)" "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" rev-parse --short HEAD)
156-
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
149+
mkdir -p "$AR_TOOLS/esp32-arduino-libs"
157150

158151
#targets_count=`jq -c '.targets[] | length' configs/builds.json`
159152
for target_json in `jq -c '.targets[]' configs/builds.json`; do
@@ -175,7 +168,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
175168
echo "* Target: $target"
176169

177170
# Build Main Configs List
178-
main_configs="configs/defconfig.common;configs/defconfig.$target"
171+
main_configs="configs/defconfig.common;configs/defconfig.$target;configs/defconfig.debug_$BUILD_DEBUG"
179172
for defconf in `echo "$target_json" | jq -c '.features[]' | tr -d '"'`; do
180173
main_configs="$main_configs;configs/defconfig.$defconf"
181174
done
@@ -186,8 +179,8 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
186179
idf_libs_configs="$idf_libs_configs;configs/defconfig.$defconf"
187180
done
188181

189-
if [ -f "./managed_components/espressif__esp-sr/.component_hash" ]; then
190-
rm -rf ./managed_components/espressif__esp-sr/.component_hash
182+
if [ -f "$AR_MANAGED_COMPS/espressif__esp-sr/.component_hash" ]; then
183+
rm -rf $AR_MANAGED_COMPS/espressif__esp-sr/.component_hash
191184
fi
192185

193186
echo "* Build IDF-Libs: $idf_libs_configs"
@@ -215,8 +208,8 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
215208
bootloader_configs="$bootloader_configs;configs/defconfig.$defconf";
216209
done
217210

218-
if [ -f "./managed_components/espressif__esp-sr/.component_hash" ]; then
219-
rm -rf ./managed_components/espressif__esp-sr/.component_hash
211+
if [ -f "$AR_MANAGED_COMPS/espressif__esp-sr/.component_hash" ]; then
212+
rm -rf $AR_MANAGED_COMPS/espressif__esp-sr/.component_hash
220213
fi
221214

222215
echo "* Build BootLoader: $bootloader_configs"
@@ -232,8 +225,8 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
232225
mem_configs="$mem_configs;configs/defconfig.$defconf";
233226
done
234227

235-
if [ -f "./managed_components/espressif__esp-sr/.component_hash" ]; then
236-
rm -rf ./managed_components/espressif__esp-sr/.component_hash
228+
if [ -f "$AR_MANAGED_COMPS/espressif__esp-sr/.component_hash" ]; then
229+
rm -rf $AR_MANAGED_COMPS/espressif__esp-sr/.component_hash
237230
fi
238231

239232
echo "* Build Memory Variant: $mem_configs"
@@ -243,6 +236,37 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
243236
done
244237
done
245238

239+
#
240+
# Add components version info
241+
#
242+
rm -rf "$AR_TOOLS/esp32-arduino-libs/versions.txt"
243+
# The lib-builder version
244+
component_version="lib-builder: "$(git -C "$AR_ROOT" symbolic-ref --short HEAD || git -C "$AR_ROOT" tag --points-at HEAD)" "$(git -C "$AR_ROOT" rev-parse --short HEAD)
245+
echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
246+
# ESP-IDF version
247+
component_version="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD)
248+
echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
249+
# components version
250+
for component in `ls "$AR_COMPS"`; do
251+
if [ -d "$AR_COMPS/$component/.git" ]; then
252+
component_version="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD || git -C "$AR_COMPS/$component" tag --points-at HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)
253+
echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
254+
fi
255+
done
256+
# TinyUSB version
257+
component_version="tinyusb: "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" symbolic-ref --short HEAD || git -C "$AR_COMPS/arduino_tinyusb/tinyusb" tag --points-at HEAD)" "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" rev-parse --short HEAD)
258+
echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
259+
# managed components version
260+
for component in `ls "$AR_MANAGED_COMPS"`; do
261+
if [ -d "$AR_MANAGED_COMPS/$component/.git" ]; then
262+
component_version="$component: "$(git -C "$AR_MANAGED_COMPS/$component" symbolic-ref --short HEAD || git -C "$AR_MANAGED_COMPS/$component" tag --points-at HEAD)" "$(git -C "$AR_MANAGED_COMPS/$component" rev-parse --short HEAD)
263+
echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
264+
elif [ -f "$AR_MANAGED_COMPS/$component/idf_component.yml" ]; then
265+
component_version="$component: "$(cat "$AR_MANAGED_COMPS/$component/idf_component.yml" | grep "^version: " | cut -d ' ' -f 2)
266+
echo $component_version >> "$AR_TOOLS/esp32-arduino-libs/versions.txt"
267+
fi
268+
done
269+
246270
# update package_esp32_index.template.json
247271
if [ "$BUILD_TYPE" = "all" ]; then
248272
python3 ./tools/gen_tools_json.py -i "$IDF_PATH" -j "$AR_COMPS/arduino/package/package_esp32_index.template.json" -o "$AR_OUT/"

configs/defconfig.common

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
CONFIG_AUTOSTART_ARDUINO=y
22
# CONFIG_WS2812_LED_ENABLE is not set
33
CONFIG_ARDUHAL_ESP_LOG=y
4-
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=y
54
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
65
CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP=y
76
CONFIG_BT_ENABLED=y
@@ -46,7 +45,6 @@ CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
4645
CONFIG_HEAP_POISONING_LIGHT=y
4746
CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024
4847
CONFIG_HTTPD_WS_SUPPORT=y
49-
CONFIG_LOG_DEFAULT_LEVEL_ERROR=y
5048
# CONFIG_LOG_COLORS is not set
5149
CONFIG_LWIP_ETHARP_TRUST_IP_MAC=y
5250
# CONFIG_LWIP_DHCP_DOES_ARP_CHECK is not set

configs/defconfig.debug_debug

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
2+
CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y

configs/defconfig.debug_default

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=y
2+
CONFIG_LOG_DEFAULT_LEVEL_ERROR=y

configs/defconfig.debug_error

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BOOTLOADER_LOG_LEVEL_ERROR=y
2+
CONFIG_LOG_DEFAULT_LEVEL_ERROR=y

configs/defconfig.debug_info

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
2+
CONFIG_LOG_DEFAULT_LEVEL_INFO=y

configs/defconfig.debug_none

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=y
2+
CONFIG_LOG_DEFAULT_LEVEL_NONE=y

configs/defconfig.debug_verbose

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
2+
CONFIG_LOG_DEFAULT_LEVEL_VERBOSE=y

configs/defconfig.debug_warning

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BOOTLOADER_LOG_LEVEL_WARN=y
2+
CONFIG_LOG_DEFAULT_LEVEL_WARN=y

tools/config.sh

+2-9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ fi
4242

4343
AR_ROOT="$PWD"
4444
AR_COMPS="$AR_ROOT/components"
45+
AR_MANAGED_COMPS="$AR_ROOT/managed_components"
4546
AR_OUT="$AR_ROOT/out"
4647
AR_TOOLS="$AR_OUT/tools"
4748
AR_PLATFORM_TXT="$AR_OUT/platform.txt"
@@ -152,15 +153,7 @@ function git_create_pr(){ # git_create_pr <branch> <title>
152153
local pr_title="$2"
153154
local pr_target="$3"
154155
local pr_body=""
155-
pr_body+="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD)"\r\n"
156-
for component in `ls "$AR_COMPS"`; do
157-
if [ ! $component == "arduino" ]; then
158-
if [ -d "$AR_COMPS/$component/.git" ] || [ -d "$AR_COMPS/$component/.github" ]; then
159-
pr_body+="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD || git -C "$AR_COMPS/$component" tag --points-at HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)"\r\n"
160-
fi
161-
fi
162-
done
163-
pr_body+="tinyusb: "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" symbolic-ref --short HEAD || git -C "$AR_COMPS/arduino_tinyusb/tinyusb" tag --points-at HEAD)" "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" rev-parse --short HEAD)"\r\n"
156+
pr_body+=$(cat "$AR_TOOLS/esp32-arduino-libs/versions.txt")"\r\n"
164157
local pr_data="{\"title\": \"$pr_title\", \"body\": \"$pr_body\", \"head\": \"$AR_USER:$pr_branch\", \"base\": \"$pr_target\"}"
165158
git_create_pr_res=`echo "$pr_data" | curl -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" --data @- "https://api.github.com/repos/$AR_REPO/pulls"`
166159
local done_pr=`echo "$git_create_pr_res" | jq -r '.title'`

tools/copy-libs.sh

+3
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ fi
490490
# sdkconfig
491491
cp -f "sdkconfig" "$AR_SDK/sdkconfig"
492492

493+
# dependencies.lock
494+
cp -f "dependencies.lock" "$AR_SDK/dependencies.lock"
495+
493496
# gen_esp32part.py
494497
# cp "$IDF_PATH/components/partition_table/gen_esp32part.py" "$AR_GEN_PART_PY"
495498

tools/update-components.sh

+6-108
Original file line numberDiff line numberDiff line change
@@ -2,118 +2,16 @@
22

33
source ./tools/config.sh
44

5-
CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
6-
DL_REPO_URL="https://github.com/espressif/esp-dl.git"
7-
SR_REPO_URL="https://github.com/espressif/esp-sr.git"
8-
RMAKER_REPO_URL="https://github.com/espressif/esp-rainmaker.git"
9-
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
10-
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
11-
TFLITE_REPO_URL="https://github.com/espressif/tflite-micro-esp-examples.git"
12-
13-
#
14-
# CLONE/UPDATE ESP32-CAMERA
15-
#
16-
#echo "Updating ESP32 Camera..."
17-
#if [ ! -d "$AR_COMPS/esp32-camera" ]; then
18-
# git clone $CAMERA_REPO_URL "$AR_COMPS/esp32-camera"
19-
#else
20-
# git -C "$AR_COMPS/esp32-camera" fetch && \
21-
# git -C "$AR_COMPS/esp32-camera" pull --ff-only
22-
#fi
23-
#if [ $? -ne 0 ]; then exit 1; fi
24-
25-
#
26-
# CLONE/UPDATE ESP-DL
27-
#
28-
#echo "Updating ESP-DL..."
29-
#if [ ! -d "$AR_COMPS/esp-dl" ]; then
30-
# git clone $DL_REPO_URL "$AR_COMPS/esp-dl"
31-
#this is a temp measure to fix build issue
32-
# mv "$AR_COMPS/esp-dl/CMakeLists.txt" "$AR_COMPS/esp-dl/CMakeListsOld.txt"
33-
# echo "idf_build_get_property(target IDF_TARGET)" > "$AR_COMPS/esp-dl/CMakeLists.txt"
34-
# echo "if(NOT \${IDF_TARGET} STREQUAL \"esp32c6\" AND NOT \${IDF_TARGET} STREQUAL \"esp32h2\")" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
35-
# cat "$AR_COMPS/esp-dl/CMakeListsOld.txt" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
36-
# echo "endif()" >> "$AR_COMPS/esp-dl/CMakeLists.txt"
37-
# rm -rf "$AR_COMPS/esp-dl/CMakeListsOld.txt"
38-
#else
39-
# git -C "$AR_COMPS/esp-dl" fetch && \
40-
# git -C "$AR_COMPS/esp-dl" pull --ff-only
41-
#fi
42-
#if [ $? -ne 0 ]; then exit 1; fi
43-
#this is a temp measure to fix build issue
44-
#if [ -f "$AR_COMPS/esp-dl/idf_component.yml" ]; then
45-
# rm -rf "$AR_COMPS/esp-dl/idf_component.yml"
46-
#fi
47-
48-
#
49-
# CLONE/UPDATE ESP-SR
50-
#
51-
#echo "Updating ESP-SR..."
52-
#if [ ! -d "$AR_COMPS/esp-sr" ]; then
53-
# git clone $SR_REPO_URL "$AR_COMPS/esp-sr"
54-
#else
55-
# git -C "$AR_COMPS/esp-sr" fetch && \
56-
# git -C "$AR_COMPS/esp-sr" pull --ff-only
57-
#fi
58-
#if [ $? -ne 0 ]; then exit 1; fi
59-
60-
#
61-
# CLONE/UPDATE ESP-RAINMAKER
62-
#
63-
#echo "Updating ESP-RainMaker..."
64-
#if [ ! -d "$AR_COMPS/esp-rainmaker" ]; then
65-
# git clone $RMAKER_REPO_URL "$AR_COMPS/esp-rainmaker" && \
66-
# git -C "$AR_COMPS/esp-rainmaker" reset --hard d8e93454f495bd8a414829ec5e86842b373ff555 && \
67-
# git -C "$AR_COMPS/esp-rainmaker" submodule update --init --recursive
68-
# else
69-
# git -C "$AR_COMPS/esp-rainmaker" fetch && \
70-
# git -C "$AR_COMPS/esp-rainmaker" pull --ff-only && \
71-
# git -C "$AR_COMPS/esp-rainmaker" submodule update --init --recursive
72-
#fi
73-
#if [ $? -ne 0 ]; then exit 1; fi
74-
75-
#this is a temp measure to fix build issue
76-
#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
77-
# echo "Overwriting 'get_projbuild_gitconfig.py'"
78-
# cp -f "tools/get_projbuild_gitconfig.py" "$AR_COMPS/esp-rainmaker/components/esp-insights/components/esp_insights/scripts/get_projbuild_gitconfig.py"
79-
#fi
80-
81-
#
82-
# CLONE/UPDATE ESP-LITTLEFS
83-
#
84-
#echo "Updating ESP-LITTLEFS..."
85-
#if [ ! -d "$AR_COMPS/esp_littlefs" ]; then
86-
# git clone $LITTLEFS_REPO_URL "$AR_COMPS/esp_littlefs" && \
87-
# git -C "$AR_COMPS/esp_littlefs" submodule update --init --recursive
88-
#else
89-
# git -C "$AR_COMPS/esp_littlefs" fetch && \
90-
# git -C "$AR_COMPS/esp_littlefs" pull --ff-only && \
91-
# git -C "$AR_COMPS/esp_littlefs" submodule update --init --recursive
92-
#fi
93-
#if [ $? -ne 0 ]; then exit 1; fi
94-
955
#
966
# CLONE/UPDATE TINYUSB
977
#
988
echo "Updating TinyUSB..."
99-
if [ ! -d "$AR_COMPS/arduino_tinyusb/tinyusb" ]; then
100-
git clone $TINYUSB_REPO_URL "$AR_COMPS/arduino_tinyusb/tinyusb"
9+
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
10+
TINYUSB_REPO_DIR="$AR_COMPS/arduino_tinyusb/tinyusb"
11+
if [ ! -d "$TINYUSB_REPO_DIR" ]; then
12+
git clone "$TINYUSB_REPO_URL" "$TINYUSB_REPO_DIR"
10113
else
102-
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" fetch && \
103-
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" pull --ff-only
14+
git -C "$TINYUSB_REPO_DIR" fetch && \
15+
git -C "$TINYUSB_REPO_DIR" pull --ff-only
10416
fi
10517
if [ $? -ne 0 ]; then exit 1; fi
106-
107-
#
108-
# CLONE/UPDATE TFLITE MICRO
109-
#
110-
#echo "Updating TFLite Micro..."
111-
#if [ ! -d "$AR_COMPS/tflite-micro" ]; then
112-
# git clone $TFLITE_REPO_URL "$AR_COMPS/tflite-micro"
113-
# git -C "$AR_COMPS/tflite-micro" submodule update --init --recursive
114-
#else
115-
# git -C "$AR_COMPS/tflite-micro" fetch && \
116-
# git -C "$AR_COMPS/tflite-micro" pull --ff-only
117-
# git -C "$AR_COMPS/tflite-micro" submodule update --init --recursive
118-
#fi
119-
#if [ $? -ne 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)