2
2
##compile c object files
3
3
##Default.recipe, overide if overide exists, these defauls should remain the same, if you need to change them do it as an overide.
4
4
5
- #default.recipe.c.o.pattern={0}{1}, {2}, {3}{4}, -DF_CPU={5}, -D{6}={7}, {8}, {9},-o, {10}
6
- #default.recipe.cpp.o.pattern={0}{1}, {2}, {3}{4}, -DF_CPU={5}, -D{6}={7}, {8}, {9},-o, {10}
7
- #default.recipe.ar.pattern={0}{1}, {2}, {3}{4}, {5}
8
- #default.recipe.c.combine.pattern={0}{1}, {2}, {3}{4},-o, {5}{6}.elf, {7}, {8}, -L{9}, -lm
9
- #default.recipe.objcopy.eep.pattern={0}{1}, {2}, {3}.elf, {4}.eep
10
- #default.recipe.objcopy.hex.pattern={0}{1}, {2}, {3}.elf, {4}.hex
5
+ #default.recipe.c.o.pattern={0}{1}| {2}| {3}{4}| -DF_CPU={5}| -D{6}={7}| {8}| {9}|-o| {10}
6
+ #default.recipe.cpp.o.pattern={0}{1}| {2}| {3}{4}| -DF_CPU={5}| -D{6}={7}| {8}| {9}|-o| {10}
7
+ #default.recipe.ar.pattern={0}{1}| {2}| {3}{4}| {5}
8
+ #default.recipe.c.combine.pattern={0}{1}| {2}| {3}{4}|-o| {5}{6}.elf| {7}| {8}| -L{9}| -lm
9
+ #default.recipe.objcopy.eep.pattern={0}{1}| {2}| {3}.elf| {4}.eep
10
+ #default.recipe.objcopy.hex.pattern={0}{1}| {2}| {3}.elf| {4}.hex
11
11
12
12
########avr compile pattern ##########
13
13
#avr.recipe.c.o.pattern={0=compiler.path}{1=compiler.c.cmd}{2=compiler.c.flags}{3=compiler.cpudef}{4=build.mcu}-DF_CPU={5=build.f_cpu}-D{7=ARDUINO}={6=Base.REVISION}{7=-I/INCLUDE_PATHS} {8=SOURCE_NAME} -o{9=OBJECT_NAME}
14
14
#object name seems to have build path in it.
15
- avr.recipe.c.o.pattern={0}{1}, {2}, {3}{4}, -DF_CPU={5}, -D{6}={7}, {8}, {9},-o, {10}
15
+ avr.recipe.c.o.pattern={0}{1}| {2}| {3}{4}| -DF_CPU={5}| -D{6}={7}| {8}| {9}|-o| {10}
16
16
17
17
18
18
##compile cc object files
19
19
#avr.recipe.cc.o.pattern={0=compiler.path}{1=compiler.cc.cmd}{2=compiler.c.flags}{3=compiler.cpudef}{4=build.mcu}-DF_CPU={5=build.f_cpu}-DARDUINO={6=Base.REVISION}{-7=I/INCLUDE_PATHS} {8=SOURCE_NAME} -o{9=BUILD_PATH}{10=OBJECT_NAME}
20
- avr.recipe.cpp.o.pattern={0}{1}, {2}, {3}{4}, -DF_CPU={5}, -D{6}={7}, {8}, {9},-o, {10}
20
+ avr.recipe.cpp.o.pattern={0}{1}| {2}| {3}{4}| -DF_CPU={5}| -D{6}={7}| {8}| {9}|-o| {10}
21
21
##create archives
22
22
#avr.recipe.ar.pattern={0=compiler.path}{1=compiler.ar.cmd}{2=compiler.ar.flags}{3=BUILD_PATH}{4=CORE_NAME=core.a}{5=BUILD_PATH}{6=OBJECT_NAME}
23
- avr.recipe.ar.pattern={0}{1}, {2}, {3}{4}, {5}
23
+ avr.recipe.ar.pattern={0}{1}| {2}| {3}{4}| {5}
24
24
25
- ##combine gc-sections, archives, and objects
25
+ ##combine gc-sections| archives, and objects
26
26
#avr.recipe.c.combine.pattern={0=compiler.path}{1=compiler.c.cmd}{2=compiler.combine.flags}{3=compiler.cpudef}{4=build.mcu} -o {5=BUILD_PATH}{6=SOURCE_NAME}.elf {7=BUILD_PATH}{8=SOURCE_NAME}.o {9=BUILD_PATH}{10=CORE_NAME=core.a} -L{11=BUILD_PATH} -lm
27
- #avr.recipe.c.combine.pattern={0}{1}, {2}, {3}{4},-o, {5}{6}.elf, {7}{8}, {9}, -L{10}, -lm
28
- avr.recipe.c.combine.pattern={0}{1}, {2}, {3}{4},-o, {5}{6}.elf, {7}, {8}, -L{9}, -lm
27
+ #avr.recipe.c.combine.pattern={0}{1}| {2}| {3}{4}|-o| {5}{6}.elf| {7}{8}| {9}| -L{10}| -lm
28
+ avr.recipe.c.combine.pattern={0}{1}| {2}| {3}{4}|-o| {5}{6}.elf| {7}| {8}| -L{9}| -lm
29
29
30
30
##create eeprom
31
31
#avr.recipe.objcopy.eep.pattern={0=compiler.path}{1=compiler.objcopy.cmd}{2=compiler.objcopy.eep.flags} {3=BUILD_PATH}{4=SOURCE_NAME}.elf {5=BUILD_PATH}{6=SOURCE_NAME}.eep
32
- avr.recipe.objcopy.eep.pattern={0}{1}, {2}, {3}.elf, {4}.eep
32
+ avr.recipe.objcopy.eep.pattern={0}{1}| {2}| {3}.elf| {4}.eep
33
33
34
34
##create hex
35
35
#avr.recipe.objcopy.hex.pattern={0=compiler.path}{1=compiler.objcopy.cmd}{2=compiler.objcopy.elf.flags} {3=BUILD_PATH}{4=SOURCE_NAME}.elf {5=BUILD_PATH}{6=SOURCE_NAME}.hex
36
- avr.recipe.objcopy.hex.pattern={0}{1}, {2}, {3}.elf, {4}.hex
36
+ avr.recipe.objcopy.hex.pattern={0}{1}| {2}| {3}.elf| {4}.hex
37
37
38
38
39
39
@@ -42,17 +42,17 @@ avr.name=Arduino
42
42
#avr.compiler.path Official default is correct, only need to change this if you want to overide the initial default
43
43
#avr.compiler.path={0}/hardware/tools/avr/bin/
44
44
avr.compiler.c.cmd=avr-gcc
45
- avr.compiler.c.flags=,-c,-g, -Os,-w, -ffunction-sections, -fdata-sections
46
- avr.compiler.c.elf.flags=, -Os, -Wl, --gc-sections
45
+ avr.compiler.c.flags=|-c|-g| -Os|-w| -ffunction-sections| -fdata-sections
46
+ avr.compiler.c.elf.flags=| -Os| -Wl| --gc-sections
47
47
avr.compiler.c.elf.cmd=avr-gcc
48
- avr.compiler.S.flags=,-c,-g, -assembler-with-cpp
48
+ avr.compiler.S.flags=|-c|-g| -assembler-with-cpp
49
49
avr.compiler.cpp.cmd=avr-g++
50
- avr.compiler.cpp.flags=,-c,-g, -Os,-w, -fno-exceptions, -ffunction-sections, -fdata-sections
50
+ avr.compiler.cpp.flags=|-c|-g| -Os|-w| -fno-exceptions| -ffunction-sections| -fdata-sections
51
51
avr.compiler.ar.cmd=avr-ar
52
52
avr.compiler.ar.flags=rcs
53
53
avr.compiler.objcopy.cmd=avr-objcopy
54
- avr.compiler.objcopy.eep.flags=,-O, ihex,-j, .eeprom, --set-section-flags=.eeprom=alloc, load, --no-change-warnings, --change-section-lma, .eeprom=0
55
- avr.compiler.elf2hex.flags=,-O, ihex,-R, .eeprom
54
+ avr.compiler.objcopy.eep.flags=|-O| ihex|-j| .eeprom| --set-section-flags=.eeprom=alloc| load| --no-change-warnings| --change-section-lma| .eeprom=0
55
+ avr.compiler.elf2hex.flags=|-O| ihex|-R| .eeprom
56
56
avr.compiler.elf2hex.cmd=avr-objcopy
57
57
avr.compiler.ldflags=
58
58
avr.compiler.cpudef=-mmcu=
0 commit comments