diff options
Diffstat (limited to 'recipes-extended/xvisor/xvisor_0.3.0.bb')
| -rw-r--r-- | recipes-extended/xvisor/xvisor_0.3.0.bb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/recipes-extended/xvisor/xvisor_0.3.0.bb b/recipes-extended/xvisor/xvisor_0.3.0.bb new file mode 100644 index 00000000..66ad6187 --- /dev/null +++ b/recipes-extended/xvisor/xvisor_0.3.0.bb | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | SUMMARY = "Xvisor is an open-source type-1 hypervisor, which aims at providing a monolithic, light-weight, portable, and flexible virtualization solution." | ||
| 2 | DESCRIPTION = "Xvisor primarily supports Full virtualization hence, supports a wide range of unmodified guest operating systems. Paravirtualization is optional for Xvisor and will be supported in an architecture independent manner (such as VirtIO PCI/MMIO devices) to ensure no-change in guest OS for using paravirtualization." | ||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 5 | DEPENDS += "dtc-native dosfstools-native mtools-native" | ||
| 6 | |||
| 7 | require xvisor-configs.inc | ||
| 8 | |||
| 9 | inherit autotools-brokensep | ||
| 10 | |||
| 11 | SRCREV = "58592ef18c71526a0045935d1e8eed5e8553b7d6" | ||
| 12 | SRC_URI = "git://github.com/xvisor/xvisor.git \ | ||
| 13 | file://0001-TESTS-Don-t-specify-mabi-or-march-for-RISC-V.patch \ | ||
| 14 | " | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | EXTRA_OEMAKE += "ARCH=\"${@map_xvisor_arch(d.getVar('TARGET_ARCH'), d)}\" I=${D}" | ||
| 19 | |||
| 20 | CONFIG = "${@get_oemake_config(d)}" | ||
| 21 | |||
| 22 | do_configure() { | ||
| 23 | oe_runmake ${CONFIG} | ||
| 24 | } | ||
| 25 | |||
| 26 | do_install_append() { | ||
| 27 | install -d ${D} | ||
| 28 | install -m 755 ${B}/build/vmm.* ${D}/ | ||
| 29 | |||
| 30 | # We don't need this | ||
| 31 | rm ${D}/system.map | ||
| 32 | } | ||
| 33 | |||
| 34 | do_deploy () { | ||
| 35 | install -d ${DEPLOY_DIR_IMAGE} | ||
| 36 | install -m 755 ${D}/vmm.* ${DEPLOY_DIR_IMAGE}/ | ||
| 37 | } | ||
| 38 | |||
| 39 | addtask deploy after do_install | ||
| 40 | |||
| 41 | FILES_${PN} += "/vmm.*" | ||
| 42 | |||
| 43 | COMPATIBLE_HOST = "(riscv64|riscv32).*" | ||
| 44 | INHIBIT_PACKAGE_STRIP = "1" | ||
