fs: Convert NFFS partition to a generic one

The NFFS partition at the end of flash is also useful for any other
file system or even the Flash Circular Buffer (FCB). Rename the
partition from 'nffs_partition' to 'storage_partition' and make it
depend on a new hidden Kconfig entry which the relevant users will
select (such as NFFS and FCB).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2018-04-19 07:55:53 -07:00 committed by Anas Nashif
commit 9968cda453
18 changed files with 57 additions and 49 deletions

View file

@ -41,13 +41,13 @@ const struct flash_area default_flash_map[] = {
.fa_size = FLASH_AREA_IMAGE_SCRATCH_SIZE,
},
#ifdef CONFIG_FILE_SYSTEM_NFFS
/* FLASH_AREA_NFFS_ */
#ifdef CONFIG_FS_FLASH_MAP_STORAGE
/* FLASH_AREA_STORAGE */
{
.fa_id = 4,
.fa_device_id = SOC_FLASH_0_ID,
.fa_off = FLASH_AREA_NFFS_OFFSET,
.fa_size = FLASH_AREA_NFFS_SIZE,
.fa_off = FLASH_AREA_STORAGE_OFFSET,
.fa_size = FLASH_AREA_STORAGE_SIZE,
},
#endif
};