diff --git a/boot/zephyr/include/target.h b/boot/zephyr/include/target.h index 00251dfd7..03e90989f 100644 --- a/boot/zephyr/include/target.h +++ b/boot/zephyr/include/target.h @@ -33,7 +33,7 @@ /* * Sanity check the target support. */ -#if !defined(FLASH_DEV_NAME) || \ +#if !defined(DT_FLASH_DEV_NAME) || \ !defined(FLASH_ALIGN) || \ !defined(FLASH_AREA_IMAGE_0_OFFSET) || \ !defined(FLASH_AREA_IMAGE_0_SIZE) || \ diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c index 1f097a67a..d773dded9 100644 --- a/boot/zephyr/main.c +++ b/boot/zephyr/main.c @@ -108,8 +108,8 @@ void main(void) os_heap_init(); - if (!flash_device_get_binding(FLASH_DEV_NAME)) { - BOOT_LOG_ERR("Flash device %s not found", FLASH_DEV_NAME); + if (!flash_device_get_binding(DT_FLASH_DEV_NAME)) { + BOOT_LOG_ERR("Flash device %s not found", DT_FLASH_DEV_NAME); while (1) ; }