Return-Path: Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com [74.125.83.48]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 52E98E0143A for ; Thu, 6 Dec 2012 06:03:52 -0800 (PST) Received: by mail-ee0-f48.google.com with SMTP id b57so4044011eek.35 for ; Thu, 06 Dec 2012 06:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=xKwc8fQq3NlqBdU0J1V0uNBbk3bvkG1TZSsFdHrZB5k=; b=rfMlS0R60zlmS3jhYJ2h53Xi4a1US6mKCo7Kmar2arwDdsKvafLtpHPp4daPVpa8PO tTc08GTxQqtsdhZqPMM8dGwDyj6L0Cvt3Dpz0CkyQlKcuw6Du5yef2ZoJmKFvE4fS3v0 9nIh85k983QLIhuTLvk07swzwYDqZWdT48Ek++JBXFVZRzdJT2al70+EA4RKyzfIjbXn J6sTnSTiV6iqMOe1aYgkCykFtNG+1bv7S5KhUnKRSzmuwofF7g9kNHKxOCw3muxjjx53 J+UY7Wg3MYx/19dEUeKP330Wl/Er4zgsT5v5d/o02gCaI8uEvPcuKoCt/mfsrXf2oI4i WQoA== Received: by 10.14.178.70 with SMTP id e46mr6305832eem.1.1354802631511; Thu, 06 Dec 2012 06:03:51 -0800 (PST) Received: from nysan (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPS id d3sm16074005eeo.13.2012.12.06.06.03.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Dec 2012 06:03:50 -0800 (PST) Received: by nysan (Postfix, from userid 1000) id 934CD400D24; Thu, 6 Dec 2012 15:03:48 +0100 (CET) From: david.c.nystrom@gmail.com To: meta-virtualization@yoctoproject.org Date: Thu, 6 Dec 2012 15:03:10 +0100 Message-Id: <1354802601-10840-4-git-send-email-david.c.nystrom@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1354802601-10840-1-git-send-email-david.c.nystrom@gmail.com> References: <1354802601-10840-1-git-send-email-david.c.nystrom@gmail.com> MIME-Version: 1.0 Subject: [PATCHv3 03/14] Added CRIU recipe X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 14:03:52 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: David Nyström --- recipes-containers/criu/criu_git.bb | 29 ++++++++++++ .../criu/files/0001-Fixed-hardcoding.patch | 47 ++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 recipes-containers/criu/criu_git.bb create mode 100644 recipes-containers/criu/files/0001-Fixed-hardcoding.patch diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb new file mode 100644 index 0000000..878827f --- /dev/null +++ b/recipes-containers/criu/criu_git.bb @@ -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 +} \ No newline at end of file diff --git a/recipes-containers/criu/files/0001-Fixed-hardcoding.patch b/recipes-containers/criu/files/0001-Fixed-hardcoding.patch new file mode 100644 index 0000000..5ff0a78 --- /dev/null +++ b/recipes-containers/criu/files/0001-Fixed-hardcoding.patch @@ -0,0 +1,47 @@ +From 32c6c037a6de0a0972e16949ebb64ffebb5b7bcc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?David=20Nystr=C3=B6m?= +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 + -- 1.7.9.5