From 9ca63e0e7b016c852d34eae8dedbe41a8e4cf6c0 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 29 Jun 2017 14:12:25 +0700 Subject: [PATCH] move linker to separated folder in core --- {variants/feather52 => cores/nRF5/linker}/feather52_s132.ld | 0 cores/nRF5/{ => linker}/nrf5x_common.ld | 0 platform.txt | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename {variants/feather52 => cores/nRF5/linker}/feather52_s132.ld (100%) rename cores/nRF5/{ => linker}/nrf5x_common.ld (100%) diff --git a/variants/feather52/feather52_s132.ld b/cores/nRF5/linker/feather52_s132.ld similarity index 100% rename from variants/feather52/feather52_s132.ld rename to cores/nRF5/linker/feather52_s132.ld diff --git a/cores/nRF5/nrf5x_common.ld b/cores/nRF5/linker/nrf5x_common.ld similarity index 100% rename from cores/nRF5/nrf5x_common.ld rename to cores/nRF5/linker/nrf5x_common.ld diff --git a/platform.txt b/platform.txt index 0ac08c14..79427075 100644 --- a/platform.txt +++ b/platform.txt @@ -89,7 +89,7 @@ recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU= recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}" ## Combine gc-sections, archives, and objects -recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} "-L{build.variant.path}" "-L{build.core.path}" "-T{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" --specs=nano.specs --specs=nosys.specs {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} -Wl,--start-group -lm "{build.path}/{archive_file}" -Wl,--end-group +recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} "-L{build.variant.path}" "-L{build.core.path}/linker" "-T{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" --specs=nano.specs --specs=nosys.specs {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} -Wl,--start-group -lm "{build.path}/{archive_file}" -Wl,--end-group ## Create output (bin file) #recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2bin.cmd}" {compiler.elf2bin.flags} {compiler.elf2bin.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"