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 3/3] kas: Option to select any machine-distro combination
Date: Sat,  7 Dec 2024 19:09:21 +0300	[thread overview]
Message-ID: <20241207161031.714-4-ubely@ilbers.de> (raw)
In-Reply-To: <20241207161031.714-1-ubely@ilbers.de>

This may be useful for development purposes e.g. when adding support
of a new distro/codename for some machine.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 kas/distro/Kconfig | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/kas/distro/Kconfig b/kas/distro/Kconfig
index 3ddc3ef3..e69172d0 100644
--- a/kas/distro/Kconfig
+++ b/kas/distro/Kconfig
@@ -47,46 +47,53 @@ choice
 
 config DEBIAN_BUSTER
 	bool "Debian 10 (buster)"
-	depends on DISTRO_DEBIAN && CODENAME_BUSTER
+	depends on (DISTRO_DEBIAN && CODENAME_BUSTER) || ANY_MACHINE_DISTRO
 
 config DEBIAN_BULLSEYE
 	bool "Debian 11 (bullseye)"
-	depends on DISTRO_DEBIAN && CODENAME_BULLSEYE
+	depends on (DISTRO_DEBIAN && CODENAME_BULLSEYE) || ANY_MACHINE_DISTRO
 
 config DEBIAN_BOOKWORM
 	bool "Debian 12 (bookworm)"
-	depends on DISTRO_DEBIAN && CODENAME_BOOKWORM
+	depends on (DISTRO_DEBIAN && CODENAME_BOOKWORM) || ANY_MACHINE_DISTRO
 
 config DEBIAN_TRIXIE
 	bool "Debian 13 (trixie)"
-	depends on DISTRO_DEBIAN && CODENAME_TRIXIE
+	depends on (DISTRO_DEBIAN && CODENAME_TRIXIE) || ANY_MACHINE_DISTRO
 
 config DEBIAN_SID
 	bool "Debian Sid (unstable)"
-	depends on DISTRO_DEBIAN && CODENAME_SID
+	depends on (DISTRO_DEBIAN && CODENAME_SID) || ANY_MACHINE_DISTRO
 
 config RASPIOS_BULLSEYE
 	bool "Raspberry Pi OS Debian 11 (bullseye)"
-	depends on DISTRO_RASPIOS && CODENAME_BULLSEYE
+	depends on (DISTRO_RASPIOS && CODENAME_BULLSEYE) || ANY_MACHINE_DISTRO
 
 config RASPIOS_BOOKWORM
 	bool "Raspberry Pi OS Debian 12 (bookworm)"
-	depends on DISTRO_RASPIOS && CODENAME_BOOKWORM
+	depends on (DISTRO_RASPIOS && CODENAME_BOOKWORM) || ANY_MACHINE_DISTRO
 
 config UBUNTU_FOCAL
 	bool "Ubuntu 20.04 (Focal)"
-	depends on DISTRO_UBUNTU && CODENAME_FOCAL
+	depends on (DISTRO_UBUNTU && CODENAME_FOCAL) || ANY_MACHINE_DISTRO
 
 config UBUNTU_JAMMY
 	bool "Ubuntu 22.04 (Jammy)"
-	depends on DISTRO_UBUNTU && CODENAME_JAMMY
+	depends on (DISTRO_UBUNTU && CODENAME_JAMMY) || ANY_MACHINE_DISTRO
 
 config UBUNTU_NOBLE
 	bool "Ubuntu 24.04 (Noble)"
-	depends on DISTRO_UBUNTU && CODENAME_NOBLE
+	depends on (DISTRO_UBUNTU && CODENAME_NOBLE) || ANY_MACHINE_DISTRO
 
 endchoice
 
+config ANY_MACHINE_DISTRO
+	bool "Allow any machine-distro combinations"
+	default n
+	help
+	  This allows to select any machine-distro combinations some of which
+	  may be not bootable or even buildable.
+
 config KAS_INCLUDE_DISTRO
 	string
 	default "kas/distro/debian-buster.yaml" if DEBIAN_BUSTER
-- 
2.45.2

-- 
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/20241207161031.714-4-ubely%40ilbers.de.

  parent reply	other threads:[~2024-12-07 16:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-07 16:09 [PATCH 0/3] Select machine before the distro Uladzimir Bely
2024-12-07 16:09 ` [PATCH 1/3] kas: Fix architecture selection for bananapi Uladzimir Bely
2024-12-07 16:09 ` [PATCH 2/3] kas: Select machine before the distro Uladzimir Bely
2024-12-07 16:09 ` Uladzimir Bely [this message]
2024-12-12  7:13 ` [PATCH 0/3] " 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=20241207161031.714-4-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