From 985446a7040dc39a8bf521904d5c33cf003730fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20S=C3=A6ther?= Date: Wed, 23 Jan 2019 14:13:03 +0100 Subject: [PATCH] kconfig: Removed prompt for TEXT_SECTION_OFFSET when MCUboot is used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When this syntax is used for the type definition: hex "TEXT section offset" Kconfig expect the user to enter the value for TEXT_SECTION_OFFSET and the defaut value for BOOTLOADER_MCUBOOT is not used. Changing the syntax to this: hex prompt "TEXT section offset" if !BOOTLOADER_MCUBOOT will tell Kconfig that TEXT_SECTION_OFFSET will not be set by the user when BOOTLOADER_MCUBOOT is set and then Kconfig will use the default value. Signed-off-by: Ole Sæther --- Kconfig.zephyr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index bbe168ca2b1..00190159d49 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -109,7 +109,8 @@ config FLASH_LOAD_SIZE endif config TEXT_SECTION_OFFSET - hex "TEXT section offset" + hex + prompt "TEXT section offset" if !BOOTLOADER_MCUBOOT default 0x200 if BOOTLOADER_MCUBOOT default 0 help