From db82126faa6d9b84bc078a4a60fb9850bf4d4814 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 8 Jul 2023 12:20:58 +0200 Subject: [PATCH] nrf91/common: add configuration checks for linker script --- boards/arm/nrf91/common/scripts/flash_app.ld | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/boards/arm/nrf91/common/scripts/flash_app.ld b/boards/arm/nrf91/common/scripts/flash_app.ld index e8ca68d6cb..38eceec344 100644 --- a/boards/arm/nrf91/common/scripts/flash_app.ld +++ b/boards/arm/nrf91/common/scripts/flash_app.ld @@ -50,6 +50,23 @@ #define FLASH_CPUAPP_START_ADDR (0x00000000) #define RAM_CPUAPP_START_ADDR (CONFIG_RAM_START + NRF91_SHMEM_SIZE) +/* Verify */ + +#ifdef CONFIG_NRF91_APP_FORMAT_MCUBOOT +# ifndef CONFIG_NRF91_PROGMEM_OTA_PARTITION +# error missing CONFIG_NRF91_PROGMEM_OTA_PARTITION +# endif +# ifndef CONFIG_NRF91_OTA_PRIMARY_SLOT_OFFSET +# error missing CONFIG_NRF91_OTA_PRIMARY_SLOT_OFFSET +# endif +# ifndef CONFIG_NRF91_MCUBOOT_HEADER_SIZE +# error missing CONFIG_NRF91_MCUBOOT_HEADER_SIZE +# endif +# ifndef CONFIG_NRF91_OTA_SLOT_SIZE +# error missing CONFIG_NRF91_OTA_SLOT_SIZE +# endif +#endif + /* Image format configuration */ #ifdef CONFIG_NRF91_APP_FORMAT_MCUBOOT