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>
This commit is contained in:
Alexey Firago 2014-09-18 17:00:29 +04:00 committed by Bruce Ashfield
parent f5d690a773
commit 0bf1cabe6b
2 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,42 @@
From fa785bb1eb9cb0039d77836f4658c7bcccae5999 Mon Sep 17 00:00:00 2001
From: Alexey Firago <alexey_firago@mentor.com>
Date: Wed, 9 Jul 2014 02:01:11 +0400
Subject: [PATCH] Makefile: Fix hardcoding
Signed-off-by: Alexey Firago <alexey_firago@mentor.com>
---
Makefile | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
index bda808d..4614ae2 100644
--- a/Makefile
+++ b/Makefile
@@ -23,15 +23,15 @@ export VERSION_SO_MAJOR VERSION_SO_MINOR
# Common definitions
#
-FIND := find
-CSCOPE := cscope
-RM := rm -f
-LD := $(CROSS_COMPILE)ld
-CC := $(CROSS_COMPILE)gcc
-NM := $(CROSS_COMPILE)nm
-SH := bash
-MAKE := make
-OBJCOPY := $(CROSS_COMPILE)objcopy
+FIND ?= find
+CSCOPE ?= cscope
+RM ?= rm -f
+LD ?= $(CROSS_COMPILE)ld
+CC ?= $(CROSS_COMPILE)gcc
+NM ?= $(CROSS_COMPILE)nm
+SH ?= bash
+MAKE ?= make
+OBJCOPY ?= $(CROSS_COMPILE)objcopy
CFLAGS += $(USERCFLAGS)
--
1.9.1

View File

@ -0,0 +1,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
}