@@ -22,31 +22,31 @@ compiler.ldflags=
22
22
compiler.size.cmd=arm-none-eabi-size
23
23
compiler.define=-DARDUINO=
24
24
25
- compiler.libsam.c.flags=-I{build.system.path}/libsam -I{build.system.path}/CMSIS/CMSIS/Include/ -I{build.system.path}/CMSIS/Device/ATMEL/
25
+ compiler.libsam.c.flags=" -I{build.system.path}/libsam" " -I{build.system.path}/CMSIS/CMSIS/Include/" " -I{build.system.path}/CMSIS/Device/ATMEL/"
26
26
27
27
# SAM3 compile patterns
28
28
# ---------------------
29
29
30
30
## Compile c files
31
- recipe.c.o.pattern={compiler.path}{compiler.c.cmd} {compiler.c.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} {build.extra_flags} {compiler.libsam.c.flags} {includes} {source_file} -o {object_file}
31
+ recipe.c.o.pattern=" {compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} {build.extra_flags} {compiler.libsam.c.flags} {includes} " {source_file}" -o " {object_file}"
32
32
33
33
## Compile c++ files
34
- recipe.cpp.o.pattern={compiler.path}{compiler.cpp.cmd} {compiler.cpp.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} {build.extra_flags} {compiler.libsam.c.flags} {includes} {source_file} -o {object_file}
34
+ recipe.cpp.o.pattern=" {compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} {build.extra_flags} {compiler.libsam.c.flags} {includes} " {source_file}" -o " {object_file}"
35
35
36
36
## Create archives
37
- recipe.ar.pattern={compiler.path}{compiler.ar.cmd} {compiler.ar.flags} {build.path}/{archive_file} {object_file}
37
+ recipe.ar.pattern=" {compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} " {build.path}/{archive_file}" " {object_file}"
38
38
39
39
## Combine gc-sections, archives, and objects
40
- recipe.c.combine.pattern={compiler.path}{compiler.c.elf.cmd} {compiler.c.elf.flags} -mcpu={build.mcu} -T{build.variant.path}/{build.ldscript} -Wl,-Map,{build.path}/{build.project_name}.map -o {build.path}/{build.project_name}.elf -L{build.path} -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} {build.variant.path}/{build.variant_system_lib} {build.path}/{archive_file} -Wl,--end-group
40
+ recipe.c.combine.pattern=" {compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} " -T{build.variant.path}/{build.ldscript}" " -Wl,-Map,{build.path}/{build.project_name}.map" -o " {build.path}/{build.project_name}.elf" " -L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} " {build.variant.path}/{build.variant_system_lib}" " {build.path}/{archive_file}" -Wl,--end-group
41
41
42
42
## Create eeprom
43
43
recipe.objcopy.eep.pattern=
44
44
45
45
## Create hex
46
- recipe.objcopy.hex.pattern={compiler.path}{compiler.elf2hex.cmd} {compiler.elf2hex.flags} {build.path}/{build.project_name}.elf {build.path}/{build.project_name}.bin
46
+ recipe.objcopy.hex.pattern=" {compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} " {build.path}/{build.project_name}.elf" " {build.path}/{build.project_name}.bin"
47
47
48
48
## Compute size
49
- recipe.size.pattern={compiler.path}{compiler.size.cmd} -A {build.path}/{build.project_name}.elf
49
+ recipe.size.pattern=" {compiler.path}{compiler.size.cmd}" -A " {build.path}/{build.project_name}.elf"
50
50
recipe.size.regex=\.text\s+([0-9]+).*
51
51
52
52
@@ -59,5 +59,5 @@ tools.bossac.path={runtime.ide.path}/hardware/tools
59
59
60
60
tools.bossac.upload.params.verbose=-i -d
61
61
tools.bossac.upload.params.quiet=
62
- tools.bossac.upload.pattern={path}/{cmd} {upload.verbose} --port={serial.port.file} -e -w -v -b {build.path}/{build.project_name}.bin
62
+ tools.bossac.upload.pattern=" {path}/{cmd}" {upload.verbose} --port={serial.port.file} -e -w -v -b " {build.path}/{build.project_name}.bin"
63
63
0 commit comments