feat: add settings mgmt and split debug transport snippets
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user