fix(esp32p4): fix rom and ld misuse min_rev

This commit is contained in:
Xiao Xufeng
2026-01-28 21:42:03 +08:00
parent d6c4fcd957
commit 29587bb50a
3 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ else()
# Generate sections.ld.in and pass it through linker script generator
set(sections_name "ld/${target}/sections.ld.in")
if(CONFIG_ESP32P4_REV_MIN_300)
if(CONFIG_IDF_TARGET_ESP32P4 AND NOT CONFIG_ESP32P4_SELECTS_REV_LESS_V3)
set(sections_name "ld/${target}/sections.rev3.ld.in")
endif()
target_linker_script(${COMPONENT_LIB} INTERFACE "${sections_name}"