summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb b/recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb
new file mode 100644
index 00000000..6b9c9d79
--- /dev/null
+++ b/recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb
@@ -0,0 +1,43 @@
1# alpine-xen-guest-bundle_3.23.bb
2# ===========================================================================
3# Alpine Linux minirootfs as a Xen guest via the import system
4# ===========================================================================
5#
6# This recipe demonstrates xen-guest-bundle's import system for 3rd-party
7# guests. It fetches the Alpine Linux minirootfs tarball, converts it to
8# an ext4 disk image at build time, and packages it as a Xen guest bundle.
9#
10# Usage in image recipe (e.g., xen-image-minimal.bb):
11# IMAGE_INSTALL:append:pn-xen-image-minimal = " alpine-xen-guest-bundle"
12#
13# The guest uses the shared host kernel (KERNEL_IMAGETYPE from
14# DEPLOY_DIR_IMAGE), so a compatible kernel must be built for the
15# same MACHINE.
16
17SUMMARY = "Alpine Linux Xen guest bundle"
18DESCRIPTION = "Packages Alpine Linux minirootfs as an autostarting Xen \
19 PV guest. Uses the xen-guest-bundle import system to \
20 convert the tarball into an ext4 disk image."
21LICENSE = "MIT"
22LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
23
24inherit xen-guest-bundle
25
26ALPINE_VERSION = "3.23.3"
27ALPINE_ARCH = "aarch64"
28ALPINE_ARCH:x86-64 = "x86_64"
29
30SRC_URI = "https://dl-cdn.alpinelinux.org/alpine/v3.23/releases/${ALPINE_ARCH}/alpine-minirootfs-${ALPINE_VERSION}-${ALPINE_ARCH}.tar.gz;subdir=alpine-rootfs"
31SRC_URI[sha256sum] = "f219bb9d65febed9046951b19f2b893b331315740af32c47e39b38fcca4be543"
32
33# Guest definition: name is "alpine", autostart, external (no Yocto image dep)
34XEN_GUEST_BUNDLES = "alpine:autostart:external"
35
36# Import: extract tarball directory → ext4 image
37XEN_GUEST_SOURCE_TYPE[alpine] = "rootfs_dir"
38XEN_GUEST_SOURCE_FILE[alpine] = "alpine-rootfs"
39XEN_GUEST_IMAGE_SIZE[alpine] = "128"
40
41# Guest parameters
42XEN_GUEST_MEMORY[alpine] = "256"
43XEN_GUEST_EXTRA[alpine] = "root=/dev/xvda ro console=hvc0"