fix: use ROM libc during ESP32-C6 flash initialization

Link the C6 ROM routines in the final Arduino image and let ESP-IDF supply its own linker scripts during the SDK build. Use the 4 MB DevKitM profile for C6 and honor each board's default flash mode.
This commit is contained in:
Yurii committed 2026-12-01 21:01:41 +03:00
1 parent 0977b50208
commit 2006e6a7c2
2 files changed
+7 -2

No files matched your search

+3
View File
@@ -33,6 +33,9 @@ def no_exception_link_flags(sdk_directory):
def configure_after_build_sdk_flags(build_env, frameworks):
result = build_frameworks(frameworks)
# CMake already supplies the linker scripts and flags for the intermediate SDK image.
if build_env.get("ARDUINO_LIB_COMPILE_FLAG") == "Build":
return result
# SDK environments are already cloned; project libraries are configured later.
flags = build_env.GetProjectOption("custom_app_flags", "")