2024-11-15 13:24:33 +00:00
|
|
|
[build]
|
|
|
|
target = "xtensa-esp32-espidf"
|
|
|
|
|
|
|
|
[target.xtensa-esp32-espidf]
|
|
|
|
linker = "ldproxy"
|
|
|
|
# runner = "espflash --monitor" # Select this runner for espflash v1.x.x
|
2024-11-18 15:34:52 +00:00
|
|
|
runner = "espflash flash --monitor --baud 921600" # Select this runner for espflash v2.x.x
|
2024-11-15 13:24:33 +00:00
|
|
|
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"}
|
2024-11-18 15:34:52 +00:00
|
|
|
|
|
|
|
PATH="/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/var/lib/snapd/snap/bin:/home/yannik/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-2021r2-patch5-8_4_0/xtensa-esp32s2-elf/bin:/home/yannik/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-2021r2-patch5-8_4_0/xtensa-esp32s3-elf/bin:/home/yannik/.rustup/toolchains/esp/xtensa-esp32-elf/esp-2021r2-patch5-8_4_0/xtensa-esp32-elf/bin:/home/yannik/.rustup/toolchains/esp/riscv32-esp-elf/esp-2021r2-patch5-8_4_0/riscv32-esp-elf/bin:"
|
|
|
|
LIBCLANG_PATH="/home/yannik/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-15.0.0-20221201/esp-clang/lib"
|