From: "alexander.heinisch via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Alexander Heinisch <alexander.heinisch@siemens.com>
Subject: [PATCH 1/6] isar-installer: Moved installer related Kconfig to separate file.
Date: Mon, 22 Sep 2025 19:04:40 +0200 [thread overview]
Message-ID: <20250922170445.1393839-2-alexander.heinisch@siemens.com> (raw)
In-Reply-To: <20250922170445.1393839-1-alexander.heinisch@siemens.com>
From: Alexander Heinisch <alexander.heinisch@siemens.com>
Signed-off-by: Alexander Heinisch <alexander.heinisch@siemens.com>
---
kas/image/Kconfig | 73 +--------------------------------------
kas/installer/Kconfig | 79 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+), 72 deletions(-)
create mode 100644 kas/installer/Kconfig
diff --git a/kas/image/Kconfig b/kas/image/Kconfig
index 8193efc5..1ebd056e 100644
--- a/kas/image/Kconfig
+++ b/kas/image/Kconfig
@@ -38,78 +38,7 @@ config IMAGE_INSTALLER
endchoice
if IMAGE_INSTALLER
-
-choice
- prompt "Image to install"
- default INSTALL_IMAGE_BASE
-
-config INSTALL_IMAGE_BASE
- bool "Base image"
- help
- Embed the basic Isar image into the installer image.
-
-config INSTALL_IMAGE_CI
- bool "CI image"
- help
- Embed the Isar CI image into the installer image.
-
-config INSTALL_IMAGE_DEBUG
- bool "Debug image"
- help
- Embed the Isar debug image into the installer image.
-
-config INSTALL_EMPTY
- bool "No installer payload"
- help
- This will generate a installer image without payload. The user of
- that image needs then to copy a image to the partition labeled
- INSTALLDATA.
-
-endchoice
-
-config INSTALLER_TARGET_IMAGE
- string
- default "isar-image-base" if INSTALL_IMAGE_BASE
- default "isar-image-ci" if INSTALL_IMAGE_CI
- default "isar-image-debug" if INSTALL_IMAGE_DEBUG
-
-config INSTALL_UNATTENDED
- bool "Run installer unattended"
-
-if INSTALL_UNATTENDED
-
-config INSTALLER_UNATTENDED
- string
- default "1" if INSTALL_UNATTENDED
- default ""
-
-config INSTALLER_TARGET_DEVICE
- string "Target device to deploy"
- default "/dev/sda"
- help
- Deploy image to this target device. Accepts comma/colon-separated multiple devices; installs on the first available.
- Leave this empty to get prompted during installation
- Examples: /dev/sda, /dev/nvme0n1, /dev/sda:/dev/nvme0n1
-
-choice
- prompt "Overwrite handling"
- default OPT_INSTALLER_TARGET_OVERWRITE
-
-config OPT_INSTALLER_TARGET_OVERWRITE
- bool "Overwrite if target is not empty"
-
-config OPT_INSTALLER_TARGET_ABORT
- bool "Abort if target is not empty"
-
-endchoice
-
-config INSTALLER_TARGET_OVERWRITE
- string
- default "OVERWRITE" if OPT_INSTALLER_TARGET_OVERWRITE
- default "ABORT" if OPT_INSTALLER_TARGET_ABORT
-
-endif
-
+source "kas/installer/Kconfig"
endif
config KAS_INCLUDE_IMAGE
diff --git a/kas/installer/Kconfig b/kas/installer/Kconfig
new file mode 100644
index 00000000..83380ee2
--- /dev/null
+++ b/kas/installer/Kconfig
@@ -0,0 +1,79 @@
+# This software is a part of ISAR.
+# Copyright (C) Siemens AG, 2025
+#
+# SPDX-License-Identifier: MIT
+
+menu "Installer config"
+
+choice
+ prompt "Image to install"
+ default INSTALL_IMAGE_BASE
+
+config INSTALL_IMAGE_BASE
+ bool "Base image"
+ help
+ Embed the basic Isar image into the installer image.
+
+config INSTALL_IMAGE_CI
+ bool "CI image"
+ help
+ Embed the Isar CI image into the installer image.
+
+config INSTALL_IMAGE_DEBUG
+ bool "Debug image"
+ help
+ Embed the Isar debug image into the installer image.
+
+config INSTALL_EMPTY
+ bool "No installer payload"
+ help
+ This will generate a installer image without payload. The user of
+ that image needs then to copy a image to the partition labeled
+ INSTALLDATA.
+
+endchoice
+
+config INSTALLER_TARGET_IMAGE
+ string
+ default "isar-image-base" if INSTALL_IMAGE_BASE
+ default "isar-image-ci" if INSTALL_IMAGE_CI
+ default "isar-image-debug" if INSTALL_IMAGE_DEBUG
+
+config INSTALL_UNATTENDED
+ bool "Run installer unattended"
+
+if INSTALL_UNATTENDED
+
+config INSTALLER_UNATTENDED
+ string
+ default "1" if INSTALL_UNATTENDED
+ default ""
+
+config INSTALLER_TARGET_DEVICE
+ string "Target device to deploy"
+ default "/dev/sda"
+ help
+ Deploy image to this target device. Accepts comma/colon-separated multiple devices; installs on the first available.
+ Leave this empty to get prompted during installation
+ Examples: /dev/sda, /dev/nvme0n1, /dev/sda:/dev/nvme0n1
+
+choice
+ prompt "Overwrite handling"
+ default OPT_INSTALLER_TARGET_OVERWRITE
+
+config OPT_INSTALLER_TARGET_OVERWRITE
+ bool "Overwrite if target is not empty"
+
+config OPT_INSTALLER_TARGET_ABORT
+ bool "Abort if target is not empty"
+
+endchoice
+
+config INSTALLER_TARGET_OVERWRITE
+ string
+ default "OVERWRITE" if OPT_INSTALLER_TARGET_OVERWRITE
+ default "ABORT" if OPT_INSTALLER_TARGET_ABORT
+
+endif
+
+endmenu
--
2.39.5
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250922170445.1393839-2-alexander.heinisch%40siemens.com.
next prev parent reply other threads:[~2025-09-22 17:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-22 17:04 [PATCH 0/6] Add target bootstrapper framework alexander.heinisch via isar-users
2025-09-22 17:04 ` alexander.heinisch via isar-users [this message]
2025-09-22 17:04 ` [PATCH 2/6] isar-installer: Added " alexander.heinisch via isar-users
2025-09-22 17:04 ` [PATCH 3/6] isar-installer: Use target-bootstrapper-service in favour of deploy-image-service alexander.heinisch via isar-users
2025-09-22 17:04 ` [PATCH 4/6] isar-installer: Removed deploy-image-service alexander.heinisch via isar-users
2025-09-22 17:04 ` [PATCH 5/6] isar-installer: Fixing race between ttys in unattended mode alexander.heinisch via isar-users
2025-09-22 17:04 ` [PATCH 6/6] isar-installer: Added example target bootstrapper task to collect device information alexander.heinisch via isar-users
2025-10-14 14:59 ` [PATCH 0/6] Add target bootstrapper framework Zhihang Wei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250922170445.1393839-2-alexander.heinisch@siemens.com \
--to=isar-users@googlegroups.com \
--cc=alexander.heinisch@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox