From c92a60b735a177056cb640b5b456894a1b891f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20=C3=98ye=20Amundsen?= Date: Thu, 17 Sep 2020 12:05:15 +0000 Subject: [PATCH] kconfig: hide option for mcuboot support if image is mcuboot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't show the option for MCUBoot bootloader support when the image being built is MCUBoot itself. Signed-off-by: Håkon Øye Amundsen --- Kconfig.zephyr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index c71f0fe0316..001c4d6ac90 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -382,10 +382,16 @@ config BOOTLOADER_SRAM_SIZE - Zephyr is a !XIP image, which implicitly assumes existence of a bootloader that loads the Zephyr !XIP image onto SRAM. +config MCUBOOT + bool + help + Hidden option used to indicate that the current image is MCUBoot + config BOOTLOADER_MCUBOOT bool "MCUboot bootloader support" select USE_DT_CODE_PARTITION imply INIT_ARCH_HW_AT_BOOT if ARCH_SUPPORTS_ARCH_HW_INIT + depends on !MCUBOOT help This option signifies that the target uses MCUboot as a bootloader, or in other words that the image is to be chain-loaded by MCUboot.