diff options
Diffstat (limited to 'recipes-containers/vcontainer/vcontainer-native.bb')
| -rw-r--r-- | recipes-containers/vcontainer/vcontainer-native.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-containers/vcontainer/vcontainer-native.bb b/recipes-containers/vcontainer/vcontainer-native.bb new file mode 100644 index 00000000..1d19ac1b --- /dev/null +++ b/recipes-containers/vcontainer/vcontainer-native.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | # SPDX-FileCopyrightText: Copyright (C) 2025 Bruce Ashfield | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # vcontainer-native.bb | ||
| 6 | # =========================================================================== | ||
| 7 | # Native recipe providing vrunner.sh for container cross-installation | ||
| 8 | # =========================================================================== | ||
| 9 | # | ||
| 10 | # This recipe installs vrunner.sh into the native sysroot so that | ||
| 11 | # container-bundle.bbclass and container-cross-install.bbclass can use it | ||
| 12 | # to cross-install containers into target images. | ||
| 13 | # | ||
| 14 | # Note: This does NOT build the blobs. Blobs must be built separately via | ||
| 15 | # multiconfig (see vdkr-initramfs-create, vpdmn-initramfs-create). | ||
| 16 | # | ||
| 17 | # =========================================================================== | ||
| 18 | |||
| 19 | SUMMARY = "Container cross-install runner script" | ||
| 20 | DESCRIPTION = "Provides vrunner.sh for cross-installing containers into images" | ||
| 21 | HOMEPAGE = "https://git.yoctoproject.org/meta-virtualization/" | ||
| 22 | LICENSE = "MIT" | ||
| 23 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 24 | |||
| 25 | inherit native | ||
| 26 | |||
| 27 | # Runtime dependencies for vrunner.sh | ||
| 28 | DEPENDS = "coreutils-native socat-native" | ||
| 29 | |||
| 30 | SRC_URI = "\ | ||
| 31 | file://vrunner.sh \ | ||
| 32 | file://vcontainer-common.sh \ | ||
| 33 | " | ||
| 34 | |||
| 35 | S = "${UNPACKDIR}" | ||
| 36 | |||
| 37 | do_install() { | ||
| 38 | install -d ${D}${bindir} | ||
| 39 | install -m 0755 ${S}/vrunner.sh ${D}${bindir}/vrunner.sh | ||
| 40 | install -m 0644 ${S}/vcontainer-common.sh ${D}${bindir}/vcontainer-common.sh | ||
| 41 | } | ||
| 42 | |||
| 43 | BBCLASSEXTEND = "native" | ||
