4
4
5
5
name=Arduino
6
6
# Default "compiler.path" is correct, change only if you want to overidde the initial value
7
- #compiler.path={0}/hardware/ tools/avr/bin/
7
+ #compiler.path={ide.path}/ tools/avr/bin/..
8
8
compiler.c.cmd=avr-gcc
9
9
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections
10
10
compiler.c.elf.flags=-Os -Wl,--gc-sections
@@ -26,22 +26,22 @@ compiler.upload.flags=
26
26
# --------------------
27
27
28
28
## Compile c files
29
- recipe.c.o.pattern={toolchain_path }{compiler.c.cmd} {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide_version } {includes} {source_file} -o {object_file}
29
+ recipe.c.o.pattern={compiler.path }{compiler.c.cmd} {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide.version } {includes} {source_file} -o {object_file}
30
30
31
31
## Compile c++ files
32
- recipe.cpp.o.pattern={toolchain_path }{compiler.cpp.cmd} {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide_version } {includes} {source_file} -o {object_file}
32
+ recipe.cpp.o.pattern={compiler.path }{compiler.cpp.cmd} {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide.version } {includes} {source_file} -o {object_file}
33
33
34
34
## Create archives
35
- recipe.ar.pattern={toolchain_path }{compiler.ar.cmd} {compiler.ar.flags} {build_path} {archive_file} {object_file}
35
+ recipe.ar.pattern={compiler.path }{compiler.ar.cmd} {compiler.ar.flags} {build.path}/ {archive_file} {object_file}
36
36
37
37
## Combine gc-sections, archives, and objects
38
- recipe.c.combine.pattern={toolchain_path }{compiler.c.elf.cmd} {compiler.c.elf.flags} -mmcu={build.mcu} -o {build_path} {project_name}.elf {object_files} {build_path} {archive_file} -L{build_path } -lm
38
+ recipe.c.combine.pattern={compiler.path }{compiler.c.elf.cmd} {compiler.c.elf.flags} -mmcu={build.mcu} -o {build.path}/ {project_name}.elf {object_files} {build.path}/ {archive_file} -L{build.path } -lm
39
39
40
40
## Create eeprom
41
- recipe.objcopy.eep.pattern={toolchain_path }{compiler.objcopy.cmd} {compiler.objcopy.eep.flags} {build_path} {project_name}.elf {build_path} {project_name}.eep
41
+ recipe.objcopy.eep.pattern={compiler.path }{compiler.objcopy.cmd} {compiler.objcopy.eep.flags} {build.path}/ {project_name}.elf {build.path}/ {project_name}.eep
42
42
43
43
## Create hex
44
- recipe.objcopy.hex.pattern={toolchain_path }{compiler.elf2hex.cmd} {compiler.elf2hex.flags} {build_path} {project_name}.elf {build_path} {project_name}.hex
44
+ recipe.objcopy.hex.pattern={compiler.path }{compiler.elf2hex.cmd} {compiler.elf2hex.flags} {build.path}/ {project_name}.elf {build.path}/ {project_name}.hex
45
45
46
46
47
47
0 commit comments