File tree 4 files changed +19
-2
lines changed 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ if(CONFIG_FILE_SYSTEM)
16
16
target_link_libraries_ifdef(CONFIG_FAT_FILESYSTEM_ELM FS INTERFACE ELMFAT)
17
17
target_link_libraries_ifdef(CONFIG_FILE_SYSTEM_LITTLEFS FS INTERFACE LITTLEFS)
18
18
target_link_libraries_ifdef(CONFIG_FILE_SYSTEM_NFFS FS INTERFACE NFFS)
19
+
20
+ add_partition_manager_config(pm.yml)
19
21
endif ()
20
22
21
23
add_subdirectory_ifdef(CONFIG_FCB ./fcb)
Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ endmenu
75
75
menu "NFFS Settings"
76
76
visible if FILE_SYSTEM_NFFS
77
77
78
+ # This config must be compatible with
79
+ # nrf/subsys/partition_manager/Kconfig.template.partition_size
80
+ config PM_PARTITION_SIZE_NFFS_STORAGE
81
+ hex "Flash space reserved for nffs storage partition"
82
+ default 0x6000
83
+ help
84
+ Flash space set aside for the nffs storage partition.
85
+
78
86
config FS_NFFS_FLASH_DEV_NAME
79
87
string "Flash device name to be used"
80
88
Original file line number Diff line number Diff line change 23
23
24
24
#if USE_PARTITION_MANAGER
25
25
#include <pm_config.h>
26
- #define NFFS_FLASH_AREA_STORAGE_OFFSET PM_MCUBOOT_STORAGE_ADDRESS
27
- #define NFFS_FLASH_AREA_STORAGE_SIZE PM_MCUBOOT_STORAGE_SIZE
26
+ #define NFFS_FLASH_AREA_STORAGE_OFFSET PM_NFFS_STORAGE_ADDRESS
27
+ #define NFFS_FLASH_AREA_STORAGE_SIZE PM_NFFS_STORAGE_SIZE
28
28
29
29
#else
30
30
#include <generated_dts_board.h>
Original file line number Diff line number Diff line change
1
+ # include <autoconf.h>
2
+
3
+ # ifdef CONFIG_FILE_SYSTEM_NFFS
4
+ nffs_storage :
5
+ placement : {after: [mcuboot_storage, app]}
6
+ size : CONFIG_PM_PARTITION_SIZE_NFFS_STORAGE
7
+ # endif
You can’t perform that action at this time.
0 commit comments