Commit 310445b8 authored by Marti Bolivar's avatar Marti Bolivar Committed by Fabio Utzig
Browse files

zephyr: cleanup flash driver name

The flash driver name was changed upstream during the v1.11
development cycle. Remove a shim which kept the old name around in the
Zephyr port now that v1.11 is out.

Signed-off-by: default avatarMarti Bolivar <marti@opensourcefoundries.com>
parent 5a18102c
Loading
Loading
Loading
Loading
+1 −11
Changes for boot/zephyr/include/target.h: 1 added line, 11 removed lines.
Original line number Diff line number Diff line
@@ -30,20 +30,10 @@
#endif
#endif /* !defined(MCUBOOT_TARGET_CONFIG) */

/*
 * Upstream Zephyr changed the name from FLASH_DRIVER_NAME to
 * FLASH_DEV_NAME.  For now, let's just convert the Zephyr name to the
 * one expected by MCUboot. This can be cleaned up after the upstream
 * Zephyr tree has been released and settled down.
 */
#if !defined(FLASH_DRIVER_NAME) && defined(FLASH_DEV_NAME)
#define FLASH_DRIVER_NAME FLASH_DEV_NAME
#endif

/*
 * Sanity check the target support.
 */
#if !defined(FLASH_DRIVER_NAME) || \
#if !defined(FLASH_DEV_NAME) || \
    !defined(FLASH_ALIGN) ||                  \
    !defined(FLASH_AREA_IMAGE_0_OFFSET) || \
    !defined(FLASH_AREA_IMAGE_0_SIZE) || \
+2 −2
Changes for boot/zephyr/main.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -99,9 +99,9 @@ void main(void)

    os_heap_init();

    boot_flash_device = device_get_binding(FLASH_DRIVER_NAME);
    boot_flash_device = device_get_binding(FLASH_DEV_NAME);
    if (!boot_flash_device) {
        BOOT_LOG_ERR("Flash device not found");
        BOOT_LOG_ERR("Flash device %s not found", FLASH_DEV_NAME);
        while (1)
            ;
    }
+1 −1
Changes for boot/zephyr/targets/arduino_101.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
 * In this configuration MCUboot will live at 0x40010000
 */

#define FLASH_DRIVER_NAME		CONFIG_SOC_FLASH_QMSI_DEV_NAME
#define FLASH_DEV_NAME			CONFIG_SOC_FLASH_QMSI_DEV_NAME
#define FLASH_ALIGN			4
#define FLASH_AREA_IMAGE_0_OFFSET	0x40020000
#define FLASH_AREA_IMAGE_0_SIZE		0x10000