public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 09/13] kas: Add image type selection
Date: Fri, 15 Sep 2023 08:44:22 +0200	[thread overview]
Message-ID: <20230915064426.27676-10-ubely@ilbers.de> (raw)
In-Reply-To: <20230915064426.27676-1-ubely@ilbers.de>

This allows to choose between base and debug Isar image.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 Kconfig                  | 25 ++++++++++++++++++++++++-
 kas/isar-image-base.yml  |  7 +++++++
 kas/isar-image-debug.yml |  7 +++++++
 kas/isar.yml             |  3 ---
 4 files changed, 38 insertions(+), 4 deletions(-)
 create mode 100644 kas/isar-image-base.yml
 create mode 100644 kas/isar-image-debug.yml

diff --git a/Kconfig b/Kconfig
index 4c2e2339..66c6c44a 100644
--- a/Kconfig
+++ b/Kconfig
@@ -1,8 +1,31 @@
 mainmenu "Isar configuration"
 
+menu "Image type selection"
+
+choice
+	prompt "Image type selection"
+	default IMAGE_BASE
+
+config IMAGE_BASE
+	bool "Base image"
+	help
+	  This is the basic Isar image with bare minimum of preinstalled packages.
+	  It's technically close do the debootstrapped system with packages
+	  required to boot up the system.
+
+config IMAGE_DEBUG
+	bool "Debug image"
+	help
+	  This image includes some tools preinstalled useful for debug.
+
+endchoice
+
 config KAS_INCLUDE_MAIN
 	string
-	default "kas/isar.yml"
+	default "kas/isar-image-base.yml" if IMAGE_BASE
+	default "kas/isar-image-debug.yml" if IMAGE_DEBUG
+
+endmenu
 
 config KAS_BUILD_SYSTEM
 	string
diff --git a/kas/isar-image-base.yml b/kas/isar-image-base.yml
new file mode 100644
index 00000000..bfe3860b
--- /dev/null
+++ b/kas/isar-image-base.yml
@@ -0,0 +1,7 @@
+header:
+  version: 14
+  includes:
+   - isar.yml
+
+target:
+- isar-image-base
diff --git a/kas/isar-image-debug.yml b/kas/isar-image-debug.yml
new file mode 100644
index 00000000..f8f6977a
--- /dev/null
+++ b/kas/isar-image-debug.yml
@@ -0,0 +1,7 @@
+header:
+  version: 14
+  includes:
+   - isar.yml
+
+target:
+- isar-image-debug
diff --git a/kas/isar.yml b/kas/isar.yml
index 500bf1d4..47cbc290 100644
--- a/kas/isar.yml
+++ b/kas/isar.yml
@@ -3,9 +3,6 @@ header:
 
 build_system: isar
 
-target:
-- isar-image-base
-
 repos:
   isar:
     layers:
-- 
2.20.1


  parent reply	other threads:[~2023-09-15  6:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-15  6:44 [PATCH 00/13] Support building Isar using kas Uladzimir Bely
2023-09-15  6:44 ` [PATCH 01/13] kas: Add initial Kconfig support Uladzimir Bely
2023-09-15  6:44 ` [PATCH 02/13] kas: Add a local copy of kas-container script Uladzimir Bely
2023-09-15  6:44 ` [PATCH 03/13] kas: Add dependencies between machine and distro configuration Uladzimir Bely
2023-09-16  9:34   ` Jan Kiszka
2023-09-19  6:30     ` Uladzimir Bely
2023-09-19  6:43       ` Jan Kiszka
2023-09-15  6:44 ` [PATCH 04/13] kas: Add mirror selection Uladzimir Bely
2023-09-16  9:34   ` Jan Kiszka
2023-09-19  6:31     ` Uladzimir Bely
2023-09-15  6:44 ` [PATCH 05/13] kas: Add packages selection Uladzimir Bely
2023-09-16  9:37   ` Jan Kiszka
2023-09-16 16:10     ` Jan Kiszka
2023-09-15  6:44 ` [PATCH 06/13] kas: Add COMPAT_ARCH support Uladzimir Bely
2023-09-15  6:44 ` [PATCH 07/13] kas: Add cross compilation mode selection support Uladzimir Bely
2023-09-15  6:44 ` [PATCH 08/13] kas: Add ccache option Uladzimir Bely
2023-09-15  6:44 ` Uladzimir Bely [this message]
2023-09-16  9:57   ` [PATCH 09/13] kas: Add image type selection Jan Kiszka
2023-09-19  6:32     ` Uladzimir Bely
2023-09-15  6:44 ` [PATCH 10/13] kas: Add IMAGE_FSTYPES selection Uladzimir Bely
2023-09-15  6:44 ` [PATCH 11/13] kas: Support CACHE_DEB_SRC option in menu Uladzimir Bely
2023-09-15  6:44 ` [PATCH 12/13] kas: Add options to activate predefined users Uladzimir Bely
2023-09-16  9:39   ` Jan Kiszka
2023-09-15  6:44 ` [PATCH 13/13] kas: Add Readme.md Uladzimir Bely
2023-09-16  9:40 ` [PATCH 00/13] Support building Isar using kas Jan Kiszka
2023-09-16 10:02   ` Jan Kiszka

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=20230915064426.27676-10-ubely@ilbers.de \
    --to=ubely@ilbers.de \
    --cc=isar-users@googlegroups.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