Skip to content

Commit 304f21b

Browse files
committed
logicrom:use compiled linker script for rda8910
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent f8555ca commit 304f21b

File tree

2 files changed

+7
-118
lines changed

2 files changed

+7
-118
lines changed

cores/logicrom/logicromsdk/lib/linkerscript_rda.ld

Lines changed: 0 additions & 118 deletions
This file was deleted.

platform.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compil
9494
## Combine gc-sections, archives, and objects
9595
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} "-L{build.core.path}/logicromsdk/lib" "-T{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} -Wl,--start-group -l{build.logicromlib}{build.build_type} -lc -lgcc -lm "{build.path}/{archive_file}" -Wl,--end-group
9696

97+
## Prelink hook
98+
recipe.prelink.mt2503.hook="{runtime.tools.python3.path}/python3" -I -c "print()"
99+
recipe.prelink.mt6261.hook="{runtime.tools.python3.path}/python3" -I -c "print()"
100+
recipe.prelink.rda8910.hook="{compiler.path}{compiler.c.cmd}" "-I{build.core.path}/logicromsdk/lib/rda8910" -P -x c -E "{build.core.path}/logicromsdk/lib/rda8910/app_flashimg.ld" -o "{build.path}/{build.ldscript}"
101+
102+
recipe.hooks.linking.prelink.1.pattern={recipe.prelink.{build.mcu}.hook}
103+
97104
## Create output Binary file
98105
## Pattern based on mcu type
99106
## MT2503

0 commit comments

Comments
 (0)