55# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
66
77name=Intel Curie (32-bit) Boards
8- version=1.6.4
8+ version=1.0.3
99
10- # SAM3 compile variables
10+ # Arduino 101 compile variables
1111# ----------------------
1212
1313compiler.prefix=arc-elf32
@@ -24,8 +24,10 @@ compiler.ar.cmd=arc-elf32-ar
2424compiler.ar.flags=rcs
2525compiler.objcopy.cmd=arc-elf32-objcopy
2626compiler.objcopy.eep.flags=-O ihex
27- compiler.elf2hex.flags=-S -O binary -R .note -R .comment -R COMMON -R .eh_frame
27+ compiler.elf2hex.flags=-S -O ihex -R .note -R .comment -R COMMON -R .eh_frame
2828compiler.elf2hex.cmd=arc-elf32-objcopy
29+ compiler.elf2bin.flags=-S -O binary -R .note -R .comment -R COMMON -R .eh_frame
30+ compiler.elf2bin.cmd=arc-elf32-objcopy
2931compiler.ldflags=
3032compiler.size.cmd=arc-elf32-size
3133compiler.define=-DARDUINO=
@@ -69,11 +71,18 @@ recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compil
6971recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" "-L{build.variant.path}" -Wl,--whole-archive "-l{build.variant_system_lib}" -Wl,--no-whole-archive -Wl,--start-group "-l{build.variant_system_lib}" -lc -lm -lgcc {object_files} "{build.path}/{archive_file}"
7072
7173## Create output (.bin file)
72- recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2hex .cmd}" {compiler.elf2hex .flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
74+ recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2bin .cmd}" {compiler.elf2bin .flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
7375
7476## Create output (.elf file)
7577recipe.objcopy.eep.pattern="{compiler.path}{compiler.strip.cmd}" "{build.path}/{build.project_name}.elf"
7678
79+ ## Create output (.hex file)
80+ recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
81+
82+ ## Save hex
83+ recipe.output.tmp_file={build.project_name}.hex
84+ recipe.output.save_file={build.project_name}.{build.variant}.hex
85+
7786## Compute size
7887recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
7988recipe.size.regex=Total\s+([0-9]+).*
0 commit comments