Skip to content

Commit a810c81

Browse files
committed
Whoops, restoring platform.txt.
1 parent bd9330b commit a810c81

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

hardware/avr/platform.txt

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#########Compiler Recipe#################################
2+
##compile c object files
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+
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+
12+
########avr compile pattern ##########
13+
#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+
#object name seems to have build path in it.
15+
recipe.c.o.pattern={0}{1}|{2}|{3}{4}|-DF_CPU={5}|-D{6}={7}|{8}|{9}|-o|{10}
16+
17+
18+
##compile cc object files
19+
#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+
recipe.cpp.o.pattern={0}{1}|{2}|{3}{4}|-DF_CPU={5}|-D{6}={7}|{8}|{9}|-o|{10}
21+
##create archives
22+
#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+
recipe.ar.pattern={0}{1}|{2}|{3}{4}|{5}
24+
25+
##combine gc-sections| archives, and objects
26+
#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+
#recipe.c.combine.pattern={0}{1}|{2}|{3}{4}|-o|{5}{6}.elf|{7}{8}|{9}|-L{10}|-lm
28+
recipe.c.combine.pattern={0}{1}|{2}|{3}{4}|-o|{5}{6}.elf|{7}|{8}|-L{9}|-lm
29+
30+
##create eeprom
31+
#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+
recipe.objcopy.eep.pattern={0}{1}|{2}|{3}.elf|{4}.eep
33+
34+
##create hex
35+
#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+
recipe.objcopy.hex.pattern={0}{1}|{2}|{3}.elf|{4}.hex
37+
38+
39+
40+
########################################################
41+
name=Arduino
42+
#compiler.path Official default is correct, only need to change this if you want to overide the initial default
43+
#compiler.path={0}/hardware/tools/avr/bin/
44+
compiler.c.cmd=avr-gcc
45+
compiler.c.flags=|-c|-g|-Os|-w|-ffunction-sections|-fdata-sections
46+
compiler.c.elf.flags=|-Os|-Wl,--gc-sections
47+
compiler.c.elf.cmd=avr-gcc
48+
compiler.S.flags=|-c|-g|-assembler-with-cpp
49+
compiler.cpp.cmd=avr-g++
50+
compiler.cpp.flags=|-c|-g|-Os|-w|-fno-exceptions|-ffunction-sections|-fdata-sections
51+
compiler.ar.cmd=avr-ar
52+
compiler.ar.flags=rcs
53+
compiler.objcopy.cmd=avr-objcopy
54+
compiler.objcopy.eep.flags=|-O|ihex|-j|.eeprom|--set-section-flags=.eeprom=alloc,load|--no-change-warnings|--change-section-lma|.eeprom=0
55+
compiler.elf2hex.flags=|-O|ihex|-R|.eeprom
56+
compiler.elf2hex.cmd=avr-objcopy
57+
compiler.ldflags=
58+
compiler.cpudef=-mmcu=
59+
compiler.upload.cmd=
60+
compiler.upload.flags=
61+
compiler.define=-DARDUINO=
62+
library.path=./hardware/arduino/cores/arduino
63+
library.core.path=./libraries
64+

0 commit comments

Comments
 (0)