armcm_link: Rename CONFIG_FLASH_START to CONFIG_FLASH_APPLICATION_ADDRESS
Rename the build symbol name for better clarity on what it represents. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
//
|
||||
// This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
#include "autoconf.h" // CONFIG_FLASH_START
|
||||
#include "autoconf.h" // CONFIG_FLASH_APPLICATION_ADDRESS
|
||||
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
||||
OUTPUT_ARCH(arm)
|
||||
|
||||
MEMORY
|
||||
{
|
||||
rom (rx) : ORIGIN = CONFIG_FLASH_START , LENGTH = CONFIG_FLASH_SIZE
|
||||
rom (rx) : ORIGIN = CONFIG_FLASH_APPLICATION_ADDRESS , LENGTH = CONFIG_FLASH_SIZE
|
||||
ram (rwx) : ORIGIN = CONFIG_RAM_START , LENGTH = CONFIG_RAM_SIZE
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
#include "armcm_reset.h" // try_request_canboot
|
||||
#include "autoconf.h" // CONFIG_FLASH_START
|
||||
#include "autoconf.h" // CONFIG_FLASH_APPLICATION_ADDRESS
|
||||
#include "board/internal.h" // NVIC_SystemReset
|
||||
#include "board/irq.h" // irq_disable
|
||||
#include "command.h" // DECL_COMMAND_FLAGS
|
||||
@@ -17,7 +17,7 @@
|
||||
static void
|
||||
canboot_reset(uint64_t req_signature)
|
||||
{
|
||||
if (CONFIG_FLASH_START == CONFIG_FLASH_BOOT_ADDRESS)
|
||||
if (CONFIG_FLASH_APPLICATION_ADDRESS == CONFIG_FLASH_BOOT_ADDRESS)
|
||||
// No bootloader
|
||||
return;
|
||||
uint32_t *bl_vectors = (uint32_t *)CONFIG_FLASH_BOOT_ADDRESS;
|
||||
|
||||
Reference in New Issue
Block a user