From 6acaa4b25e18fe2f0e71647b6b3ddd0edbe24d12 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 29 Jun 2017 00:05:41 +0700 Subject: [PATCH] move ld file to sdk folder --- cores/nRF5/{ => SDK/components/toolchain/gcc}/nrf5x_common.ld | 0 platform.txt | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename cores/nRF5/{ => SDK/components/toolchain/gcc}/nrf5x_common.ld (100%) diff --git a/cores/nRF5/nrf5x_common.ld b/cores/nRF5/SDK/components/toolchain/gcc/nrf5x_common.ld similarity index 100% rename from cores/nRF5/nrf5x_common.ld rename to cores/nRF5/SDK/components/toolchain/gcc/nrf5x_common.ld diff --git a/platform.txt b/platform.txt index f2c1b885..7952a8ce 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{nrf.sdk.path}/components/toolchain/gcc" "-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"