5
5
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
6
6
7
7
name=Intel Curie (32-bit) Boards
8
- version=1.6.4
8
+ version=1.0.3
9
9
10
- # SAM3 compile variables
10
+ # Arduino 101 compile variables
11
11
# ----------------------
12
12
13
13
compiler.prefix=arc-elf32
@@ -24,8 +24,10 @@ compiler.ar.cmd=arc-elf32-ar
24
24
compiler.ar.flags=rcs
25
25
compiler.objcopy.cmd=arc-elf32-objcopy
26
26
compiler.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
28
28
compiler.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
29
31
compiler.ldflags=
30
32
compiler.size.cmd=arc-elf32-size
31
33
compiler.define=-DARDUINO=
@@ -69,11 +71,18 @@ recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compil
69
71
recipe.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}"
70
72
71
73
## 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"
73
75
74
76
## Create output (.elf file)
75
77
recipe.objcopy.eep.pattern="{compiler.path}{compiler.strip.cmd}" "{build.path}/{build.project_name}.elf"
76
78
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
+
77
86
## Compute size
78
87
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
79
88
recipe.size.regex=Total\s+([0-9]+).*
0 commit comments