flash_map: add shell interface

Add shell for flash_map currently supporting listing the configurated
flash_map for a device.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-02-10 11:45:38 -05:00 committed by Kumar Gala
commit 5c6efa011a
4 changed files with 62 additions and 1 deletions

View file

@ -15,10 +15,19 @@ menuconfig FLASH_MAP
help
Enable support of flash map abstraction.
if FLASH_MAP
config FLASH_MAP_SHELL
bool "Enable flash map shell interface"
depends on SHELL
help
This enables shell commands to list and test flash maps.
config FLASH_MAP_CUSTOM
bool "Custom flash map description"
depends on FLASH_MAP
help
This option enables custom flash map description.
User must provide such a description in place of default on
if had enabled this option.
endif