summaryrefslogtreecommitdiffstats
path: root/recipes-containers/criu/criu_git.bb
diff options
context:
space:
mode:
authorNam Ninh <nam.ninh@windriver.com>2015-03-30 18:10:53 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-03-30 23:45:22 -0400
commit9a095cb70e8f221619dbab50be0d27e8ed55b8b0 (patch)
tree77dd7850f6369a35d77b1455921452eb4e9642d1 /recipes-containers/criu/criu_git.bb
parentaafab33979dede1fa5afef80b96401a3dafc2419 (diff)
downloadmeta-virtualization-9a095cb70e8f221619dbab50be0d27e8ed55b8b0.tar.gz
criu: upgrade from version from 1.2 to 1.4
Upgrade criu from version from 1.2 to 1.4. criu is the only user of protobuf and only supported on x86 and arm, so limit protobuf support on x86 and arm too. Signed-off-by: Nam Ninh <nam.ninh@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/criu/criu_git.bb')
-rw-r--r--recipes-containers/criu/criu_git.bb46
1 files changed, 36 insertions, 10 deletions
diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb
index 878827f8..2b8921fa 100644
--- a/recipes-containers/criu/criu_git.bb
+++ b/recipes-containers/criu/criu_git.bb
@@ -1,29 +1,55 @@
1SUMMARY = "CRIU" 1SUMMARY = "CRIU"
2DESCRIPTION = "Checkpoint/Restore In Userspace, or CRIU, is a software tool for Linux operating system. Using this tool, you can freeze a running application (or part of it) and checkpoint it to a hard drive as a collection of files. You can then use the files to restore and run the application from the point it was frozen at. The distinctive feature of the CRIU project is that it is mainly implemented in user space" 2DESCRIPTION = "Checkpoint/Restore In Userspace, or CRIU, is a software tool for \
3Linux operating system. Using this tool, you can freeze a running application \
4(or part of it) and checkpoint it to a hard drive as a collection of files. \
5You can then use the files to restore and run the application from the point \
6it was frozen at. The distinctive feature of the CRIU project is that it is \
7mainly implemented in user space"
3HOMEPAGE = "http://criu.org" 8HOMEPAGE = "http://criu.org"
4SECTION = "console/tools" 9SECTION = "console/tools"
5LICENSE = "GPLv2" 10LICENSE = "GPLv2"
6 11
7LIC_FILES_CHKSUM = "file://COPYING;md5=12920dfe6b35a0758155f0e62878b366" 12EXCLUDE_FROM_WORLD = "1"
8 13
9SRCREV = "d81c9a4618db2f618bdb8e207b7f0fec631c7142" 14LIC_FILES_CHKSUM = "file://COPYING;md5=5cc804625b8b491b6b4312f0c9cb5efa"
15
16SRCREV = "bda033e1e91ac5b86afd0a9fdb9fcdd581da6185"
10PR = "r0" 17PR = "r0"
11PV = "0.2+git${SRCPV}" 18PV = "1.4+git${SRCPV}"
12 19
13SRC_URI = "git://git.criu.org/crtools.git;protocol=git \ 20SRC_URI = "git://git.criu.org/crtools.git;protocol=git \
14 file://0001-Fixed-hardcoding.patch" 21 file://0001-criu-Fix-toolchain-hardcode.patch \
22 file://0002-criu-Skip-documentation-install.patch \
23 "
24
25COMPATIBLE_HOST = "(x86_64|arm).*-linux"
15 26
16DEPENDS += "protobuf-c-native protobuf-c" 27DEPENDS += "protobuf-c-native protobuf-c"
17 28
18S = "${WORKDIR}/git" 29S = "${WORKDIR}/git"
19 30
20EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} WERROR=0" 31#
32# CRIU just can be built on ARMv7 and ARMv6, so the Makefile check
33# if the ARCH is ARMv7 or ARMv6.
34# ARM BSPs need set CRIU_BUILD_ARCH variable for building CRIU.
35#
36EXTRA_OEMAKE_arm += "ARCH=${CRIU_BUILD_ARCH} WERROR=0"
37EXTRA_OEMAKE_x86-64 += "ARCH=${TARGET_ARCH} WERROR=0"
38
39EXTRA_OEMAKE_append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
40EXTRA_OEMAKE_append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}"
41
42CFLAGS += "-D__USE_GNU -D_GNU_SOURCE"
43
44# overide LDFLAGS to allow criu to build without: "x86_64-poky-linux-ld: unrecognized option '-Wl,-O1'"
45export LDFLAGS=""
21 46
22do_compile () { 47do_compile () {
23 oe_runmake 48 oe_runmake
24} 49}
25 50
26do_install () { 51do_install () {
27 mkdir -p ${D}/${bindir} 52 oe_runmake DESTDIR="${D}" install
28 install -m 755 ${S}/crtools ${D}/${bindir}/crtools 53}
29} \ No newline at end of file 54
55FILES_${PN} += "${systemd_unitdir}/"