source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/hardware/arduino/avr/platform.txt @ 4837

Last change on this file since 4837 was 4837, checked in by daduve, 2 years ago

Adding new version

File size: 7.4 KB
Line 
1
2# Arduino AVR Core and platform.
3# ------------------------------
4#
5# For more info:
6# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
7
8name=Arduino AVR Boards
9version=1.6.18
10
11# AVR compile variables
12# ---------------------
13
14compiler.warning_flags=-w
15compiler.warning_flags.none=-w
16compiler.warning_flags.default=
17compiler.warning_flags.more=-Wall
18compiler.warning_flags.all=-Wall -Wextra
19
20# Default "compiler.path" is correct, change only if you want to override the initial value
21compiler.path={runtime.tools.avr-gcc.path}/bin/
22compiler.c.cmd=avr-gcc
23compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
24compiler.c.elf.flags={compiler.warning_flags} -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections
25compiler.c.elf.cmd=avr-gcc
26compiler.S.flags=-c -g -x assembler-with-cpp -flto -MMD
27compiler.cpp.cmd=avr-g++
28compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto
29compiler.ar.cmd=avr-gcc-ar
30compiler.ar.flags=rcs
31compiler.objcopy.cmd=avr-objcopy
32compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
33compiler.elf2hex.flags=-O ihex -R .eeprom
34compiler.elf2hex.cmd=avr-objcopy
35compiler.ldflags=
36compiler.size.cmd=avr-size
37
38# This can be overridden in boards.txt
39build.extra_flags=
40
41# These can be overridden in platform.local.txt
42compiler.c.extra_flags=
43compiler.c.elf.extra_flags=
44compiler.S.extra_flags=
45compiler.cpp.extra_flags=
46compiler.ar.extra_flags=
47compiler.objcopy.eep.extra_flags=
48compiler.elf2hex.extra_flags=
49
50# AVR compile patterns
51# --------------------
52
53## Compile c files
54recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
55
56## Compile c++ files
57recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
58
59## Compile S files
60recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
61
62## Create archives
63# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value
64archive_file_path={build.path}/{archive_file}
65recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
66
67## Combine gc-sections, archives, and objects
68recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm
69
70## Create output files (.eep and .hex)
71recipe.objcopy.eep.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.objcopy.eep.flags} {compiler.objcopy.eep.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.eep"
72recipe.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"
73
74## Save hex
75recipe.output.tmp_file={build.project_name}.hex
76recipe.output.save_file={build.project_name}.{build.variant}.hex
77
78## Compute size
79recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
80recipe.size.regex=^(?:\.text|\.data|\.bootloader)\s+([0-9]+).*
81recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
82recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
83
84## Preprocessor
85preproc.includes.flags=-w -x c++ -M -MG -MP
86recipe.preproc.includes="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.includes.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}"
87
88preproc.macros.flags=-w -x c++ -E -CC
89recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{preprocessed_file_path}"
90
91# AVR Uploader/Programmers tools
92# ------------------------------
93
94tools.avrdude.path={runtime.tools.avrdude.path}
95tools.avrdude.cmd.path={path}/bin/avrdude
96tools.avrdude.config.path={path}/etc/avrdude.conf
97
98tools.avrdude.network_cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA
99
100tools.avrdude.upload.params.verbose=-v
101tools.avrdude.upload.params.quiet=-q -q
102# tools.avrdude.upload.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value
103tools.avrdude.upload.verify=
104tools.avrdude.upload.params.noverify=-V
105tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} {upload.verify} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
106
107tools.avrdude.program.params.verbose=-v
108tools.avrdude.program.params.quiet=-q -q
109# tools.avrdude.program.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value
110tools.avrdude.program.verify=
111tools.avrdude.program.params.noverify=-V
112tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} {program.verify} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
113
114tools.avrdude.erase.params.verbose=-v
115tools.avrdude.erase.params.quiet=-q -q
116tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m
117
118tools.avrdude.bootloader.params.verbose=-v
119tools.avrdude.bootloader.params.quiet=-q -q
120tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
121
122tools.avrdude_remote.upload.pattern=/usr/bin/run-avrdude /tmp/sketch.hex {upload.verbose} -p{build.mcu}
123
124tools.avrdude.upload.network_pattern="{network_cmd}" -address {serial.port} -port {upload.network.port} -sketch "{build.path}/{build.project_name}.hex" -upload {upload.network.endpoint_upload} -sync {upload.network.endpoint_sync} -reset {upload.network.endpoint_reset} -sync_exp {upload.network.sync_return}
125
126# USB Default Flags
127# Default blank usb manufacturer will be filled in at compile time
128# - from numeric vendor ID, set to Unknown otherwise
129build.usb_manufacturer="Unknown"
130build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
Note: See TracBrowser for help on using the repository browser.