From: "'Jan Kiszka' via isar-users" <isar-users@googlegroups.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH] meta-isar: Add a x86 PC target
Date: Sat, 31 Aug 2024 10:45:55 +0200 [thread overview]
Message-ID: <05cb4098-8d7b-48a6-9615-1cb667ca55a6@siemens.com> (raw)
From: Jan Kiszka <jan.kiszka@siemens.com>
Just flash on a USB stick and boot. Supports both EFI and legacy
booting.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
Somehow strange that this was missing so far.
kas/machine/Kconfig | 4 ++++
kas/machine/x86-pc.yaml | 9 +++++++++
meta-isar/conf/machine/x86-pc.conf | 15 +++++++++++++++
meta-isar/conf/mc.conf | 1 +
meta-isar/conf/multiconfig/x86-pc-bookworm.conf | 7 +++++++
5 files changed, 36 insertions(+)
create mode 100644 kas/machine/x86-pc.yaml
create mode 100644 meta-isar/conf/machine/x86-pc.conf
create mode 100644 meta-isar/conf/multiconfig/x86-pc-bookworm.conf
diff --git a/kas/machine/Kconfig b/kas/machine/Kconfig
index 9ea5b50f..d406b85f 100644
--- a/kas/machine/Kconfig
+++ b/kas/machine/Kconfig
@@ -110,6 +110,9 @@ config MACHINE_VMWARE
bool "vmware"
depends on DEBIAN_BULLSEYE
+config MACHINE_X86_PC
+ bool "x86 PC"
+
endchoice
config KAS_INCLUDE_MACHINE
@@ -139,5 +142,6 @@ config KAS_INCLUDE_MACHINE
default "kas/machine/stm32mp15x.yaml" if MACHINE_STM32MP15X
default "kas/machine/virtualbox.yaml" if MACHINE_VIRTUALBOX
default "kas/machine/vmware.yaml" if MACHINE_VMWARE
+ default "kas/machine/x86-pc.yaml" if MACHINE_X86_PC
endmenu
diff --git a/kas/machine/x86-pc.yaml b/kas/machine/x86-pc.yaml
new file mode 100644
index 00000000..f1dfed28
--- /dev/null
+++ b/kas/machine/x86-pc.yaml
@@ -0,0 +1,9 @@
+# This software is a part of ISAR.
+# Copyright (c) Siemens AG, 2024
+#
+# SPDX-License-Identifier: MIT
+
+header:
+ version: 14
+
+machine: x86-pc
diff --git a/meta-isar/conf/machine/x86-pc.conf b/meta-isar/conf/machine/x86-pc.conf
new file mode 100644
index 00000000..4b2efbe3
--- /dev/null
+++ b/meta-isar/conf/machine/x86-pc.conf
@@ -0,0 +1,15 @@
+#
+# Copyright (c) Siemens AG, 2024
+#
+# SPDX-License-Identifier: MIT
+
+DISTRO_ARCH ?= "amd64"
+
+KERNEL_NAME ?= "amd64"
+
+IMAGE_FSTYPES ?= "wic"
+WKS_FILE ?= "efi-plus-pcbios"
+
+IMAGER_INSTALL:wic += " \
+ ${GRUB_BOOTLOADER_INSTALL} \
+ ${SYSLINUX_BOOTLOADER_INSTALL}"
diff --git a/meta-isar/conf/mc.conf b/meta-isar/conf/mc.conf
index 7fd638d3..d8c3a3a7 100644
--- a/meta-isar/conf/mc.conf
+++ b/meta-isar/conf/mc.conf
@@ -48,6 +48,7 @@ BBMULTICONFIG = " \
stm32mp15x-bullseye \
virtualbox-bullseye \
virtualbox-bookworm \
+ x86-pc-bookworm \
rpi-arm-bullseye \
rpi-arm-bookworm \
rpi-arm-v7-bullseye \
diff --git a/meta-isar/conf/multiconfig/x86-pc-bookworm.conf b/meta-isar/conf/multiconfig/x86-pc-bookworm.conf
new file mode 100644
index 00000000..1fd9d429
--- /dev/null
+++ b/meta-isar/conf/multiconfig/x86-pc-bookworm.conf
@@ -0,0 +1,7 @@
+#
+# Copyright (c) Siemens AG, 2024
+#
+# SPDX-License-Identifier: MIT
+
+MACHINE ?= "x86-pc"
+DISTRO ?= "debian-bookworm"
--
2.43.0
--
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 on the web visit https://groups.google.com/d/msgid/isar-users/05cb4098-8d7b-48a6-9615-1cb667ca55a6%40siemens.com.
next reply other threads:[~2024-08-31 8:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-31 8:45 'Jan Kiszka' via isar-users [this message]
2024-09-04 8:23 ` 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=05cb4098-8d7b-48a6-9615-1cb667ca55a6@siemens.com \
--to=isar-users@googlegroups.com \
--cc=jan.kiszka@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