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-25 20:53:08 +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",
|
2024-11-25 20:53:08 +00:00
|
|
|
"/home/yannik/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-13.2.0_20230928/xtensa-esp-elf/xtensa-esp-elf/include",
|
2024-11-15 13:24:33 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[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
|
2024-11-19 22:00:08 +00:00
|
|
|
LVGL_FONTS_DIR = { relative = true, value = "custom-fonts" }
|
2024-11-18 15:34:52 +00:00
|
|
|
|
2024-11-19 22:00:08 +00:00
|
|
|
PATH = "/home/yannik/.rustup/toolchains/esp/xtensa-esp-elf/esp-14.2.0_20240906/xtensa-esp-elf/bin:/home/yannik/.local/share/pnpm:/home/yannik/.local/share/zinit/polaris/bin:/home/yannik/.rustup/toolchains/esp/xtensa-esp-elf/esp-14.2.0_20240906/xtensa-esp-elf/bin:/home/yannik/.surrealdb:/home/yannik/.pyenv/shims:/home/yannik/.pyenv/bin:/home/yannik/.cargo/bin:/home/yannik/.local/bin:/home/yannik/bin:/usr/local/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/var/lib/snapd/snap/bin:/home/yannik/development/flutter/bin"
|
|
|
|
LIBCLANG_PATH = "/home/yannik/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-15.0.0-20221201/esp-clang/lib"
|