zephyr/drivers/disk/Kconfig.flash
Tomasz Moń c011646081 drivers: flashdisk: check partition constraints
Fail with error if any of flashdisk partition assumptions are not met:
  * uniform page size through the whole partition
  * flashdisk starts at page boundary
  * flashdisk ends at page boundary

Read-only flashdisks are not subject to above conditions because the
cache buffer is not used for read-only flashdisks.

The checks can be disabled via Kconfig option to save code space.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2022-11-14 16:37:04 +01:00

25 lines
556 B
Plaintext

# Copyright (c) 2016 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config DISK_DRIVER_FLASH
bool "Flash"
select FLASH
select FLASH_MAP
help
Flash device is used for the file system.
if DISK_DRIVER_FLASH
config FLASHDISK_VERIFY_PAGE_LAYOUT
bool "Verify flashdisk partition layout"
default y
help
Enable runtime zephyr,flash-disk partition page layout constraints
verification. Disable to reduce code size.
module = FLASHDISK
module-str = flashdisk
source "subsys/logging/Kconfig.template.log_config"
endif # DISK_DRIVER_FLASH