Commit 881608eb authored by Ederson de Souza's avatar Ederson de Souza Committed by Jamie
Browse files

boot/zephyr: Use MCUBOOT_RAM_LOAD instead of CONFIG_BOOT_RAM_LOAD

This will encompass both CONFIG_BOOT_RAM_LOAD and
CONFIG_SINGLE_APPLICATION_SLOT_RAM_LOAD, which, at this point, should
follow the same code path - load image to RAM.

Signed-off-by: default avatarEderson de Souza <ederson.desouza@intel.com>
parent 993c2ff8
Loading
Loading
Loading
Loading
+2 −2
Changes for boot/zephyr/main.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ static void do_boot(struct boot_rsp *rsp)
     * consecutively. Manually set the stack pointer and jump into the
     * reset vector
     */
#ifdef CONFIG_BOOT_RAM_LOAD
#ifdef MCUBOOT_RAM_LOAD
    /* Get ram address for image */
    vt = (struct arm_vector_table *)(rsp->br_hdr->ih_load_addr + rsp->br_hdr->ih_hdr_size);
#else
@@ -576,7 +576,7 @@ int main(void)
        FIH_PANIC;
    }

#ifdef CONFIG_BOOT_RAM_LOAD
#ifdef MCUBOOT_RAM_LOAD
    BOOT_LOG_INF("Bootloader chainload address offset: 0x%x",
                 rsp.br_hdr->ih_load_addr);
#else