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 v3 08/12] kas: Add image type selection
Date: Wed, 20 Sep 2023 08:54:16 +0200	[thread overview]
Message-ID: <20230920065420.11399-9-ubely@ilbers.de> (raw)
In-Reply-To: <20230920065420.11399-1-ubely@ilbers.de>

This allows to choose between base and debug Isar image.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 Kconfig                         |  1 +
 kas/image/Kconfig               | 26 ++++++++++++++++++++++++++
 kas/image/isar-image-base.yaml  |  5 +++++
 kas/image/isar-image-debug.yaml |  5 +++++
 kas/isar.yaml                   |  3 ---
 5 files changed, 37 insertions(+), 3 deletions(-)
 create mode 100644 kas/image/Kconfig
 create mode 100644 kas/image/isar-image-base.yaml
 create mode 100644 kas/image/isar-image-debug.yaml

diff --git a/Kconfig b/Kconfig
index 0d54ea52..59fd8fed 100644
--- a/Kconfig
+++ b/Kconfig
@@ -10,5 +10,6 @@ config KAS_BUILD_SYSTEM
 
 source "kas/distro/Kconfig"
 source "kas/machine/Kconfig"
+source "kas/image/Kconfig"
 source "kas/package/Kconfig"
 source "kas/opt/Kconfig"
diff --git a/kas/image/Kconfig b/kas/image/Kconfig
new file mode 100644
index 00000000..1b37025f
--- /dev/null
+++ b/kas/image/Kconfig
@@ -0,0 +1,26 @@
+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_IMAGE
+	string
+	default "kas/image/isar-image-base.yaml" if IMAGE_BASE
+	default "kas/image/isar-image-debug.yaml" if IMAGE_DEBUG
+
+endmenu
diff --git a/kas/image/isar-image-base.yaml b/kas/image/isar-image-base.yaml
new file mode 100644
index 00000000..bf0d4dab
--- /dev/null
+++ b/kas/image/isar-image-base.yaml
@@ -0,0 +1,5 @@
+header:
+  version: 14
+
+target:
+- isar-image-base
diff --git a/kas/image/isar-image-debug.yaml b/kas/image/isar-image-debug.yaml
new file mode 100644
index 00000000..92125203
--- /dev/null
+++ b/kas/image/isar-image-debug.yaml
@@ -0,0 +1,5 @@
+header:
+  version: 14
+
+target:
+- isar-image-debug
diff --git a/kas/isar.yaml b/kas/isar.yaml
index 500bf1d4..47cbc290 100644
--- a/kas/isar.yaml
+++ b/kas/isar.yaml
@@ -3,9 +3,6 @@ header:
 
 build_system: isar
 
-target:
-- isar-image-base
-
 repos:
   isar:
     layers:
-- 
2.20.1


  parent reply	other threads:[~2023-09-20  6:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-20  6:54 [PATCH v3 00/12] Support building Isar using kas Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 01/12] kas: Add initial Kconfig support Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 02/12] kas: Add a local copy of kas-container script Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 03/12] kas: Add mirror selection Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 04/12] kas: Add packages selection Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 05/12] kas: Add COMPAT_ARCH support Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 06/12] kas: Add cross compilation mode selection support Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 07/12] kas: Add ccache option Uladzimir Bely
2023-09-20  6:54 ` Uladzimir Bely [this message]
2023-09-20  6:54 ` [PATCH v3 09/12] kas: Add IMAGE_FSTYPES selection Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 10/12] kas: Support CACHE_DEB_SRC option in menu Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 11/12] kas: Add options to activate predefined users Uladzimir Bely
2023-09-20  6:54 ` [PATCH v3 12/12] kas: Add kas/README.md Uladzimir Bely

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=20230920065420.11399-9-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