Skip to content

Commit

Permalink
fix zephyr target: corrupted build after zephyr PR #11180
Browse files Browse the repository at this point in the history
zephyrproject-rtos/zephyr#11180: Zephyr target was corrupted as
recently zephyr's device tree started adding DT_ prefix in
generated labels.

This path aligns flash name macro used.


Signed-off-by: Andrzej Puzdrowski <[email protected]>
  • Loading branch information
nvlsianpu authored and carlescufi committed Nov 14, 2018
1 parent 865777d commit f50054d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boot/zephyr/include/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) || \
Expand Down
4 changes: 2 additions & 2 deletions boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
;
}
Expand Down

0 comments on commit f50054d

Please sign in to comment.