34 lines
1.1 KiB
TOML
34 lines
1.1 KiB
TOML
|
[build]
|
||
|
target = "xtensa-esp32-espidf"
|
||
|
|
||
|
[target.xtensa-esp32-espidf]
|
||
|
linker = "ldproxy"
|
||
|
# runner = "espflash --monitor" # Select this runner for espflash v1.x.x
|
||
|
runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x
|
||
|
rustflags = [
|
||
|
# Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110
|
||
|
"--cfg",
|
||
|
"espidf_time64",
|
||
|
|
||
|
# Added the following 2 entries so lvgl will build without getting string.h file not found
|
||
|
"--sysroot",
|
||
|
"/home/ed/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-13.2.0_20230928/xtensa-esp-elf/xtensa-esp-elf/include",
|
||
|
]
|
||
|
|
||
|
[unstable]
|
||
|
build-std = ["std", "panic_abort"]
|
||
|
|
||
|
[env]
|
||
|
MCU = "esp32"
|
||
|
# Note: this variable is not used by the pio builder (`cargo build --features pio`)
|
||
|
ESP_IDF_VERSION = "v5.1.1"
|
||
|
|
||
|
# The directory that has the lvgl config files - lv_conf.h, lv_drv_conf.h
|
||
|
DEP_LV_CONFIG_PATH = { relative = true, value = "lvgl-configs" }
|
||
|
|
||
|
# Required to make lvgl build correctly otherwise get wrong file type
|
||
|
CROSS_COMPILE = "xtensa-esp32-elf"
|
||
|
|
||
|
# Directory for custom fonts (written in C) that Lvgl can use
|
||
|
LVGL_FONTS_DIR = {relative = true, value = "custom-fonts"}
|