diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2015-07-08 11:08:01 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2015-07-08 11:09:24 +0200 |
commit | ec64b2418ccef1e14c6e58b8ca81bb9162c1dfeb (patch) | |
tree | bff0bd4240f00bbb21624c1df55583f61abaea25 /recipes-containers/criu | |
download | meta-virtualization-daisy-enea.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-containers/criu')
-rw-r--r-- | recipes-containers/criu/criu_git.bb | 29 | ||||
-rw-r--r-- | recipes-containers/criu/files/0001-Fixed-hardcoding.patch | 47 | ||||
-rw-r--r-- | recipes-containers/criu/files/disable_tests.patch | 19 | ||||
-rw-r--r-- | recipes-containers/criu/protobuf-c_0.15.bb | 20 | ||||
-rw-r--r-- | recipes-containers/criu/protobuf_2.4.1.bb | 18 |
5 files changed, 133 insertions, 0 deletions
diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb new file mode 100644 index 00000000..878827f8 --- /dev/null +++ b/recipes-containers/criu/criu_git.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "CRIU" | ||
2 | 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" | ||
3 | HOMEPAGE = "http://criu.org" | ||
4 | SECTION = "console/tools" | ||
5 | LICENSE = "GPLv2" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=12920dfe6b35a0758155f0e62878b366" | ||
8 | |||
9 | SRCREV = "d81c9a4618db2f618bdb8e207b7f0fec631c7142" | ||
10 | PR = "r0" | ||
11 | PV = "0.2+git${SRCPV}" | ||
12 | |||
13 | SRC_URI = "git://git.criu.org/crtools.git;protocol=git \ | ||
14 | file://0001-Fixed-hardcoding.patch" | ||
15 | |||
16 | DEPENDS += "protobuf-c-native protobuf-c" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} WERROR=0" | ||
21 | |||
22 | do_compile () { | ||
23 | oe_runmake | ||
24 | } | ||
25 | |||
26 | do_install () { | ||
27 | mkdir -p ${D}/${bindir} | ||
28 | install -m 755 ${S}/crtools ${D}/${bindir}/crtools | ||
29 | } \ 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 00000000..5ff0a78d --- /dev/null +++ b/recipes-containers/criu/files/0001-Fixed-hardcoding.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 32c6c037a6de0a0972e16949ebb64ffebb5b7bcc Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?David=20Nystr=C3=B6m?= <david.nystrom@enea.com> | ||
3 | Date: Wed, 28 Nov 2012 15:07:27 +0100 | ||
4 | Subject: [PATCH] Fixed hardcoding | ||
5 | |||
6 | --- | ||
7 | Makefile.inc | 24 ++++++++++++------------ | ||
8 | 1 file changed, 12 insertions(+), 12 deletions(-) | ||
9 | |||
10 | diff --git a/Makefile.inc b/Makefile.inc | ||
11 | index 722cbfc..3ae693e 100644 | ||
12 | --- a/Makefile.inc | ||
13 | +++ b/Makefile.inc | ||
14 | @@ -11,18 +11,18 @@ else | ||
15 | endif | ||
16 | export E Q | ||
17 | |||
18 | -FIND := find | ||
19 | -CSCOPE := cscope | ||
20 | -TAGS := ctags | ||
21 | -RM := rm | ||
22 | -LD := ld | ||
23 | -HEXDUMP := hexdump | ||
24 | -CC := gcc | ||
25 | -ECHO := echo | ||
26 | -NM := nm | ||
27 | -AWK := awk | ||
28 | -SH := sh | ||
29 | -MAKE := make | ||
30 | +FIND ?= find | ||
31 | +CSCOPE ?= cscope | ||
32 | +TAGS ?= ctags | ||
33 | +RM ?= rm | ||
34 | +LD ?= ld | ||
35 | +HEXDUMP ?= hexdump | ||
36 | +CC ?= gcc | ||
37 | +ECHO ?= echo | ||
38 | +NM ?= nm | ||
39 | +AWK ?= awk | ||
40 | +SH ?= sh | ||
41 | +MAKE ?= make | ||
42 | |||
43 | # Additional ARCH settings for x86 | ||
44 | ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ | ||
45 | -- | ||
46 | 1.7.9.5 | ||
47 | |||
diff --git a/recipes-containers/criu/files/disable_tests.patch b/recipes-containers/criu/files/disable_tests.patch new file mode 100644 index 00000000..dac89421 --- /dev/null +++ b/recipes-containers/criu/files/disable_tests.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | diff -Naur protobuf-c-0.15.old/src/Makefile.am protobuf-c-0.15/src/Makefile.am | ||
2 | --- protobuf-c-0.15.old/src/Makefile.am 2012-11-28 14:59:57.845251943 +0100 | ||
3 | +++ protobuf-c-0.15/src/Makefile.am 2012-11-28 15:00:23.549252632 +0100 | ||
4 | @@ -1,5 +1,5 @@ | ||
5 | if BUILD_PROTOC_C | ||
6 | -SUBDIRS = . test | ||
7 | + | ||
8 | bin_PROGRAMS = protoc-c | ||
9 | protoc_c_SOURCES = \ | ||
10 | google/protobuf/compiler/c/c_service.cc \ | ||
11 | @@ -23,7 +23,7 @@ | ||
12 | lib_LTLIBRARIES = libprotobuf-c.la | ||
13 | protobufcincludedir = $(includedir)/google/protobuf-c | ||
14 | |||
15 | -EXTRA_DIST = CMakeLists.txt test/CMakeLists.txt | ||
16 | +EXTRA_DIST = CMakeLists.txt | ||
17 | |||
18 | libprotobuf_c_la_SOURCES = \ | ||
19 | google/protobuf-c/protobuf-c-dispatch.c \ | ||
diff --git a/recipes-containers/criu/protobuf-c_0.15.bb b/recipes-containers/criu/protobuf-c_0.15.bb new file mode 100644 index 00000000..d9d4fd97 --- /dev/null +++ b/recipes-containers/criu/protobuf-c_0.15.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "protobuf-c" | ||
2 | DESCRIPTION = "This package provides a code generator and runtime libraries to use Protocol Buffers from pure C" | ||
3 | HOMEPAGE = "http://code.google.com/p/protobuf-c/" | ||
4 | SECTION = "console/tools" | ||
5 | LICENSE = "Apache-2.0" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://src/google/protobuf-c/protobuf-c.c;endline=33;md5=333140fae7cf8a38dc5f980ddb63704b" | ||
8 | |||
9 | PR = "r0" | ||
10 | |||
11 | DEPENDS = "protobuf" | ||
12 | |||
13 | SRC_URI[md5sum] = "73ff0c8df50d2eee75269ad8f8c07dc8" | ||
14 | SRC_URI[sha256sum] = "8fcb538e13a5431c46168fc8f2e6ad2574e2db9b684c0c72b066e24f010a0036" | ||
15 | SRC_URI = "http://protobuf-c.googlecode.com/files/protobuf-c-${PV}.tar.gz \ | ||
16 | file://disable_tests.patch" | ||
17 | |||
18 | inherit autotools | ||
19 | |||
20 | BBCLASSEXTEND = "native nativesdk" \ No newline at end of file | ||
diff --git a/recipes-containers/criu/protobuf_2.4.1.bb b/recipes-containers/criu/protobuf_2.4.1.bb new file mode 100644 index 00000000..d8f1b530 --- /dev/null +++ b/recipes-containers/criu/protobuf_2.4.1.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "protobuf" | ||
2 | DESCRIPTION = "Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats." | ||
3 | HOMEPAGE = "http://code.google.com/p/protobuf/" | ||
4 | SECTION = "console/tools" | ||
5 | LICENSE = "BSD-3-Clause" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514" | ||
8 | |||
9 | PR = "r0" | ||
10 | |||
11 | SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5" | ||
12 | SRC_URI[sha256sum] = "eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567" | ||
13 | SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz" | ||
14 | |||
15 | EXTRA_OECONF += " --with-protoc=echo" | ||
16 | inherit autotools | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" \ No newline at end of file | ||