Skip to content

Commit 2a5414b

Browse files
Update platform.txt for arduino-avr-toolchain-nightly-gcc-4.8.1
This updates the platform.txt with the latest version from the experimental Arduino IDE version with updated toolchain (ide-1.5.x-avr-toolchain-gcc-4.8.1 branch): https://github.com/arduino/Arduino/blob/a111f824c9dd5aa5579b64acfb0f81f157ac3658/hardware/arduino/avr/platform.txt Apart from some cosmetical changes, this makes uploading work with the IDE built from that branch. However, it also breaks uploading on Linux with the regular IDE.
1 parent 8d89c0c commit 2a5414b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

avr/platform.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Pinoccio AVR Core and platform.
22
name=Pinoccio AVR boards
33
version=1.0.0
4+
45
# AVR compile variables
56
# ---------------------
67

@@ -10,7 +11,7 @@ compiler.c.cmd=avr-gcc
1011
compiler.c.flags=-c -g -Os -w -std=gnu99 -ffunction-sections -fdata-sections -MMD
1112
compiler.c.elf.flags=-Os -Wl,--gc-sections
1213
compiler.c.elf.cmd=avr-gcc
13-
compiler.S.flags=-c -g -assembler-with-cpp
14+
compiler.S.flags=-c -g -x assembler-with-cpp
1415
compiler.cpp.cmd=avr-g++
1516
compiler.cpp.flags=-c -g -Os -w -std=gnu++98 -fno-exceptions -ffunction-sections -fdata-sections -MMD
1617
compiler.ar.cmd=avr-ar
@@ -60,8 +61,6 @@ recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
6061

6162
tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude
6263
tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
63-
tools.avrdude.cmd.path.linux={runtime.ide.path}/hardware/tools/avrdude
64-
tools.avrdude.config.path.linux={runtime.ide.path}/hardware/tools/avrdude.conf
6564

6665
tools.avrdude.upload.params.verbose=-v -v -v -v
6766
tools.avrdude.upload.params.quiet=-q -q
@@ -77,5 +76,11 @@ tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{bu
7776

7877
tools.avrdude.bootloader.params.verbose=-v -v -v -v
7978
tools.avrdude.bootloader.params.quiet=-q -q
80-
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.ide.path}/hardware/arduino/avr/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
79+
tools.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
80+
8181

82+
# USB Default Flags
83+
# Default blank usb manufacturer will be filled it at compile time
84+
# - from numeric vendor ID, set to Unknown otherwise
85+
build.usb_manufacturer=
86+
build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'

0 commit comments

Comments
 (0)