93 lines
3 KiB
TOML
93 lines
3 KiB
TOML
#[target.riscv32imc-unknown-none-elf]
|
|
#runner = "espflash flash --monitor"
|
|
#
|
|
#[build]
|
|
#rustflags = [
|
|
# "-C", "link-arg=-Tlinkall.x",
|
|
# # Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
|
|
# # NOTE: May negatively impact performance of produced code
|
|
# "-C", "force-frame-pointers",
|
|
#]
|
|
#
|
|
#target = "riscv32imc-unknown-none-elf"
|
|
#
|
|
#[unstable]
|
|
#build-std = ["core"]
|
|
|
|
|
|
[build]
|
|
# Build on host
|
|
#target = "x86_64-unknown-linux-gnu"
|
|
# Build on target firmware with baremetal
|
|
#target = "xtensa-esp32-none-elf"
|
|
#target = "xtensa-esp32s2-none-elf"
|
|
#target = "xtensa-esp32s3-none-elf"
|
|
target = "riscv32imc-unknown-none-elf"
|
|
# Build on target firmware with ESP IDF
|
|
#target = "xtensa-esp32-espidf"
|
|
#target = "xtensa-esp32s2-espidf"
|
|
#target = "xtensa-esp32s3-espidf"
|
|
#target = "riscv32imc-esp-espidf"
|
|
|
|
[target.xtensa-esp32-none-elf]
|
|
runner = "espflash flash --monitor --baud 921600"
|
|
|
|
rustflags = [
|
|
"-C", "link-arg=-Tlinkall.x",
|
|
"-C", "link-arg=-nostartfiles",
|
|
]
|
|
|
|
[target.riscv32imc-unknown-none-elf]
|
|
runner = "espflash flash --monitor --baud 921600"
|
|
|
|
rustflags = [
|
|
"-C", "link-arg=-Tlinkall.x",
|
|
|
|
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
|
|
# NOTE: May negatively impact performance of produced code
|
|
"-C", "force-frame-pointers",
|
|
]
|
|
|
|
[target.xtensa-esp32s2-none-elf]
|
|
runner = "espflash flash --monitor --baud 921600"
|
|
|
|
rustflags = [
|
|
#"-C", "linker=rust-lld",
|
|
"-C", "link-arg=-Tlinkall.x",
|
|
]
|
|
|
|
[target.xtensa-esp32s3-none-elf]
|
|
runner = "espflash flash --monitor --baud 921600"
|
|
|
|
rustflags = [
|
|
"-C", "link-arg=-Tlinkall.x",
|
|
"-C", "link-arg=-nostartfiles",
|
|
]
|
|
|
|
[target.'cfg(target_os = "espidf")']
|
|
linker = "ldproxy"
|
|
runner = "espflash flash --monitor"
|
|
rustflags = [ "--cfg", "espidf_time64"]
|
|
|
|
[unstable]
|
|
# Enable this when building for baremetal
|
|
build-std = ["core", "alloc"]
|
|
# Enable this when building on the host machine or for ESP-IDF
|
|
#build-std = ["std", "panic_abort"]
|
|
|
|
[alias]
|
|
xtask = "run --manifest-path ./xtask/Cargo.toml --"
|
|
|
|
|
|
# Alias' for quickly building for different chips or running examples
|
|
# By default we enable
|
|
# - `default` HAL features to set up basic chip specific settings
|
|
esp32 = "run --release --features esp32 --target xtensa-esp32-none-elf --features esp-hal/default"
|
|
esp32s2 = "run --release --features esp32s2 --target xtensa-esp32s2-none-elf --features esp-hal/default"
|
|
esp32s3 = "run --release --features esp32s3 --target xtensa-esp32s3-none-elf --features esp-hal/default"
|
|
esp32c3 = "run --release --features esp32c3 --target riscv32imc-unknown-none-elf --features esp-hal/default"
|
|
|
|
besp32 = "build --release --features esp32 --target xtensa-esp32-none-elf --features esp-hal/default"
|
|
besp32s2 = "build --release --features esp32s2 --target xtensa-esp32s2-none-elf --features esp-hal/default"
|
|
besp32s3 = "build --release --features esp32s3 --target xtensa-esp32s3-none-elf --features esp-hal/default"
|
|
besp32c3 = "build --release --features esp32c3 --target riscv32imc-unknown-none-elf --features esp-hal/default"
|