Skip to content

Commit 860ad68

Browse files
authored
0.2.1: aarch64-netbsd and aarch64-openbsd run, in their systems' arm64 images (QEMU virt, EDK II) (#6)
Each row's provider gains a runner like aarch64-freebsd's: dirun 0.8.0 boots xim's aarch64-netbsd-disk-image@10.2 (NetBSD 10.2's arm64 live image, booted once) or aarch64-openbsd-disk-image@8.0 (OpenBSD 8.0 installed from the release's arm64 media, Cortex-A72), with the EDK II firmware for AArch64 of xim's ovmf, translated by qemu-system-aarch64 on an x86_64 host. CI's run job gains both rows.
1 parent 96c67c9 commit 860ad68

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
strategy:
7474
fail-fast: false
7575
matrix:
76-
row: [x86_64-freebsd, aarch64-freebsd, x86_64-netbsd, x86_64-openbsd, x86_64-hurd, x86_64-haiku]
76+
row: [x86_64-freebsd, aarch64-freebsd, x86_64-netbsd, aarch64-netbsd, x86_64-openbsd, aarch64-openbsd, x86_64-hurd, x86_64-haiku]
7777
runs-on: ubuntu-24.04
7878
timeout-minutes: 60
7979
defaults:

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ mcpp run --target x86_64-netbsd # once the row's runner is enabled
1616
| `x86_64-freebsd` | `xim:x86_64-freebsd-sysroot@14.5` | the base's libc++ | FreeBSD 14.5 in QEMU (dirun) |
1717
| `aarch64-freebsd` | `xim:aarch64-freebsd-sysroot@14.5` | the base's libc++ | FreeBSD 14.5 in QEMU (dirun) |
1818
| `x86_64-netbsd` | `xim:x86_64-netbsd-sysroot@10.2` | libc++ from source (`llvm.libcxx`) | NetBSD 10.2 in QEMU (dirun) |
19-
| `aarch64-netbsd` | `xim:aarch64-netbsd-sysroot@10.2` | libc++ from source (`llvm.libcxx`) | none |
19+
| `aarch64-netbsd` | `xim:aarch64-netbsd-sysroot@10.2` | libc++ from source (`llvm.libcxx`) | NetBSD 10.2 in QEMU (dirun) |
2020
| `x86_64-openbsd` | `xim:x86_64-openbsd-sysroot@8.0` | the base's libc++ | OpenBSD 8.0 in QEMU (dirun) |
21-
| `aarch64-openbsd` | `xim:aarch64-openbsd-sysroot@8.0` | the base's libc++ | none |
21+
| `aarch64-openbsd` | `xim:aarch64-openbsd-sysroot@8.0` | the base's libc++ | OpenBSD 8.0 in QEMU (dirun) |
2222
| `x86_64-hurd` | `xim:x86_64-hurd-sysroot@20260314` | the base's libstdc++ | Debian GNU/Hurd in QEMU (dirun) |
2323
| `x86_64-haiku` | `xim:x86_64-haiku-sysroot@hrev60431` | the base's libstdc++ | Haiku hrev60431 in QEMU (dirun) |
2424

‎docs/adding-a-system.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ document states the procedure and what each part must hold.
1111
| System | Rows | Base | Runner | State |
1212
|---|---|---|---|---|
1313
| FreeBSD 14.5 | `x86_64-freebsd`, `aarch64-freebsd` (mcpp's built-in rows) | the release's base set | both | `preview` |
14-
| NetBSD 10.2 | `x86_64-netbsd`, `aarch64-netbsd` | the release's base and comp sets; the C++ layer is libc++ from source (`llvm.libcxx`) | x86_64 | `preview` |
15-
| OpenBSD 8.0 | `x86_64-openbsd`, `aarch64-openbsd` | the release's base and comp sets | x86_64 | `preview` |
14+
| NetBSD 10.2 | `x86_64-netbsd`, `aarch64-netbsd` | the release's base and comp sets; the C++ layer is libc++ from source (`llvm.libcxx`) | both | `preview` |
15+
| OpenBSD 8.0 | `x86_64-openbsd`, `aarch64-openbsd` | the release's base and comp sets | both | `preview` |
1616
| GNU/Hurd (Debian, hurd-amd64) | `x86_64-hurd` | the packages of Debian's pre-installed image of 2026-03-14, from the archive's snapshot of that day; the C++ layer is GCC 15's libstdc++ | x86_64 | `preview` |
1717
| Haiku hrev60431 | `x86_64-haiku` | the revision's system and development packages, with GCC's run-time from HaikuPorts; the C++ layer is GCC's libstdc++ | x86_64 | `preview` |
1818
| illumos (OmniOS r151054) | none | assembled, not published | measured | not included: see below |

‎mcpp.toml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
namespace = "mcpp"
33
name = "platforms"
4-
version = "0.2.0"
4+
version = "0.2.1"
55
description = "Rows for systems the engine does not carry: their definitions, bases and runners"
66
license = "Apache-2.0"
77
repo = "https://github.com/mcpp-community/mcpp-platforms"
@@ -98,6 +98,12 @@ serves = ["aarch64-netbsd"]
9898
sysroot = "xim:aarch64-netbsd-sysroot@10.2"
9999
layers = { "c++-abi" = "llvm.libcxx@22.1.8.3" }
100100
hosted = true
101+
# NetBSD 10.2's arm64 live image, booted once (xim's aarch64-netbsd-disk-image), in QEMU's
102+
# `virt' machine with the EDK II firmware for AArch64, translated on an x86_64 host.
103+
runner = { cmd = ["dirun", "--profile", "{pkg:aarch64-netbsd-disk-image}/dirun.toml", "--var", "firmware={pkg:ovmf}/share/edk2/edk2-aarch64-code.fd",
104+
"--emulator", "{pkg:qemu-system}/bin/qemu-system-aarch64", "--", "{}"],
105+
host = "any", hosts = ["linux-x86_64"],
106+
requires = ["xim:dirun@0.8.0", "xim:aarch64-netbsd-disk-image@10.2", "xim:ovmf@9.2.4-4", "xim:qemu-system@9.2.4"], enabled = false }
101107

102108
# ── OpenBSD ─────────────────────────────────────────────────────────────────
103109
# OpenBSD 7.4 and later accept system calls only from libc (pinsyscalls): a
@@ -139,6 +145,12 @@ runner = { cmd = ["dirun", "--profile", "{pkg:openbsd-disk-image}/dirun.toml",
139145
serves = ["aarch64-openbsd"]
140146
sysroot = "xim:aarch64-openbsd-sysroot@8.0"
141147
hosted = true
148+
# OpenBSD 8.0 for arm64 installed from the release's media (xim's aarch64-openbsd-disk-image),
149+
# in QEMU's `virt' machine with the EDK II firmware for AArch64 and a Cortex-A72.
150+
runner = { cmd = ["dirun", "--profile", "{pkg:aarch64-openbsd-disk-image}/dirun.toml", "--var", "firmware={pkg:ovmf}/share/edk2/edk2-aarch64-code.fd",
151+
"--emulator", "{pkg:qemu-system}/bin/qemu-system-aarch64", "--", "{}"],
152+
host = "any", hosts = ["linux-x86_64"],
153+
requires = ["xim:dirun@0.8.0", "xim:aarch64-openbsd-disk-image@8.0", "xim:ovmf@9.2.4-4", "xim:qemu-system@9.2.4"], enabled = false }
142154

143155
# ── GNU/Hurd ────────────────────────────────────────────────────────────────
144156
# Debian GNU/Hurd's amd64 port: glibc on the Hurd, with GCC's run-time and

0 commit comments

Comments
 (0)