mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
Added CRIU recipe
Signed-off-by: David Nyström <david.nystrom@enea.com> Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
fec87b0598
commit
02e4046656
29
recipes-containers/criu/criu_git.bb
Normal file
29
recipes-containers/criu/criu_git.bb
Normal file
|
@ -0,0 +1,29 @@
|
|||
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=12920dfe6b35a0758155f0e62878b366"
|
||||
|
||||
SRCREV = "d81c9a4618db2f618bdb8e207b7f0fec631c7142"
|
||||
PR = "r0"
|
||||
PV = "0.2+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://git.criu.org/crtools.git;protocol=git \
|
||||
file://0001-Fixed-hardcoding.patch"
|
||||
|
||||
DEPENDS += "protobuf-c-native protobuf-c"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} WERROR=0"
|
||||
|
||||
do_compile () {
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_install () {
|
||||
mkdir -p ${D}/${bindir}
|
||||
install -m 755 ${S}/crtools ${D}/${bindir}/crtools
|
||||
}
|
47
recipes-containers/criu/files/0001-Fixed-hardcoding.patch
Normal file
47
recipes-containers/criu/files/0001-Fixed-hardcoding.patch
Normal file
|
@ -0,0 +1,47 @@
|
|||
From 32c6c037a6de0a0972e16949ebb64ffebb5b7bcc Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?David=20Nystr=C3=B6m?= <david.nystrom@enea.com>
|
||||
Date: Wed, 28 Nov 2012 15:07:27 +0100
|
||||
Subject: [PATCH] Fixed hardcoding
|
||||
|
||||
---
|
||||
Makefile.inc | 24 ++++++++++++------------
|
||||
1 file changed, 12 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/Makefile.inc b/Makefile.inc
|
||||
index 722cbfc..3ae693e 100644
|
||||
--- a/Makefile.inc
|
||||
+++ b/Makefile.inc
|
||||
@@ -11,18 +11,18 @@ else
|
||||
endif
|
||||
export E Q
|
||||
|
||||
-FIND := find
|
||||
-CSCOPE := cscope
|
||||
-TAGS := ctags
|
||||
-RM := rm
|
||||
-LD := ld
|
||||
-HEXDUMP := hexdump
|
||||
-CC := gcc
|
||||
-ECHO := echo
|
||||
-NM := nm
|
||||
-AWK := awk
|
||||
-SH := sh
|
||||
-MAKE := make
|
||||
+FIND ?= find
|
||||
+CSCOPE ?= cscope
|
||||
+TAGS ?= ctags
|
||||
+RM ?= rm
|
||||
+LD ?= ld
|
||||
+HEXDUMP ?= hexdump
|
||||
+CC ?= gcc
|
||||
+ECHO ?= echo
|
||||
+NM ?= nm
|
||||
+AWK ?= awk
|
||||
+SH ?= sh
|
||||
+MAKE ?= make
|
||||
|
||||
# Additional ARCH settings for x86
|
||||
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
|
||||
--
|
||||
1.7.9.5
|
||||
|
Loading…
Reference in New Issue
Block a user