feat(esp_system): riscv: refactor linker scripts to reduce duplicated code

This commit is contained in:
Alexey Lapshin
2026-03-23 11:19:22 +08:00
committed by BOT
parent b4424ddf4d
commit 3a4276afd7
30 changed files with 937 additions and 4886 deletions
+1 -5
View File
@@ -103,11 +103,7 @@ else()
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/${target}/memory.ld.in")
# Generate sections.ld.in and pass it through linker script generator
set(sections_name "ld/${target}/sections.ld.in")
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}"
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/${target}/sections.ld.in"
PROCESS "${CMAKE_CURRENT_BINARY_DIR}/ld/sections.ld")
endif()