diff options
Diffstat (limited to 'recipes-core/vxn/vxn-initramfs-create_1.0.bb')
| -rw-r--r-- | recipes-core/vxn/vxn-initramfs-create_1.0.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-core/vxn/vxn-initramfs-create_1.0.bb b/recipes-core/vxn/vxn-initramfs-create_1.0.bb new file mode 100644 index 00000000..edbef12f --- /dev/null +++ b/recipes-core/vxn/vxn-initramfs-create_1.0.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | # SPDX-FileCopyrightText: Copyright (C) 2025 Bruce Ashfield | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # vxn-initramfs-create_1.0.bb | ||
| 6 | # =========================================================================== | ||
| 7 | # Builds Xen DomU boot blobs for vxn | ||
| 8 | # =========================================================================== | ||
| 9 | # | ||
| 10 | # This recipe packages boot blobs for vxn (vcontainer on Xen): | ||
| 11 | # - A tiny initramfs (reused from vdkr/vpdmn build) | ||
| 12 | # - The rootfs.img squashfs (same as vdkr, with HV detection in init) | ||
| 13 | # - The kernel (Xen PV-capable via vxn.cfg fragment in vruntime) | ||
| 14 | # | ||
| 15 | # Boot flow on Xen Dom0: | ||
| 16 | # xl create domain.cfg | ||
| 17 | # -> Xen boots kernel + tiny initramfs in DomU | ||
| 18 | # -> preinit detects Xen block prefix, mounts rootfs.img from /dev/xvda | ||
| 19 | # -> switch_root into rootfs.img | ||
| 20 | # -> vdkr-init.sh detects Xen via /proc/xen, uses xvd* devices | ||
| 21 | # | ||
| 22 | # =========================================================================== | ||
| 23 | # BUILD INSTRUCTIONS | ||
| 24 | # =========================================================================== | ||
| 25 | # | ||
| 26 | # For aarch64: | ||
| 27 | # MACHINE=qemuarm64 bitbake vxn-initramfs-create | ||
| 28 | # | ||
| 29 | # For x86_64: | ||
| 30 | # MACHINE=qemux86-64 bitbake vxn-initramfs-create | ||
| 31 | # | ||
| 32 | # Blobs are deployed to: tmp/deploy/images/${MACHINE}/vxn/ | ||
| 33 | # | ||
| 34 | # =========================================================================== | ||
| 35 | |||
| 36 | SUMMARY = "Build Xen DomU boot blobs for vxn" | ||
| 37 | DESCRIPTION = "Packages kernel, initramfs and rootfs for running \ | ||
| 38 | vcontainer workloads as Xen DomU guests." | ||
| 39 | |||
| 40 | # Source blobs from vdkr (Docker) build - same rootfs works under Xen | ||
| 41 | VXN_RUNTIME = "vdkr" | ||
| 42 | |||
| 43 | require vxn-initramfs-create.inc | ||
