summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/xen-python2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/xen/xen-python2.bb')
-rw-r--r--recipes-extended/xen/xen-python2.bb68
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes-extended/xen/xen-python2.bb b/recipes-extended/xen/xen-python2.bb
new file mode 100644
index 00000000..08d8e92a
--- /dev/null
+++ b/recipes-extended/xen/xen-python2.bb
@@ -0,0 +1,68 @@
1SUMMARY = "Xen hypervisor tools written in python 2"
2DESCRIPTION = "Unported utility scripts for the Xen hypervisor"
3HOMEPAGE = "http://xen.org"
4LICENSE = "GPLv2"
5SECTION = "console/tools"
6
7SRCREV ?= "a5fcafbfbee55261853fba07149c1c795f2baf58"
8
9XEN_REL ?= "4.12"
10XEN_BRANCH ?= "stable-4.12"
11
12SRC_URI = "git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH}"
13
14LIC_FILES_CHKSUM ?= "file://COPYING;md5=bbb4b1bdc2c3b6743da3c39d03249095"
15
16PV = "${XEN_REL}+git${SRCPV}"
17
18S = "${WORKDIR}/git"
19
20# Packages in this recipe do not use ${PN} to allow for simpler
21# movement of the package back into the xen-tools recipe if/when
22# the scripts are ported to python 3.
23
24RDEPENDS_xen-tools-xencov-split ="python"
25RDEPENDS_xen-tools-xencons = "python"
26RDEPENDS_xen-tools-xenpvnetboot = "python"
27RDEPENDS_xen-tools-xentrace-format = "python"
28
29RRECOMMENDS_xen-tools-xencov-trace = "xen-tools-xencov"
30RRECOMMENDS_xen-tools-xentrace-format = "xen-tools-xentrace"
31
32PACKAGES = " \
33 xen-tools-xencons \
34 xen-tools-xencov-split \
35 xen-tools-xenpvnetboot \
36 xen-tools-xentrace-format \
37 "
38
39FILES_xen-tools-xencons = " \
40 ${bindir}/xencons \
41 "
42
43FILES_xen-tools-xencov-split = " \
44 ${bindir}/xencov_split \
45 "
46
47FILES_xen-tools-xenpvnetboot = " \
48 ${libdir}/xen/bin/xenpvnetboot \
49 "
50
51FILES_xen-tools-xentrace-format = " \
52 ${bindir}/xentrace_format \
53 "
54
55do_configure[noexec] = "1"
56do_compile[noexec] = "1"
57
58do_install() {
59 install -d ${D}${bindir}
60 install -m 0755 ${S}/tools/xentrace/xentrace_format \
61 ${D}${bindir}/xentrace_format
62 install -m 0755 ${S}/tools/misc/xencons ${D}${bindir}/xencons
63 install -m 0755 ${S}/tools/misc/xencov_split ${D}${bindir}/xencov_split
64
65 install -d ${D}${libdir}/xen/bin
66 install -m 0755 ${S}/tools/misc/xenpvnetboot \
67 ${D}${libdir}/xen/bin/xenpvnetboot
68}