summarylogtreecommitdiffstats
path: root/platform.patch
blob: 2138b81d1c7cc2fc8f66677d697353908dea7c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -aur avr/platform.txt avr.new/platform.txt
--- avr/platform.txt	2016-09-21 10:05:40.000000000 +0200
+++ avr.new/platform.txt	2016-10-08 16:52:00.513630471 +0200
@@ -5,7 +5,7 @@
 # For more info:
 # https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification

-name=Arduino SAMD (32-bits ARM Cortex-M0+) Boards
+name=Arch Linux Arduino SAMD (32-bits ARM Cortex-M0+) Boards
 version=1.8.3

 # Compile variables
@@ -18,14 +18,14 @@
 compiler.warning_flags.all=-Wall -Wextra -Wno-expansion-to-defined

-compiler.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
+compiler.path=/usr/bin/
 compiler.c.cmd=arm-none-eabi-gcc
 compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
 compiler.c.elf.cmd=arm-none-eabi-g++
 compiler.c.elf.flags=-Os -Wl,--gc-sections -save-temps
 compiler.S.cmd=arm-none-eabi-gcc
 compiler.S.flags=-c -g -x assembler-with-cpp -MMD
 compiler.cpp.cmd=arm-none-eabi-g++
-compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
+compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -fno-devirtualize -fno-use-cxa-atexit
 compiler.ar.cmd=arm-none-eabi-ar
 compiler.ar.flags=rcs
 compiler.objcopy.cmd=arm-none-eabi-objcopy
@@ -91,7 +91,7 @@
 # AVRDUDE
 #
-tools.avrdude.path={runtime.tools.avrdude.path}
+tools.avrdude.path=/
 tools.avrdude.cmd={path}/bin/avrdude
 tools.avrdude.config.path={path}/etc/avrdude.conf