summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Firago <alexey_firago@mentor.com>2014-09-18 17:00:29 +0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-09-19 11:14:47 -0400
commit0bf1cabe6bfffc962f1214064c086a63ee81af05 (patch)
tree3227b7caefb2c13ab56e611bca708b8047dc9d31
parentf5d690a773052c3406936d7e0f2e6af6b24c77c2 (diff)
downloadmeta-virtualization-0bf1cabe6bfffc962f1214064c086a63ee81af05.tar.gz
criu: add recipe for v1.2 release
Building and basic functionality verified on Wandboard-dual with linux-wandboard_3.10.17. Signed-off-by: Alexey Firago <alexey_firago@mentor.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--recipes-containers/criu/criu-1.2/0001-Makefile-Fix-hardcoding.patch42
-rw-r--r--recipes-containers/criu/criu_1.2.bb39
2 files changed, 81 insertions, 0 deletions
diff --git a/recipes-containers/criu/criu-1.2/0001-Makefile-Fix-hardcoding.patch b/recipes-containers/criu/criu-1.2/0001-Makefile-Fix-hardcoding.patch
new file mode 100644
index 00000000..fd9ab5b1
--- /dev/null
+++ b/recipes-containers/criu/criu-1.2/0001-Makefile-Fix-hardcoding.patch
@@ -0,0 +1,42 @@
1From fa785bb1eb9cb0039d77836f4658c7bcccae5999 Mon Sep 17 00:00:00 2001
2From: Alexey Firago <alexey_firago@mentor.com>
3Date: Wed, 9 Jul 2014 02:01:11 +0400
4Subject: [PATCH] Makefile: Fix hardcoding
5
6Signed-off-by: Alexey Firago <alexey_firago@mentor.com>
7---
8 Makefile | 18 +++++++++---------
9 1 file changed, 9 insertions(+), 9 deletions(-)
10
11diff --git a/Makefile b/Makefile
12index bda808d..4614ae2 100644
13--- a/Makefile
14+++ b/Makefile
15@@ -23,15 +23,15 @@ export VERSION_SO_MAJOR VERSION_SO_MINOR
16 # Common definitions
17 #
18
19-FIND := find
20-CSCOPE := cscope
21-RM := rm -f
22-LD := $(CROSS_COMPILE)ld
23-CC := $(CROSS_COMPILE)gcc
24-NM := $(CROSS_COMPILE)nm
25-SH := bash
26-MAKE := make
27-OBJCOPY := $(CROSS_COMPILE)objcopy
28+FIND ?= find
29+CSCOPE ?= cscope
30+RM ?= rm -f
31+LD ?= $(CROSS_COMPILE)ld
32+CC ?= $(CROSS_COMPILE)gcc
33+NM ?= $(CROSS_COMPILE)nm
34+SH ?= bash
35+MAKE ?= make
36+OBJCOPY ?= $(CROSS_COMPILE)objcopy
37
38 CFLAGS += $(USERCFLAGS)
39
40--
411.9.1
42
diff --git a/recipes-containers/criu/criu_1.2.bb b/recipes-containers/criu/criu_1.2.bb
new file mode 100644
index 00000000..de07842c
--- /dev/null
+++ b/recipes-containers/criu/criu_1.2.bb
@@ -0,0 +1,39 @@
1SUMMARY = "CRIU"
2DESCRIPTION = "Checkpoint/Restore In Userspace, or CRIU, is a software \
3tool for Linux operating system. Using this tool, you can freeze a running \
4application (or part of it) and checkpoint it to a hard drive \
5as a collection of files. You can then use the files to restore and run \
6the application from the point it was frozen at. The distinctive feature \
7of the CRIU project is that it is mainly implemented in user space"
8HOMEPAGE = "http://criu.org"
9SECTION = "console/tools"
10LICENSE = "GPLv2"
11
12LIC_FILES_CHKSUM = "file://COPYING;md5=5cc804625b8b491b6b4312f0c9cb5efa"
13
14SRCREV = "v1.2"
15PR = "r0"
16PV = "1.2"
17
18SRC_URI = "git://git.criu.org/crtools.git;protocol=git \
19 file://0001-Makefile-Fix-hardcoding.patch"
20
21DEPENDS += "protobuf-c-native protobuf-c"
22
23S = "${WORKDIR}/git"
24
25ARMV_armv7a = "ARMV=7"
26ARMV_armv6 = "ARMV=6"
27ARMV ?= ""
28EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} WERROR=0 ${ARMV}"
29
30do_compile () {
31 unset CFLAGS
32 unset LDFLAGS
33 oe_runmake
34}
35
36do_install () {
37 mkdir -p ${D}/${bindir}
38 install -m 755 ${S}/criu ${D}/${bindir}/criu
39}