Skip to content

Commit fbb92a9

Browse files
committed
Added extra compile flags to build esp-nn assembly for ESP32-S3
Signed-off-by: Vikram <[email protected]>
1 parent 80b89c9 commit fbb92a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

micropython-modules/microlite/micropython.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ target_compile_options(microlite INTERFACE
398398
-Wno-error=maybe-uninitialized
399399
)
400400

401-
else()
401+
else() # not "RP2"
402402
if (CONFIG_IDF_TARGET)
403403
target_include_directories(microlite INTERFACE
404404
${TF_ESP_DIR}
@@ -452,6 +452,9 @@ target_compile_options(microlite INTERFACE
452452
-Wno-error=maybe-uninitialized
453453
)
454454

455+
if (CONFIG_IDF_TARGET_ESP32S3) # Extra compile options needed to build esp-nn ASM for ESP32-S3
456+
target_compile_options(microlite INTERFACE -mlongcalls -fno-unroll-loops -Wno-unused-function)
457+
endif()
455458
endif()
456459

457460
target_link_libraries(usermod INTERFACE microlite)

0 commit comments

Comments
 (0)