Skip to content

Commit

Permalink
pass -m flag to avr-ld where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
tones111 committed Feb 23, 2025
1 parent bd7b930 commit d4538ec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/arduino-mega1280/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[build]
target = "avr-none"
rustflags = ["-C", "target-cpu=atmega1280"]
rustflags = [
"-C", "target-cpu=atmega1280",
"-C", "link-arg=-mavr51",
]

[target.'cfg(target_arch = "avr")']
runner = "ravedude -cb 57600 mega1280"
Expand Down
5 changes: 4 additions & 1 deletion examples/arduino-mega2560/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[build]
target = "avr-none"
rustflags = ["-C", "target-cpu=atmega2560"]
rustflags = [
"-C", "target-cpu=atmega2560",
"-C", "link-arg=-mavr6",
]

[target.'cfg(target_arch = "avr")']
runner = "ravedude -cb 57600 mega2560"
Expand Down
5 changes: 4 additions & 1 deletion examples/atmega2560/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[build]
target = "avr-none"
rustflags = ["-C", "target-cpu=atmega2560"]
rustflags = [
"-C", "target-cpu=atmega2560",
"-C", "link-arg=-mavr6",
]

[target.'cfg(target_arch = "avr")']
runner = "ravedude -cb 57600 mega2560"
Expand Down

0 comments on commit d4538ec

Please sign in to comment.