From c7cae59f1e4829b610e2771519ce76632728ef82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Szczygie=C5=82?= Date: Fri, 30 May 2025 13:05:40 +0200 Subject: [PATCH] Some exemplary configs to pretent minimal configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adam Szczygieł --- boot/zephyr/Kconfig | 1 + boot/zephyr/Kconfig.minimal | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 boot/zephyr/Kconfig.minimal diff --git a/boot/zephyr/Kconfig b/boot/zephyr/Kconfig index 644c1b83c..a7e71fe63 100644 --- a/boot/zephyr/Kconfig +++ b/boot/zephyr/Kconfig @@ -1203,4 +1203,5 @@ config MCUBOOT_VERIFY_IMG_ADDRESS also be useful when BOOT_DIRECT_XIP is enabled, to ensure that the image linked at the correct address is loaded. +rsource "Kconfig.minimal" source "Kconfig.zephyr" diff --git a/boot/zephyr/Kconfig.minimal b/boot/zephyr/Kconfig.minimal new file mode 100644 index 000000000..6e3711c85 --- /dev/null +++ b/boot/zephyr/Kconfig.minimal @@ -0,0 +1,35 @@ +# Copyright (c) 2025 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: Apache-2.0 +# + +if MCUBOOT + +config MCUBOOT_MINIMAL + bool "Configuration to achieve minimal size of MCUboot" + depends on MCUBOOT + default n + help + Official minimal reference configuration for the most use cases. + +if MCUBOOT_MINIMAL + +choice MCUBOOT_MINIMAL_VARIANT + bool "Variant of MCUboot minimal configuration" + default MCUBOOT_MINIMAL_FIRST + +config MCUBOOT_MINIMAL_FIRST + bool "TODO - first variant" + help + TODO - first variant + +config MCUBOOT_MINIMAL_SECOND + bool "TODO - second variant" + help + TODO - second variant + +endchoice + +endif + +endif