Skip to content

Commit

Permalink
[RSDK-9855] Repair project template cargo config and remove cruft (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
acmorrow authored Jan 29, 2025
1 parent 4d96a3f commit a0443bd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 61 deletions.
13 changes: 3 additions & 10 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
[target.xtensa-esp32-espidf]
linker = "ldproxy"
runner = "espflash --monitor"
rustflags = ["-C", "default-linker-libraries", "-Clink-args=-Wl,-Map=./esp-build.map", "--cfg", "espidf_time32"]

rustflags = ["--cfg", "espidf_time32"]

[target.xtensa-esp32s2-espidf]
linker = "ldproxy"
runner = "espflash --monitor"
rustflags = ["-C", "default-linker-libraries", "--cfg", "espidf_time32"]
rustflags = ["--cfg", "espidf_time32"]

[target.xtensa-esp32s3-espidf]
linker = "ldproxy"
runner = "espflash --monitor"
rustflags = ["-C", "default-linker-libraries", "--cfg", "espidf_time32"]

[target.riscv32imc-esp-espidf]
linker = "ldproxy"
runner = "espflash --monitor"
rustflags = ["-C", "default-linker-libraries", "--cfg", "espidf_time32"]

rustflags = ["--cfg", "espidf_time32"]

[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }
Expand Down
20 changes: 0 additions & 20 deletions micro-rdk-server/.cargo/config.toml

This file was deleted.

19 changes: 0 additions & 19 deletions micro-rdk/.cargo/config.toml

This file was deleted.

15 changes: 3 additions & 12 deletions templates/project/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,21 @@
{% if mcu != "esp32" %}#{% endif %}target = "xtensa-esp32-espidf"
{% if mcu != "esp32s2" %}#{% endif %}target = "xtensa-esp32s2-espidf"
{% if mcu != "esp32s3" %}#{% endif %}target = "xtensa-esp32s3-espidf"
{% if mcu != "esp32c3" %}#{% endif %}target = "riscv32imc-esp-espidf"

[target.xtensa-esp32-espidf]
linker = "ldproxy"
runner = "espflash --monitor"
rustflags = ["--cfg", "espidf_time32"]

[target.xtensa-esp32s2-espidf]
linker = "ldproxy"
runner = "espflash --monitor"
rustflags = ["--cfg", "espidf_time32"]

[target.xtensa-esp32s3-espidf]
linker = "ldproxy"
runner = "espflash --monitor"

[target.riscv32imc-esp-espidf]
linker = "ldproxy"
runner = "espflash --monitor"

# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
# See also https://github.com/ivmarkov/embuild/issues/16 [build]

rustflags = ["-C", "default-linker-libraries", "--cfg", "espidf_time32"]
rustflags = ["--cfg", "espidf_time32"]

[unstable]

build-std = ["std", "panic_abort"]
#build-std-features = ["panic_immediate_abort"] # Required for older ESP-IDF versions without a realpath implementation

0 comments on commit a0443bd

Please sign in to comment.