Commit a0ed10b5 authored by Emanuele Di Santo's avatar Emanuele Di Santo Committed by Carles Cufí
Browse files

zephyr: kconfig: set TEXT_SECTION_OFFSET to zero

Ensure that the offset in .text is zero.
This is necessary to ensure that MCUBoot is linked at
the beginning of the boot partition, as intended.

Signed-off-by: default avatarEmanuele Di Santo <emdi@nordicsemi.no>
parent a32f1af3
Loading
Loading
Loading
Loading
+12
Changes for boot/zephyr/Kconfig: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -13,6 +13,18 @@ config MCUBOOT
	bool
	select MPU_ALLOW_FLASH_WRITE if ARM_MPU

if BOARD_HAS_NRF5_BOOTLOADER

# When compiling MCUBoot, the image will be linked to the boot partition.
# Override .text offset to make sure it is set to zero.
# This is necessary when other bootloaders set a different default for
# application images which are not bootloaders.

config TEXT_SECTION_OFFSET
	default 0x00

endif # BOARD_HAS_NRF5_BOOTLOADER

config BOOT_USE_MBEDTLS
	bool
	# Hidden option