diff options
Diffstat (limited to 'recipes-extended/xen/xen-python2.bb')
| -rw-r--r-- | recipes-extended/xen/xen-python2.bb | 68 |
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 @@ | |||
| 1 | SUMMARY = "Xen hypervisor tools written in python 2" | ||
| 2 | DESCRIPTION = "Unported utility scripts for the Xen hypervisor" | ||
| 3 | HOMEPAGE = "http://xen.org" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | SECTION = "console/tools" | ||
| 6 | |||
| 7 | SRCREV ?= "a5fcafbfbee55261853fba07149c1c795f2baf58" | ||
| 8 | |||
| 9 | XEN_REL ?= "4.12" | ||
| 10 | XEN_BRANCH ?= "stable-4.12" | ||
| 11 | |||
| 12 | SRC_URI = "git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH}" | ||
| 13 | |||
| 14 | LIC_FILES_CHKSUM ?= "file://COPYING;md5=bbb4b1bdc2c3b6743da3c39d03249095" | ||
| 15 | |||
| 16 | PV = "${XEN_REL}+git${SRCPV}" | ||
| 17 | |||
| 18 | S = "${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 | |||
| 24 | RDEPENDS_xen-tools-xencov-split ="python" | ||
| 25 | RDEPENDS_xen-tools-xencons = "python" | ||
| 26 | RDEPENDS_xen-tools-xenpvnetboot = "python" | ||
| 27 | RDEPENDS_xen-tools-xentrace-format = "python" | ||
| 28 | |||
| 29 | RRECOMMENDS_xen-tools-xencov-trace = "xen-tools-xencov" | ||
| 30 | RRECOMMENDS_xen-tools-xentrace-format = "xen-tools-xentrace" | ||
| 31 | |||
| 32 | PACKAGES = " \ | ||
| 33 | xen-tools-xencons \ | ||
| 34 | xen-tools-xencov-split \ | ||
| 35 | xen-tools-xenpvnetboot \ | ||
| 36 | xen-tools-xentrace-format \ | ||
| 37 | " | ||
| 38 | |||
| 39 | FILES_xen-tools-xencons = " \ | ||
| 40 | ${bindir}/xencons \ | ||
| 41 | " | ||
| 42 | |||
| 43 | FILES_xen-tools-xencov-split = " \ | ||
| 44 | ${bindir}/xencov_split \ | ||
| 45 | " | ||
| 46 | |||
| 47 | FILES_xen-tools-xenpvnetboot = " \ | ||
| 48 | ${libdir}/xen/bin/xenpvnetboot \ | ||
| 49 | " | ||
| 50 | |||
| 51 | FILES_xen-tools-xentrace-format = " \ | ||
| 52 | ${bindir}/xentrace_format \ | ||
| 53 | " | ||
| 54 | |||
| 55 | do_configure[noexec] = "1" | ||
| 56 | do_compile[noexec] = "1" | ||
| 57 | |||
| 58 | do_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 | } | ||
