diff options
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/bind/bind_virtualization.inc | 2 | ||||
-rw-r--r-- | recipes-core/packagegroups/packagegroup-container.bb | 29 | ||||
-rw-r--r-- | recipes-core/packagegroups/packagegroup-kubernetes.bb | 1 | ||||
-rw-r--r-- | recipes-core/runv/runv_git.bb | 87 | ||||
-rw-r--r-- | recipes-core/runx/runx_git.bb | 4 | ||||
-rw-r--r-- | recipes-core/sysvinit/sysvinit-inittab_virtualization.inc | 2 |
6 files changed, 33 insertions, 92 deletions
diff --git a/recipes-core/bind/bind_virtualization.inc b/recipes-core/bind/bind_virtualization.inc index a6e39049..bb4e22b2 100644 --- a/recipes-core/bind/bind_virtualization.inc +++ b/recipes-core/bind/bind_virtualization.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | # Tell named not to bother listening on the IP address that lxc and libvirtd handles itself. | 1 | # Tell named not to bother listening on the IP address that lxc and libvirtd handles itself. |
2 | do_install:append() { | 2 | do_install:append() { |
3 | sed -i -e 's,^\( *options *{\)$,\1\n\t// lxc and libvirtd would take care of this address itself\n\tlisten-on { ! 10.0.3.1; ! 192.168.122.1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options | 3 | sed -i -e 's,^\( *options *{\)$,\1\n\t// lxc and libvirtd would take care of this address itself\n\tlisten-on { ! 10.0.3.1; ! 192.168.122.1; any;};\n\tlisten-on-v6 { ! fc42:5009:ba4b:5ab0::1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options |
4 | } | 4 | } |
diff --git a/recipes-core/packagegroups/packagegroup-container.bb b/recipes-core/packagegroups/packagegroup-container.bb index 4b1ad009..f5e20344 100644 --- a/recipes-core/packagegroups/packagegroup-container.bb +++ b/recipes-core/packagegroups/packagegroup-container.bb | |||
@@ -11,6 +11,9 @@ PACKAGES = "\ | |||
11 | packagegroup-lxc \ | 11 | packagegroup-lxc \ |
12 | packagegroup-docker \ | 12 | packagegroup-docker \ |
13 | packagegroup-oci \ | 13 | packagegroup-oci \ |
14 | packagegroup-cni \ | ||
15 | packagegroup-netavark \ | ||
16 | packagegroup-container-tools \ | ||
14 | ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp ipv6', \ | 17 | ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp ipv6', \ |
15 | 'packagegroup-podman', '', d)} \ | 18 | 'packagegroup-podman', '', d)} \ |
16 | packagegroup-containerd \ | 19 | packagegroup-containerd \ |
@@ -36,8 +39,28 @@ RDEPENDS:packagegroup-podman = " \ | |||
36 | podman \ | 39 | podman \ |
37 | " | 40 | " |
38 | 41 | ||
42 | RDEPENDS:packagegroup-cni = " \ | ||
43 | cni \ | ||
44 | iptables \ | ||
45 | iproute2 \ | ||
46 | ipset \ | ||
47 | bridge-utils \ | ||
48 | " | ||
49 | |||
50 | RDEPENDS:packagegroup-netavark = " \ | ||
51 | ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp', 'netavark aardvark-dns', '', d)} \ | ||
52 | " | ||
53 | |||
54 | RDEPENDS:packagegroup-container-tools = " \ | ||
55 | skopeo \ | ||
56 | ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp', 'conmon', '', d)} \ | ||
57 | umoci \ | ||
58 | ${@bb.utils.contains('VIRTUAL-RUNTIME_container_engine','podman','podman-tui nerdctl podman-compose','',d)} \ | ||
59 | ${@bb.utils.contains_any('VIRTUAL-RUNTIME_container_engine','docker docker-moby','docker-compose','',d)} \ | ||
60 | " | ||
61 | |||
39 | RDEPENDS:packagegroup-oci = " \ | 62 | RDEPENDS:packagegroup-oci = " \ |
40 | virtual-runc \ | 63 | ${VIRTUAL-RUNTIME_container_runtime} \ |
41 | oci-systemd-hook \ | 64 | oci-systemd-hook \ |
42 | oci-runtime-tools \ | 65 | oci-runtime-tools \ |
43 | oci-image-tools \ | 66 | oci-image-tools \ |
@@ -45,5 +68,9 @@ RDEPENDS:packagegroup-oci = " \ | |||
45 | 68 | ||
46 | RDEPENDS:packagegroup-containerd = " \ | 69 | RDEPENDS:packagegroup-containerd = " \ |
47 | virtual-containerd \ | 70 | virtual-containerd \ |
71 | packagegroup-cni \ | ||
72 | containerd-cni \ | ||
73 | nerdctl \ | ||
74 | tini \ | ||
48 | " | 75 | " |
49 | 76 | ||
diff --git a/recipes-core/packagegroups/packagegroup-kubernetes.bb b/recipes-core/packagegroups/packagegroup-kubernetes.bb index d518fc15..e06b1cb4 100644 --- a/recipes-core/packagegroups/packagegroup-kubernetes.bb +++ b/recipes-core/packagegroups/packagegroup-kubernetes.bb | |||
@@ -28,6 +28,7 @@ RDEPENDS:packagegroup-kubernetes-base = " \ | |||
28 | RDEPENDS:packagegroup-k8s-host = " \ | 28 | RDEPENDS:packagegroup-k8s-host = " \ |
29 | packagegroup-kubernetes-base \ | 29 | packagegroup-kubernetes-base \ |
30 | kubernetes \ | 30 | kubernetes \ |
31 | cri-tools \ | ||
31 | " | 32 | " |
32 | 33 | ||
33 | RDEPENDS:packagegroup-k8s-node = " \ | 34 | RDEPENDS:packagegroup-k8s-node = " \ |
diff --git a/recipes-core/runv/runv_git.bb b/recipes-core/runv/runv_git.bb deleted file mode 100644 index 73cd81a6..00000000 --- a/recipes-core/runv/runv_git.bb +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | HOMEPAGE = "https://github.com/hyperhq/runv" | ||
2 | SUMMARY = "Hypervisor-based Runtime for OCI" | ||
3 | DESCRIPTION = "Hypervisor-based Runtime for OCI" | ||
4 | |||
5 | SRCREV_runv = "b360a686abc6c6e896382990ef1b93ef07c7a677" | ||
6 | SRC_URI = "\ | ||
7 | git://github.com/hyperhq/runv.git;nobranch=1;name=runv;protocol=https \ | ||
8 | " | ||
9 | |||
10 | LICENSE = "Apache-2.0" | ||
11 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=4106a50540bdec3b9734f9c70882d382" | ||
12 | |||
13 | GO_IMPORT = "import" | ||
14 | |||
15 | PV = "0.4.0+git${SRCREV_runv}" | ||
16 | |||
17 | inherit go | ||
18 | inherit goarch | ||
19 | inherit pkgconfig | ||
20 | inherit autotools-brokensep | ||
21 | |||
22 | # accord with qemu | ||
23 | COMPATIBLE_HOST:mipsarchn32 = "null" | ||
24 | COMPATIBLE_HOST:mipsarchn64 = "null" | ||
25 | COMPATIBLE_HOST:riscv32 = "null" | ||
26 | COMPATIBLE_HOST:powerpc = "null" | ||
27 | |||
28 | PACKAGECONFIG[xen] = "--with-xen,--without-xen," | ||
29 | AUTOTOOLS_SCRIPT_PATH = "${S}/src/import/" | ||
30 | |||
31 | RDEPENDS:${PN} += " qemu hyperstart" | ||
32 | |||
33 | do_compile() { | ||
34 | export GOARCH="${TARGET_GOARCH}" | ||
35 | export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go" | ||
36 | export GOPATH="${S}/src/import:${S}/src/import/vendor" | ||
37 | |||
38 | # Pass the needed cflags/ldflags so that cgo | ||
39 | # can find the needed headers files and libraries | ||
40 | export CGO_ENABLED="1" | ||
41 | export CFLAGS="" | ||
42 | export LDFLAGS="" | ||
43 | export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
44 | export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
45 | |||
46 | # link fixups for compilation | ||
47 | rm -f ${S}/src/import/vendor/src | ||
48 | ln -sf ./ ${S}/src/import/vendor/src | ||
49 | |||
50 | mkdir -p ${S}/src/import/vendor/github.com/hyperhq/runv | ||
51 | |||
52 | echo fff | ||
53 | pwd | ||
54 | ln -sf src/import/cli | ||
55 | ln -sf ../../../../api ${S}/src/import/vendor/github.com/hyperhq/runv/api | ||
56 | ln -sf ../../../../cli ${S}/src/import/vendor/github.com/hyperhq/runv/cli | ||
57 | ln -sf ../../../../lib ${S}/src/import/vendor/github.com/hyperhq/runv/lib | ||
58 | ln -sf ../../../../driverloader ${S}/src/import/vendor/github.com/hyperhq/runv/driverloader | ||
59 | ln -sf ../../../../factory ${S}/src/import/vendor/github.com/hyperhq/runv/factory | ||
60 | ln -sf ../../../../hyperstart ${S}/src/import/vendor/github.com/hyperhq/runv/hyperstart | ||
61 | ln -sf ../../../../hypervisor ${S}/src/import/vendor/github.com/hyperhq/runv/hypervisor | ||
62 | ln -sf ../../../../template ${S}/src/import/vendor/github.com/hyperhq/runv/template | ||
63 | |||
64 | export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" | ||
65 | export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" | ||
66 | |||
67 | # Pass the needed cflags/ldflags so that cgo | ||
68 | # can find the needed headers files and libraries | ||
69 | export CGO_ENABLED="1" | ||
70 | export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
71 | export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
72 | |||
73 | oe_runmake build-runv | ||
74 | } | ||
75 | |||
76 | do_install() { | ||
77 | localbindir="/usr/local/bin" | ||
78 | |||
79 | install -d ${D}${localbindir} | ||
80 | install -m 755 ${S}/runv ${D}/${localbindir} | ||
81 | } | ||
82 | |||
83 | deltask compile_ptest_base | ||
84 | |||
85 | FILES:${PN} += "/usr/local/bin/*" | ||
86 | |||
87 | INSANE_SKIP:${PN} += "ldflags already-stripped" | ||
diff --git a/recipes-core/runx/runx_git.bb b/recipes-core/runx/runx_git.bb index 831360ba..b3250322 100644 --- a/recipes-core/runx/runx_git.bb +++ b/recipes-core/runx/runx_git.bb | |||
@@ -4,8 +4,8 @@ DESCRIPTION = "Xen Runtime for OCI" | |||
4 | 4 | ||
5 | SRCREV_runx = "edc9350a79ede0365066c9743080e3dc6430d602" | 5 | SRCREV_runx = "edc9350a79ede0365066c9743080e3dc6430d602" |
6 | 6 | ||
7 | KERNEL_SRC_VER="linux-5.4" | 7 | KERNEL_SRC_VER = "linux-5.4" |
8 | KERNEL_URL_VER="v5.x" | 8 | KERNEL_URL_VER = "v5.x" |
9 | 9 | ||
10 | SRC_URI = "\ | 10 | SRC_URI = "\ |
11 | git://github.com/lf-edge/runx;nobranch=1;name=runx;protocol=https \ | 11 | git://github.com/lf-edge/runx;nobranch=1;name=runx;protocol=https \ |
diff --git a/recipes-core/sysvinit/sysvinit-inittab_virtualization.inc b/recipes-core/sysvinit/sysvinit-inittab_virtualization.inc index bf52da0e..5010dfd3 100644 --- a/recipes-core/sysvinit/sysvinit-inittab_virtualization.inc +++ b/recipes-core/sysvinit/sysvinit-inittab_virtualization.inc | |||
@@ -4,6 +4,6 @@ SRC_URI += "file://getty-wrapper" | |||
4 | 4 | ||
5 | do_install:append() { | 5 | do_install:append() { |
6 | install -d ${D}${base_sbindir} | 6 | install -d ${D}${base_sbindir} |
7 | install -m 0755 ${WORKDIR}/getty-wrapper ${D}${base_sbindir}/getty-wrapper | 7 | install -m 0755 ${UNPACKDIR}/getty-wrapper ${D}${base_sbindir}/getty-wrapper |
8 | } | 8 | } |
9 | FILES:${PN} += "${base_sbindir}/getty-wrapper" | 9 | FILES:${PN} += "${base_sbindir}/getty-wrapper" |