| 1 |
From: Carsten Schoenert <[email protected]> |
| 2 |
Date: Wed, 23 Dec 2020 13:35:36 +0100 |
| 3 |
Subject: Adjust paths for gcc-avr and avrdude |
| 4 |
|
| 5 |
Both is packaged in Debian and we want to use the package variants. |
| 6 |
|
| 7 |
Forwarded: not-needed |
| 8 |
--- |
| 9 |
platform.txt | 8 ++++---- |
| 10 |
1 file changed, 4 insertions(+), 4 deletions(-) |
| 11 |
|
| 12 |
diff --git a/platform.txt b/platform.txt |
| 13 |
index df5ddb7..1bfb0aa 100644 |
| 14 |
--- a/platform.txt |
| 15 |
+++ b/platform.txt |
| 16 |
@@ -5,7 +5,7 @@ |
| 17 |
# For more info: |
| 18 |
# https://arduino.github.io/arduino-cli/latest/platform-specification/ |
| 19 |
|
| 20 |
-name=Arduino AVR Boards |
| 21 |
+name=Arduino AVR Boards (Debian packaged) |
| 22 |
version=1.8.7 |
| 23 |
|
| 24 |
# AVR compile variables |
| 25 |
@@ -18,7 +18,7 @@ compiler.warning_flags.more=-Wall |
| 26 |
compiler.warning_flags.all=-Wall -Wextra |
| 27 |
|
| 28 |
# Default "compiler.path" is correct, change only if you want to override the initial value |
| 29 |
-compiler.path={runtime.tools.avr-gcc.path}/bin/ |
| 30 |
+compiler.path=/usr/bin/ |
| 31 |
compiler.c.cmd=avr-gcc |
| 32 |
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects |
| 33 |
compiler.c.elf.flags={compiler.warning_flags} -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections |
| 34 |
@@ -98,9 +98,9 @@ pluggable_monitor.required.serial=builtin:serial-monitor |
| 35 |
# AVR Uploader/Programmers tools |
| 36 |
# ------------------------------ |
| 37 |
|
| 38 |
-tools.avrdude.path={runtime.tools.avrdude.path} |
| 39 |
+tools.avrdude.path=/usr |
| 40 |
tools.avrdude.cmd.path={path}/bin/avrdude |
| 41 |
-tools.avrdude.config.path={path}/etc/avrdude.conf |
| 42 |
+tools.avrdude.config.path=/etc/avrdude.conf |
| 43 |
|
| 44 |
tools.avrdude.upload.params.verbose=-v |
| 45 |
tools.avrdude.upload.params.quiet=-q -q |