Skip to content

Commit

Permalink
Templates: Add linker script specification as variable for ROM/RAM te…
Browse files Browse the repository at this point in the history
…mplate

- Temporary solution before introducing generic regions file to be used with auto generated linker scripts.
  • Loading branch information
VladimirUmek committed Jan 17, 2025
1 parent 310fa04 commit 790d5ba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,4 @@ project:
- file: ./main.c

linker:
- script: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_flash.scf
for-compiler: AC6
for-context: +ROM

- script: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_flash.ld
for-compiler: GCC
for-context: +ROM

- script: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_ram.scf
for-compiler: AC6
for-context: +RAM

- script: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_ram.ld
for-compiler: GCC
for-context: +RAM
- script: $LinkerScript$
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,27 @@ solution:
target-types:
- type: %Name%_ROM
device: NXP::MCXN947VDF
variables:
# TODO: Replace LinkerScript specification with regions specification and use
# auto generated linker scripts. Below is a temporary solution.
# AC6
- LinkerScript: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_flash.scf
# GCC
#- LinkerScript: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_flash.ld
# IAR
#- LinkerScript: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_flash.icf

- type: %Name%_RAM
device: NXP::MCXN947VDF
variables:
# TODO: Replace LinkerScript specification with regions specification and use
# auto generated linker scripts. Below is a temporary solution.
# AC6
- LinkerScript: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_ram.scf
# GCC
#- LinkerScript: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_ram.ld
# IAR
#- LinkerScript: RTE/Device/MCXN947VDF_cm33_core0/MCXN947_cm33_core0_ram.icf

# List of different build configurations.
build-types:
Expand Down

0 comments on commit 790d5ba

Please sign in to comment.