Skip to content

Commit d64f570

Browse files
thenguyenyfkartben
authored andcommitted
soc: ra4e2: fix IAR build failed
Correct the input section define for the device reset configuration setting when enabling the CMake Linker Generator, which cause a build failed when using the IAR build tool. Signed-off-by: The Nguyen <[email protected]>
1 parent a368dc9 commit d64f570

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

soc/renesas/ra/ra4e2/CMakeLists.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ dt_reg_addr(pbps_sec_addr PATH ${option_setting_pbps_sec})
2020

2121
if(CONFIG_CMAKE_LINKER_GENERATOR)
2222
zephyr_linker_section(NAME .fsp_dtc_vector_table GROUP RAM)
23-
zephyr_linker_section(NAME .option_setting_ofs0 GROUP OFS_CONF_MEMORY ADDRESS ${ofs0_addr})
24-
zephyr_linker_section_configure(SECTION .option_setting_ofs0 KEEP INPUT ".option_setting_ofs0")
25-
zephyr_linker_section(NAME .option_setting_osis GROUP OFS_CONF_MEMORY ADDRESS ${osis_addr})
26-
zephyr_linker_section_configure(SECTION .option_setting_osis KEEP INPUT ".option_setting_osis")
27-
zephyr_linker_section(NAME .option_setting_ofs1_sec GROUP OFS_CONF_MEMORY ADDRESS ${ofs1_sec_addr})
28-
zephyr_linker_section_configure(SECTION .option_setting_ofs1_sec KEEP INPUT ".option_setting_ofs1_sec")
29-
zephyr_linker_section(NAME .option_setting_bps_sec GROUP OFS_CONF_MEMORY ADDRESS ${bps_sec_addr})
30-
zephyr_linker_section_configure(SECTION .option_setting_bps_sec KEEP INPUT ".option_setting_bps_sec")
31-
zephyr_linker_section(NAME .option_setting_pbps_sec GROUP OFS_CONF_MEMORY ADDRESS ${pbps_sec_addr})
32-
zephyr_linker_section_configure(SECTION .option_setting_pbps_sec KEEP INPUT ".option_setting_pbps_sec")
23+
zephyr_linker_section_configure(SECTION .fsp_dtc_vector_table KEEP INPUT ".fsp_dtc_vector_table*")
24+
zephyr_linker_section(NAME .option_setting_ofs0 GROUP OFS_OFS0_MEMORY ADDRESS ${ofs0_addr})
25+
zephyr_linker_section_configure(SECTION .option_setting_ofs0 KEEP INPUT ".option_setting_ofs0*")
26+
zephyr_linker_section(NAME .option_setting_osis GROUP OFS_OSIS_MEMORY ADDRESS ${osis_addr})
27+
zephyr_linker_section_configure(SECTION .option_setting_osis KEEP INPUT ".option_setting_osis*")
28+
zephyr_linker_section(NAME .option_setting_ofs1_sec GROUP OFS_OFS1_SEC_MEMORY ADDRESS ${ofs1_sec_addr})
29+
zephyr_linker_section_configure(SECTION .option_setting_ofs1_sec KEEP INPUT ".option_setting_ofs1_sec*")
30+
zephyr_linker_section(NAME .option_setting_bps_sec GROUP OFS_BPS_SEC_MEMORY ADDRESS ${bps_sec_addr})
31+
zephyr_linker_section_configure(SECTION .option_setting_bps_sec KEEP INPUT ".option_setting_bps_sec*")
32+
zephyr_linker_section(NAME .option_setting_pbps_sec GROUP OFS_PBPS_SEC_MEMORY ADDRESS ${pbps_sec_addr})
33+
zephyr_linker_section_configure(SECTION .option_setting_pbps_sec KEEP INPUT ".option_setting_pbps_sec*")
3334
elseif(CONFIG_LD_LINKER_TEMPLATE)
3435
zephyr_linker_sources(SECTIONS sections.ld)
3536
zephyr_linker_sources(RAM_SECTIONS ram_sections.ld)

0 commit comments

Comments
 (0)