summaryrefslogtreecommitdiff
path: root/dev-embedded/arduino/files/arduino-1.8.5-avr-platform.txt.patch
diff options
context:
space:
mode:
authorVirgil Dupras <hsoft@hardcoded.net>2018-02-12 15:34:17 -0500
committerAmy Liffey <amynka@gentoo.org>2018-03-06 20:58:56 +0100
commit680fcc66df3489c5a3c2b5adf848c36200f6693a (patch)
treec1d509bf379ea77a4053f75b011f865a1875a57c /dev-embedded/arduino/files/arduino-1.8.5-avr-platform.txt.patch
parent61cff161fa98ab1bbca7a7537099105ce510be2d (diff)
downloadgentoo-680fcc66df3489c5a3c2b5adf848c36200f6693a.tar.gz
gentoo-680fcc66df3489c5a3c2b5adf848c36200f6693a.tar.bz2
gentoo-680fcc66df3489c5a3c2b5adf848c36200f6693a.zip
dev-embedded/arduino: bump to 1.8.5
This is a major rewrite for a major bump. As we can see in the bug referred below, a *lot* of work can be poured into this ebuild but we can also see that having too large a scope makes us never bump. Thus, I opted for a bump that didn't widen the scope of the v1.0.5 ebuild. We can always improve upon this ebuild later. This work is strongly inspired by maurerpe's fine work at https://github.com/maurerpe/arduino-overlay/tree/master/dev-embedded/arduino-ide but I scaled down the unbundling effort for simplicity's sake. Closes: https://bugs.gentoo.org/525882 Closes: https://github.com/gentoo/gentoo/pull/7166 Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-embedded/arduino/files/arduino-1.8.5-avr-platform.txt.patch')
-rw-r--r--dev-embedded/arduino/files/arduino-1.8.5-avr-platform.txt.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-embedded/arduino/files/arduino-1.8.5-avr-platform.txt.patch b/dev-embedded/arduino/files/arduino-1.8.5-avr-platform.txt.patch
new file mode 100644
index 000000000000..9903da46dc4a
--- /dev/null
+++ b/dev-embedded/arduino/files/arduino-1.8.5-avr-platform.txt.patch
@@ -0,0 +1,26 @@
+diff --git a/hardware/arduino/avr/platform.txt b/hardware/arduino/avr/platform.txt
+index f7fb447c1..8ae8b73d9 100644
+--- a/hardware/arduino/avr/platform.txt
++++ b/hardware/arduino/avr/platform.txt
+@@ -18,7 +18,7 @@ compiler.warning_flags.more=-Wall
+ compiler.warning_flags.all=-Wall -Wextra
+
+ # Default "compiler.path" is correct, change only if you want to override the initial value
+-compiler.path={runtime.tools.avr-gcc.path}/bin/
++compiler.path=/usr/bin/
+ compiler.c.cmd=avr-gcc
+ compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
+ compiler.c.elf.flags={compiler.warning_flags} -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections
+@@ -91,9 +91,9 @@ recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {
+ # AVR Uploader/Programmers tools
+ # ------------------------------
+
+-tools.avrdude.path={runtime.tools.avrdude.path}
+-tools.avrdude.cmd.path={path}/bin/avrdude
+-tools.avrdude.config.path={path}/etc/avrdude.conf
++tools.avrdude.path=/usr
++tools.avrdude.cmd.path=/usr/bin/avrdude
++tools.avrdude.config.path=/etc/avrdude.conf
+
+ tools.avrdude.network_cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA
+