summaryrefslogtreecommitdiffstats
path: root/recipes-extended/images/container-yocto-builder.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/images/container-yocto-builder.bb')
-rw-r--r--recipes-extended/images/container-yocto-builder.bb37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-extended/images/container-yocto-builder.bb b/recipes-extended/images/container-yocto-builder.bb
new file mode 100644
index 00000000..0dba4c31
--- /dev/null
+++ b/recipes-extended/images/container-yocto-builder.bb
@@ -0,0 +1,37 @@
1SUMMARY = "Yocto Project builder container with systemd"
2DESCRIPTION = "A self-hosting Yocto build container. Includes compiler \
3 toolchain, Python 3, Git, and all tools needed to compile the Yocto \
4 Project. Uses systemd init and supports CROPS-style dynamic user \
5 creation for volume-mounted builds."
6LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
8
9IMAGE_FSTYPES = "container oci"
10inherit image
11inherit image-oci
12
13# Multi-layer OCI image
14OCI_LAYER_MODE = "multi"
15OCI_LAYERS = "\
16 systemd-base:packages:packagegroup-yocto-builder-base \
17 build-tools:packages:packagegroup-yocto-builder-toolchain \
18 yocto-extras:packages:packagegroup-yocto-builder-extras \
19"
20
21# Entrypoint: user setup script -> systemd
22OCI_IMAGE_ENTRYPOINT = "/usr/bin/builder-entry.sh"
23
24# OCI metadata
25OCI_IMAGE_AUTHOR ?= "meta-virtualization"
26OCI_IMAGE_TAG ?= "latest"
27
28# All packages listed here to trigger builds (multi-layer requirement)
29IMAGE_INSTALL = "packagegroup-yocto-builder"
30
31# No kernel needed for container
32IMAGE_CONTAINER_NO_DUMMY = "1"
33
34# Minimize image
35IMAGE_FEATURES = ""
36IMAGE_LINGUAS = ""
37NO_RECOMMENDATIONS = "1"