diff options
| -rw-r--r-- | recipes-containers/criu/criu-1.2/0001-Makefile-Fix-hardcoding.patch | 42 | ||||
| -rw-r--r-- | recipes-containers/criu/criu_1.2.bb | 39 |
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 @@ | |||
| 1 | From fa785bb1eb9cb0039d77836f4658c7bcccae5999 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexey Firago <alexey_firago@mentor.com> | ||
| 3 | Date: Wed, 9 Jul 2014 02:01:11 +0400 | ||
| 4 | Subject: [PATCH] Makefile: Fix hardcoding | ||
| 5 | |||
| 6 | Signed-off-by: Alexey Firago <alexey_firago@mentor.com> | ||
| 7 | --- | ||
| 8 | Makefile | 18 +++++++++--------- | ||
| 9 | 1 file changed, 9 insertions(+), 9 deletions(-) | ||
| 10 | |||
| 11 | diff --git a/Makefile b/Makefile | ||
| 12 | index 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 | -- | ||
| 41 | 1.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 @@ | |||
| 1 | SUMMARY = "CRIU" | ||
| 2 | DESCRIPTION = "Checkpoint/Restore In Userspace, or CRIU, is a software \ | ||
| 3 | tool for Linux operating system. Using this tool, you can freeze a running \ | ||
| 4 | application (or part of it) and checkpoint it to a hard drive \ | ||
| 5 | as a collection of files. You can then use the files to restore and run \ | ||
| 6 | the application from the point it was frozen at. The distinctive feature \ | ||
| 7 | of the CRIU project is that it is mainly implemented in user space" | ||
| 8 | HOMEPAGE = "http://criu.org" | ||
| 9 | SECTION = "console/tools" | ||
| 10 | LICENSE = "GPLv2" | ||
| 11 | |||
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=5cc804625b8b491b6b4312f0c9cb5efa" | ||
| 13 | |||
| 14 | SRCREV = "v1.2" | ||
| 15 | PR = "r0" | ||
| 16 | PV = "1.2" | ||
| 17 | |||
| 18 | SRC_URI = "git://git.criu.org/crtools.git;protocol=git \ | ||
| 19 | file://0001-Makefile-Fix-hardcoding.patch" | ||
| 20 | |||
| 21 | DEPENDS += "protobuf-c-native protobuf-c" | ||
| 22 | |||
| 23 | S = "${WORKDIR}/git" | ||
| 24 | |||
| 25 | ARMV_armv7a = "ARMV=7" | ||
| 26 | ARMV_armv6 = "ARMV=6" | ||
| 27 | ARMV ?= "" | ||
| 28 | EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} WERROR=0 ${ARMV}" | ||
| 29 | |||
| 30 | do_compile () { | ||
| 31 | unset CFLAGS | ||
| 32 | unset LDFLAGS | ||
| 33 | oe_runmake | ||
| 34 | } | ||
| 35 | |||
| 36 | do_install () { | ||
| 37 | mkdir -p ${D}/${bindir} | ||
| 38 | install -m 755 ${S}/criu ${D}/${bindir}/criu | ||
| 39 | } | ||
