diff mbox series

[isar-cip-core] kconfig: Express dependencies on SWUpdate

Message ID 1b97327d-d18a-4986-a2bb-339920671ebb@siemens.com (mailing list archive)
State New
Headers show
Series [isar-cip-core] kconfig: Express dependencies on SWUpdate | expand

Commit Message

Jan Kiszka May 17, 2024, 4:21 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

We effectively do not support encryption without SWUpdate enabled, even
if parts of it may work. So, put everything that needs SWUpdate under a
condition so that also the visualization is the menu is cleanly
indented.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 62be071f..6e3ad3ea 100644
--- a/Kconfig
+++ b/Kconfig
@@ -175,9 +175,10 @@  config IMAGE_SWUPDATE
 	bool "SWUpdate support for root partition"
 	depends on TARGET_QEMU_AMD64 || TARGET_SIMATIC_IPC227E || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM || TARGET_BBB || ( TARGET_QEMU_RISCV64 && KERNEL_6_1 ) || TARGET_HIHOPE_RZG2M
 
+if IMAGE_SWUPDATE
+
 choice
 	prompt "Update type"
-	depends on IMAGE_SWUPDATE
 
 config IMAGE_COMPLETE_SWUPDATE
 	bool "Complete Update"
@@ -190,7 +191,6 @@  endchoice
 config IMAGE_SECURE_BOOT
 	bool "Secure boot support"
 	depends on TARGET_QEMU_AMD64 || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM
-	select IMAGE_SWUPDATE
 
 config KAS_INCLUDE_SWUPDATE_SECBOOT
 	string
@@ -226,6 +226,8 @@  config KAS_INCLUDE_FULL_ENCRYPTION
 
 endif
 
+endif
+
 config IMAGE_TAR_FORMAT
 	bool "Separate artifacts for NFS boot"
 	depends on !IMAGE_SWUPDATE