[meta-virtualization] [PATCH] criu: add recipe for v1.2 release
Firago, Alexey
Alexey_Firago at mentor.com
Fri Sep 19 08:57:22 PDT 2014
Thanks!
One side question: CRIU requires number of flags in kernel config enabled, is it reasonable to create CRIU-specific .scc file here - http://git.yoctoproject.org/cgit/cgit.cgi/meta-virtualization/tree/recipes-kernel/linux/linux-yocto ?
Regards,
Alexey
________________________________________
From: Bruce Ashfield [bruce.ashfield at gmail.com]
Sent: Friday, September 19, 2014 19:15
To: Firago, Alexey
Cc: meta-virtualization at yoctoproject.org
Subject: Re: [meta-virtualization] [PATCH] criu: add recipe for v1.2 release
Looks good to me.
merged!
Bruce
On Thu, Sep 18, 2014 at 9:00 AM, Alexey Firago <alexey_firago at mentor.com> wrote:
> Building and basic functionality verified on Wandboard-dual
> with linux-wandboard_3.10.17.
>
> Signed-off-by: Alexey Firago <alexey_firago at mentor.com>
> ---
> .../criu-1.2/0001-Makefile-Fix-hardcoding.patch | 42 ++++++++++++++++++++++
> recipes-containers/criu/criu_1.2.bb | 39 ++++++++++++++++++++
> 2 files changed, 81 insertions(+)
> create mode 100644 recipes-containers/criu/criu-1.2/0001-Makefile-Fix-hardcoding.patch
> create mode 100644 recipes-containers/criu/criu_1.2.bb
>
> 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 0000000..fd9ab5b
> --- /dev/null
> +++ b/recipes-containers/criu/criu-1.2/0001-Makefile-Fix-hardcoding.patch
> @@ -0,0 +1,42 @@
> +From fa785bb1eb9cb0039d77836f4658c7bcccae5999 Mon Sep 17 00:00:00 2001
> +From: Alexey Firago <alexey_firago at mentor.com>
> +Date: Wed, 9 Jul 2014 02:01:11 +0400
> +Subject: [PATCH] Makefile: Fix hardcoding
> +
> +Signed-off-by: Alexey Firago <alexey_firago at 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
> +
> diff --git a/recipes-containers/criu/criu_1.2.bb b/recipes-containers/criu/criu_1.2.bb
> new file mode 100644
> index 0000000..de07842
> --- /dev/null
> +++ b/recipes-containers/criu/criu_1.2.bb
> @@ -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
> +}
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
More information about the meta-virtualization
mailing list