summaryrefslogtreecommitdiffstats
path: root/recipes-containers/criu/criu_1.2.bb
blob: de07842c72d57dc4bb8287aa9bf97b6e29721016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SUMMARY = "CRIU"
DESCRIPTION = "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"
HOMEPAGE = "http://criu.org"
SECTION = "console/tools"
LICENSE = "GPLv2"

LIC_FILES_CHKSUM = "file://COPYING;md5=5cc804625b8b491b6b4312f0c9cb5efa"

SRCREV = "v1.2"
PR = "r0"
PV = "1.2"

SRC_URI = "git://git.criu.org/crtools.git;protocol=git \
	file://0001-Makefile-Fix-hardcoding.patch"

DEPENDS += "protobuf-c-native protobuf-c"

S = "${WORKDIR}/git"

ARMV_armv7a = "ARMV=7"
ARMV_armv6 = "ARMV=6"
ARMV ?= ""
EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} WERROR=0 ${ARMV}"

do_compile () {
	unset CFLAGS
	unset LDFLAGS
	oe_runmake
}

do_install () {
	mkdir -p ${D}/${bindir}
	install -m 755 ${S}/criu ${D}/${bindir}/criu
}