diff options
Diffstat (limited to 'recipes-extended/images/container-yocto-builder.bb')
| -rw-r--r-- | recipes-extended/images/container-yocto-builder.bb | 37 |
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 @@ | |||
| 1 | SUMMARY = "Yocto Project builder container with systemd" | ||
| 2 | DESCRIPTION = "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." | ||
| 6 | LICENSE = "MIT" | ||
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 8 | |||
| 9 | IMAGE_FSTYPES = "container oci" | ||
| 10 | inherit image | ||
| 11 | inherit image-oci | ||
| 12 | |||
| 13 | # Multi-layer OCI image | ||
| 14 | OCI_LAYER_MODE = "multi" | ||
| 15 | OCI_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 | ||
| 22 | OCI_IMAGE_ENTRYPOINT = "/usr/bin/builder-entry.sh" | ||
| 23 | |||
| 24 | # OCI metadata | ||
| 25 | OCI_IMAGE_AUTHOR ?= "meta-virtualization" | ||
| 26 | OCI_IMAGE_TAG ?= "latest" | ||
| 27 | |||
| 28 | # All packages listed here to trigger builds (multi-layer requirement) | ||
| 29 | IMAGE_INSTALL = "packagegroup-yocto-builder" | ||
| 30 | |||
| 31 | # No kernel needed for container | ||
| 32 | IMAGE_CONTAINER_NO_DUMMY = "1" | ||
| 33 | |||
| 34 | # Minimize image | ||
| 35 | IMAGE_FEATURES = "" | ||
| 36 | IMAGE_LINGUAS = "" | ||
| 37 | NO_RECOMMENDATIONS = "1" | ||
