From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH 1/3] kas: Introduce internal arch options
Date: Thu, 14 Nov 2024 15:36:58 +0200 [thread overview]
Message-ID: <20241114133700.1464717-2-amikan@ilbers.de> (raw)
In-Reply-To: <20241114133700.1464717-1-amikan@ilbers.de>
To allow additional options filtering based on machine architecture add
internal options with target arch.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
kas/machine/Kconfig | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/kas/machine/Kconfig b/kas/machine/Kconfig
index e09c2235..43e87f07 100644
--- a/kas/machine/Kconfig
+++ b/kas/machine/Kconfig
@@ -6,6 +6,24 @@
menu "Machine selection"
+config ARCH_AMD64
+ bool
+
+config ARCH_ARM64
+ bool
+
+config ARCH_ARMHF
+ bool
+
+config ARCH_I386
+ bool
+
+config ARCH_MIPSEL
+ bool
+
+config ARCH_RISCV64
+ bool
+
choice
prompt "Machine selection"
default MACHINE_QEMU_AMD64
@@ -13,110 +31,137 @@ choice
config MACHINE_BANANAPI
bool "bananapi"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_ARM64
config MACHINE_BEAGLEPLAY
bool "beagleplay"
depends on DEBIAN_BOOKWORM
+ select ARCH_ARM64
config MACHINE_CONTAINER_AMD64
bool "container-amd64"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_AMD64
config MACHINE_DE0_NANO_SOC
bool "de0-nano-soc"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_ARMHF
config MACHINE_HIKEY
bool "hikey"
depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_ARM64
config MACHINE_IMX6_SABRELITE
bool "imx6-sabrelite"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE
+ select ARCH_ARMHF
config MACHINE_NANOPI_NEO
bool "nanopi-neo"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_ARMHF
config MACHINE_NANOPI_NEO_EFI
bool "nanopi-neo-efi"
depends on DEBIAN_BOOKWORM
+ select ARCH_ARMHF
config MACHINE_PHYBOARD_MIRA
bool "phyboard-mira"
depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_ARMHF
config MACHINE_QEMU_AMD64_CIP
bool "qemuamd64-cip"
depends on DEBIAN_BOOKWORM
+ select ARCH_AMD64
config MACHINE_QEMU_AMD64_SB
bool "qemuamd64-sb"
depends on DEBIAN_BULLSEYE
+ select ARCH_AMD64
config MACHINE_QEMU_AMD64
bool "qemuamd64"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || UBUNTU_FOCAL || UBUNTU_JAMMY || UBUNTU_NOBLE
+ select ARCH_AMD64
config MACHINE_QEMU_ARM
bool "qemuarm"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE
+ select ARCH_ARMHF
config MACHINE_QEMU_ARM64
bool "qemuarm64"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || UBUNTU_FOCAL || UBUNTU_JAMMY || UBUNTU_NOBLE
+ select ARCH_ARM64
config MACHINE_QEMU_I386
bool "qemui386"
depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_I386
config MACHINE_QEMU_MIPSEL
bool "qemumipsel"
depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_MIPSEL
config MACHINE_QEMU_RISCV64
bool "qemuriscv64"
depends on DEBIAN_TRIXIE || DEBIAN_SID
+ select ARCH_RISCV64
config MACHINE_RPI_ARM_V7
bool "rpi-arm-v7"
depends on RASPIOS_BULLSEYE || RASPIOS_BOOKWORM
+ select ARCH_ARMHF
config MACHINE_RPI_ARM_V7L
bool "rpi-arm-v7l"
depends on RASPIOS_BULLSEYE || RASPIOS_BOOKWORM
+ select ARCH_ARMHF
config MACHINE_RPI_ARM
bool "rpi-arm"
depends on RASPIOS_BULLSEYE || RASPIOS_BOOKWORM
+ select ARCH_ARMHF
config MACHINE_RPI_ARM64_V8
bool "rpi-arm64-v8"
depends on RASPIOS_BULLSEYE || RASPIOS_BOOKWORM
+ select ARCH_ARM64
config MACHINE_SIFIVE_FU540
bool "sifive-fu540"
depends on DEBIAN_TRIXIE || DEBIAN_SID
+ select ARCH_RISCV64
config MACHINE_STARFIVE_VISIONFIVE2
bool "starfive-visionfive2"
depends on DEBIAN_TRIXIE || DEBIAN_SID
+ select ARCH_RISCV64
config MACHINE_STM32MP15X
bool "stm32mp15x"
depends on DEBIAN_BULLSEYE
+ select ARCH_ARMHF
config MACHINE_VIRTUALBOX
bool "virtualbox"
depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+ select ARCH_AMD64
config MACHINE_VMWARE
bool "vmware"
depends on DEBIAN_BULLSEYE
+ select ARCH_AMD64
config MACHINE_X86_PC
bool "x86 PC"
depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || UBUNTU_FOCAL || UBUNTU_JAMMY || UBUNTU_NOBLE
+ select ARCH_AMD64
endchoice
--
2.34.1
--
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/20241114133700.1464717-2-amikan%40ilbers.de.
next prev parent reply other threads:[~2024-11-14 13:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 13:36 [PATCH 0/3] Limit prebuilt container package selection Anton Mikanovich
2024-11-14 13:36 ` Anton Mikanovich [this message]
2024-11-14 13:36 ` [PATCH 2/3] kas: Set prebuilt-podman-img distro support Anton Mikanovich
2024-11-14 13:37 ` [PATCH 3/3] kas: Set prebuilt-docker-img " Anton Mikanovich
2024-11-21 6:48 ` [PATCH 0/3] Limit prebuilt container package selection 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=20241114133700.1464717-2-amikan@ilbers.de \
--to=amikan@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