dts: Include devicetree.h instead of generated_dts_board.h
Needed for https://github.com/zephyrproject-rtos/zephyr/pull/20757, to avoid a warning-turned-error. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
1f50892096
commit
e96b6873bd
|
@ -3,7 +3,7 @@
|
|||
#ifndef __SYSFLASH_H__
|
||||
#define __SYSFLASH_H__
|
||||
|
||||
#include <generated_dts_board.h>
|
||||
#include <devicetree.h>
|
||||
#include <mcuboot_config/mcuboot_config.h>
|
||||
|
||||
#if (MCUBOOT_IMAGE_NUMBER == 1)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <nrf_cc310_bl_init.h>
|
||||
#include <nrf_cc310_bl_hash_sha256.h>
|
||||
#include <nrf_cc310_bl_ecdsa_verify_secp256r1.h>
|
||||
#include <generated_dts_board.h>
|
||||
#include <devicetree.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef nrf_cc310_bl_hash_context_sha256_t bootutil_sha256_context;
|
||||
|
|
|
@ -50,7 +50,7 @@ class Assembly():
|
|||
def find_slots(self, bootdir):
|
||||
offsets = {}
|
||||
sizes = {}
|
||||
with open(os.path.join(bootdir, 'zephyr', 'include', 'generated', 'generated_dts_board_unfixed.h'), 'r') as fd:
|
||||
with open(os.path.join(bootdir, 'zephyr', 'include', 'generated', 'devicetree_unfixed.h'), 'r') as fd:
|
||||
for line in fd:
|
||||
m = offset_re.match(line)
|
||||
if m is not None:
|
||||
|
@ -60,7 +60,7 @@ class Assembly():
|
|||
sizes[m.group(1)] = int(m.group(3), 0)
|
||||
|
||||
if not same_keys(offsets, sizes):
|
||||
raise Exception("Inconsistent data in generated_dts_board.h")
|
||||
raise Exception("Inconsistent data in devicetree.h")
|
||||
|
||||
# We care about the MCUBOOT, IMAGE_0, and IMAGE_1 partitions.
|
||||
if 'MCUBOOT' not in offsets:
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
/* This file mocks zephyr's autogenerated DT output header file */
|
||||
|
||||
#ifndef __GENERATED_DTS_BOARD_H__
|
||||
#define __GENERATED_DTS_BOARD_H__
|
||||
#ifndef __DEVICETREE_H__
|
||||
#define __DEVICETREE_H__
|
||||
|
||||
#define DT_FLASH_AREA_IMAGE_0_ID 1
|
||||
#define DT_FLASH_AREA_IMAGE_1_ID 2
|
||||
|
@ -15,4 +15,4 @@
|
|||
#define DT_FLASH_AREA_IMAGE_2_ID 4
|
||||
#define DT_FLASH_AREA_IMAGE_3_ID 5
|
||||
|
||||
#endif /*__GENERATED_DTS_BOARD_H__*/
|
||||
#endif /*__DEVICETREE_H__*/
|
Loading…
Reference in New Issue