cleanup: include/: move flash_map.h to storage/flash_map.h

move flash_map.h to storage/flash_map.h and
create a shim for backward-compatibility.

No functional changes to the headers.
A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES.

Related to #16539

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-06-25 12:05:42 -04:00
commit 83508a5677
17 changed files with 239 additions and 224 deletions

View file

@ -10,7 +10,7 @@
#include <stddef.h>
#include <sys/types.h>
#include <device.h>
#include <flash_map.h>
#include <storage/flash_map.h>
#include <flash.h>
#include <soc.h>
#include <init.h>

View file

@ -6,7 +6,7 @@
*/
#include <zephyr.h>
#include <flash_map.h>
#include <storage/flash_map.h>
#define FLASH_AREA_FOO(i, _) \
{.fa_id = i, \

View file

@ -10,7 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <flash_map.h>
#include <storage/flash_map.h>
#include <logging/log.h>
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL