diff options
author | Hongzhi.Song <hongzhi.song@windriver.com> | 2018-07-24 03:12:28 -0700 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-07-26 10:40:26 -0400 |
commit | e2ab59ec3e4b547da635cda725090d42126dcfd2 (patch) | |
tree | 08845ab09d5c5979d6c67bff7d73db0f77c4b08c | |
parent | 17613c1a3bac1c60c57dbfa43558d3f64762a027 (diff) | |
download | meta-virtualization-e2ab59ec3e4b547da635cda725090d42126dcfd2.tar.gz |
libvmi: add a new recipe
LibVMI is a C library with Python bindings that makes it easy to
monitor the low-level details of a running virtual machine by
viewing its memory, trapping on hardware events, and accessing
the vCPU registers. This is called virtual machine introspection.
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-extended/libvmi/libvmi_git.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-extended/libvmi/libvmi_git.bb b/recipes-extended/libvmi/libvmi_git.bb new file mode 100644 index 00000000..a746638f --- /dev/null +++ b/recipes-extended/libvmi/libvmi_git.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | DESCRIPTION = "An introspection library, written in C, focused on reading \ | ||
2 | and writing memory from virtual machines (VM's)." | ||
3 | HOMEPAGE = "https://github.com/libvmi/libvmi" | ||
4 | LICENSE = "LGPLv3" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" | ||
6 | SECTION = "console/tools" | ||
7 | PV = "0.12.0" | ||
8 | |||
9 | DEPENDS = "libvirt libcheck bison fuse" | ||
10 | |||
11 | SRC_URI = "git://github.com/libvmi/libvmi.git \ | ||
12 | " | ||
13 | |||
14 | SRCREV = "6934e8a4758018983ec53ec791dd14a7d6ac31a9" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | inherit autotools-brokensep pkgconfig | ||
19 | |||
20 | # Noramlly dynamic libs would be of the form libXX.so.1.0.0 in which case | ||
21 | # bitbake should be able to properly populate the -dev package and the main | ||
22 | # packages. Since libvmi uses the form libXX.1.0.0.so it breaks this automatic | ||
23 | # packaging so we need to be more explicit about what goes where. | ||
24 | FILES_${PN} += "${libdir}/libvmi-0.9.so" | ||
25 | FILES_${PN}-dev = "${includedir} ${libdir}/${BPN}.so ${libdir}/*.la \ | ||
26 | ${libdir}/*.o ${libdir}/pkgconfig ${datadir}/pkgconfig \ | ||
27 | ${datadir}/aclocal ${base_libdir}/*.o \ | ||
28 | ${libdir}/${BPN}/*.la ${base_libdir}/*.la" | ||
29 | |||
30 | PACKAGECONFIG ??= "json-c" | ||
31 | PACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen," | ||
32 | PACKAGECONFIG[json-c] = ",,json-c," | ||
33 | |||
34 | # We include a sample conf file to which we have added | ||
35 | do_install_append () { | ||
36 | mkdir ${D}${sysconfdir} | ||
37 | cp etc/*.conf ${D}${sysconfdir} | ||
38 | } | ||
39 | |||
40 | # Construction of grammar.h is not parallel safe. | ||
41 | PARALLEL_MAKE = "-j1" | ||