feat: add settings mgmt and split debug transport snippets

This commit is contained in:
2026-05-11 16:19:37 +02:00
parent 3fed249430
commit 5ae098962d
15 changed files with 366 additions and 56 deletions

View File

@@ -12,13 +12,16 @@
LOG_MODULE_REGISTER(fs_mgmt, CONFIG_FS_MGMT_LOG_LEVEL);
/* Prefer external LittleFS partition when present, otherwise internal storage partition. */
#if DT_NODE_EXISTS(DT_NODELABEL(ext_flash_lfs))
/*
* Under sysbuild, Partition Manager generates PM_<name>_ID symbols.
* Without PM, we fall back to the DTS node label.
*/
#if defined(PM_littlefs_storage_ID)
#define FS_PARTITION_ID FIXED_PARTITION_ID(littlefs_storage)
#elif DT_NODE_EXISTS(DT_NODELABEL(ext_flash_lfs))
#define FS_PARTITION_ID FIXED_PARTITION_ID(ext_flash_lfs)
#elif DT_NODE_EXISTS(DT_NODELABEL(storage_partition))
#define FS_PARTITION_ID FIXED_PARTITION_ID(storage_partition)
#else
#error "No compatible LittleFS partition node label found (expected ext_flash_lfs or storage_partition)"
#error "No compatible LittleFS partition found (expected PM littlefs_storage or DTS ext_flash_lfs)"
#endif
FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(fs_storage_data);