mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
- Add cull_announce_table() with OOM-safe min_element fallback, matching pattern from cull_path_table() and cull_known_destinations() - Call cull immediately after every announce/path/known-destination insert - Fix use-after-free: guard announce_entry access with announce_erased flag - remove_path() now also deletes cached packet files - Path table insert now removes existing entry first to prevent duplicates - Rename env:mcu -> env:embedded; add env:native_debug and heltec_wifi_lora_32_V4 - Make TLSF buffer size configurable via RNS_TLSF_BUFFER_SIZE macro - Refactor log macros to unified RNS::log() path; add doHeadLog with callback support - Prefix all bad_alloc error messages with "bad_alloc -" for easier grepping
200 lines
4.0 KiB
INI
200 lines
4.0 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[platformio]
|
|
default_envs = native17
|
|
|
|
[env]
|
|
monitor_speed = 115200
|
|
build_unflags =
|
|
-fno-exceptions
|
|
build_flags =
|
|
-fexceptions
|
|
-Wall
|
|
;-Wextra
|
|
-Wno-missing-field-initializers
|
|
-Wno-format
|
|
-Wno-unused-parameter
|
|
-Isrc
|
|
-DLIBRARY_TEST
|
|
;-DNDEBUG
|
|
-DRNS_USE_FS
|
|
-DRNS_PERSIST_PATHS
|
|
lib_deps =
|
|
ArduinoJson@^7.4.2
|
|
MsgPack@^0.4.2
|
|
https://github.com/attermann/Crypto.git
|
|
test_framework = unity
|
|
; Following property enables Unity integration testing
|
|
test_build_src = true
|
|
|
|
[env:native]
|
|
platform = native
|
|
build_flags =
|
|
${env.build_flags}
|
|
-std=gnu++11
|
|
-DNATIVE
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
lib_compat_mode = off
|
|
|
|
[env:native17]
|
|
platform = native
|
|
build_unflags =
|
|
${env.build_unflags}
|
|
-std=gnu++11
|
|
build_flags =
|
|
${env.build_flags}
|
|
-std=gnu++17
|
|
-DNATIVE
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
lib_compat_mode = off
|
|
|
|
[env:native20]
|
|
platform = native
|
|
build_unflags =
|
|
${env.build_unflags}
|
|
-std=gnu++11
|
|
build_flags =
|
|
${env.build_flags}
|
|
-std=gnu++20
|
|
-DNATIVE
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
lib_compat_mode = off
|
|
|
|
[env:native_debug]
|
|
platform = native
|
|
build_flags =
|
|
${env.build_flags}
|
|
-std=gnu++11
|
|
-DNATIVE
|
|
; CBA TEST
|
|
;-fsanitize=address
|
|
-fno-omit-frame-pointer
|
|
-g
|
|
;-O1
|
|
-O0
|
|
;-DRNS_MEM_LOG
|
|
-DRNS_USE_ALLOCATOR=1
|
|
-DRNS_USE_TLSF=1
|
|
-DTLSF_DEBUG=1
|
|
;-DRNS_TLSF_BUFFER_SIZE=81920
|
|
;-DRNS_TLSF_BUFFER_SIZE=102400
|
|
-DRNS_TLSF_BUFFER_SIZE=204800
|
|
;-DRNS_TLSF_BUFFER_SIZE=307200
|
|
;-DRNS_TLSF_BUFFER_SIZE=409600
|
|
;-DRNS_TLSF_BUFFER_SIZE=512000
|
|
;-DRNS_TLSF_BUFFER_SIZE=614400
|
|
;-DRNS_TLSF_BUFFER_SIZE=1024000
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
lib_compat_mode = off
|
|
|
|
[env:embedded]
|
|
framework = arduino
|
|
upload_speed = 460800
|
|
build_unflags =
|
|
${env.build_unflags}
|
|
;-std=gnu++11
|
|
build_flags =
|
|
${env.build_flags}
|
|
;-std=gnu++17
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
|
|
[env:ttgo-lora32-v21]
|
|
extends = env:embedded
|
|
platform = espressif32
|
|
board = ttgo-lora32-v21
|
|
board_build.partitions = no_ota.csv
|
|
build_unflags =
|
|
${env:embedded.build_unflags}
|
|
-std=gnu++11
|
|
build_flags =
|
|
${env:embedded.build_flags}
|
|
-std=gnu++17
|
|
-DBOARD_ESP32
|
|
-DMSGPACK_USE_BOOST=OFF
|
|
lib_deps =
|
|
${env:embedded.lib_deps}
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
[env:ttgo-t-beam]
|
|
extends = env:embedded
|
|
platform = espressif32
|
|
board = ttgo-t-beam
|
|
board_build.partitions = no_ota.csv
|
|
;board_build.partitions = huge_app.csv
|
|
build_flags =
|
|
${env:embedded.build_flags}
|
|
-DBOARD_ESP32
|
|
-DMSGPACK_USE_BOOST=OFF
|
|
lib_deps =
|
|
${env:embedded.lib_deps}
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
[env:lilygo_tbeam_supreme]
|
|
extends = env:embedded
|
|
platform = espressif32
|
|
board = t-beams3-supreme
|
|
board_build.partitions = no_ota.csv
|
|
;board_build.partitions = huge_app.csv
|
|
build_flags =
|
|
${env:embedded.build_flags}
|
|
-DBOARD_ESP32
|
|
-DMSGPACK_USE_BOOST=OFF
|
|
lib_deps =
|
|
${env:embedded.lib_deps}
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
; also Heltec Wireless Tracker
|
|
[env:heltec_wifi_lora_32_V4]
|
|
extends = env:embedded
|
|
platform = espressif32
|
|
board = esp32-s3-devkitc-1
|
|
board_build.partitions = no_ota.csv
|
|
;board_build.partitions = huge_app.csv
|
|
build_flags =
|
|
${env.build_flags}
|
|
-DBOARD_ESP32
|
|
-DMSGPACK_USE_BOOST=OFF
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
lib_deps =
|
|
${env:embedded.lib_deps}
|
|
monitor_filters = esp32_exception_decoder
|
|
upload_speed = 921600
|
|
|
|
[env:wiscore_rak4631]
|
|
extends = env:embedded
|
|
platform = nordicnrf52
|
|
board = rak4630
|
|
board_build.partitions = no_ota.csv
|
|
build_src_filter = ${env:embedded.build_src_filter}+<../variants/rak4630>
|
|
build_flags =
|
|
${env:embedded.build_flags}
|
|
-I variants/rak4630
|
|
-fexceptions
|
|
-DBOARD_NRF52
|
|
-DRNS_USE_ALLOCATOR=1
|
|
-DRNS_USE_TLSF=1
|
|
-DMSGPACK_USE_BOOST=OFF
|
|
lib_deps =
|
|
${env:embedded.lib_deps}
|
|
adafruit/Adafruit TinyUSB Library
|
|
|
|
; Overrides for specific tests (not working!)
|
|
[test_env:test_objects]
|
|
build_flags =
|
|
${env:embedded.build_flags}
|
|
;-DTEST_OBJECT_DATA=1
|
|
-DTEST_OBJECT_IMPL=1
|