sim: Fixup devicetree.h for changes to mcuboot
Fixup how we fake out devicetree.h, which is now really the flash map API for what mcuboot is using. Signed-off-by: Kumar Gala <kumar.gala@linaro.org> Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
parent
7024340b66
commit
00108fe973
|
@ -4,15 +4,17 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/* This file mocks zephyr's autogenerated DT output header file */
|
||||
/* This file mocks zephyr's flash map / DT macro */
|
||||
|
||||
#ifndef __DEVICETREE_H__
|
||||
#define __DEVICETREE_H__
|
||||
|
||||
#define DT_FLASH_AREA_IMAGE_0_ID 1
|
||||
#define DT_FLASH_AREA_IMAGE_1_ID 2
|
||||
#define DT_FLASH_AREA_IMAGE_SCRATCH_ID 3
|
||||
#define DT_FLASH_AREA_IMAGE_2_ID 4
|
||||
#define DT_FLASH_AREA_IMAGE_3_ID 5
|
||||
#define FLASH_AREA_ID(x) FLASH_AREA_ID_##x
|
||||
|
||||
#define FLASH_AREA_ID_image_0 1
|
||||
#define FLASH_AREA_ID_image_1 2
|
||||
#define FLASH_AREA_ID_image_scratch 3
|
||||
#define FLASH_AREA_ID_image_2 4
|
||||
#define FLASH_AREA_ID_image_3 5
|
||||
|
||||
#endif /*__DEVICETREE_H__*/
|
||||
|
|
Loading…
Reference in New Issue