summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2017-11-15 15:48:17 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-11-15 15:48:17 -0500
commitfcffb627a7831a53b5f817848e4d1f1a140b9eb5 (patch)
tree9e1e86b8f02647f9bed82ffc5b49a8f87a5de535
parentbb811bdbad0b994a1580e26e9379390edb00f991 (diff)
downloadmeta-virtualization-fcffb627a7831a53b5f817848e4d1f1a140b9eb5.tar.gz
virt/containers: introduce hyperstart kernel + initrd
For VMs masquerading as kernels, we need a kernel and initrd. runv uses hyperstart for this purpose so we add the recipe here. Once built, the kernel and initrd are installed to where runv can find them automatically. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--recipes-extended/hyperstart/hyperstart_git.bb25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes-extended/hyperstart/hyperstart_git.bb b/recipes-extended/hyperstart/hyperstart_git.bb
new file mode 100644
index 00000000..02974772
--- /dev/null
+++ b/recipes-extended/hyperstart/hyperstart_git.bb
@@ -0,0 +1,25 @@
1SUMMARY = "The tiny Init service for HyperContainer"
2DESCRIPTION = "The init Task for HyperContainer"
3
4LICENSE = "Apache-2"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
6
7inherit autotools-brokensep
8
9SRC_URI = "git://github.com/hyperhq/hyperstart.git"
10
11SRCREV = "ad48a3230836f59ada163659cde151a37522068b"
12PV = "v0.2+git${SRCREV}"
13
14S = "${WORKDIR}/git"
15
16CACHED_CONFIGUREVARS = "ac_cv_file__usr_include_linux_vm_sockets_h=true"
17
18do_install() {
19 install -d ${D}/var/lib/hyper/
20
21 install -m644 ${S}/build/hyper-initrd.img ${D}/var/lib/hyper/
22 install -m644 ${S}/build/arch/x86_64/kernel ${D}/var/lib/hyper/
23}
24
25FILES_${PN} += "/var/lib/hyper"