blob: 96fe27559813dd5bef17cda46e534e6dd65a41ec [file] [log] [blame]
Woyten860e0bc2020-01-29 21:17:14 +01001[alias]
Laura Abbott3620f072020-02-18 17:28:36 -05002rriscv32imac = "run --release --target=riscv32imac-unknown-none-elf --example"
3rrv32imac = "rriscv32imac"
Woyten860e0bc2020-01-29 21:17:14 +01004rriscv32imc = "run --release --target=riscv32imc-unknown-none-elf --example"
5rrv32imc = "rriscv32imc"
6rthumbv7em = "run --release --target=thumbv7em-none-eabi --example"
7rtv7em = "rthumbv7em"
Alistair Francis6acae062019-09-25 11:33:51 -07008
Woyten860e0bc2020-01-29 21:17:14 +01009# Deny warnings on all architectures. build.rustflags cannot be used here as the lower section would override its effect.
10[target.'cfg(all())']
11rustflags = ["-D", "warnings"]
Woyten8bedbd72019-12-17 17:08:29 +010012
Woyten860e0bc2020-01-29 21:17:14 +010013# Common settings for all embedded targets
14[target.'cfg(any(target_arch = "arm", target_arch = "riscv32"))']
Alistair Francis82feaa22020-01-20 19:06:33 -080015rustflags = [
Woyten860e0bc2020-01-29 21:17:14 +010016 "-C", "relocation-model=static",
17 "-C", "link-arg=-Tlayout.ld",
Alistair Francis82feaa22020-01-20 19:06:33 -080018]
Alistair Franciscb3d5b82020-03-10 13:43:48 -070019runner = "./tools/flash.sh"