Specify a default target so cargo doc works as expected
This commit is contained in:
2
.cargo/config
Normal file
2
.cargo/config
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[build]
|
||||||
|
target = "avr-atmega328p.json"
|
||||||
2
Makefile
2
Makefile
@@ -8,7 +8,7 @@ all: ${HEX}
|
|||||||
|
|
||||||
.PHONY: ${ELF}
|
.PHONY: ${ELF}
|
||||||
${ELF}:
|
${ELF}:
|
||||||
RUSTFLAGS=${RUSTFLAGS} cargo build -Z build-std=core --target avr-atmega328p.json --release
|
RUSTFLAGS=${RUSTFLAGS} cargo build -Z build-std=core --release
|
||||||
|
|
||||||
# Download the ELF to the board
|
# Download the ELF to the board
|
||||||
.PHONY: program
|
.PHONY: program
|
||||||
|
|||||||
Reference in New Issue
Block a user