diff options
author | Nam Ninh <nam.ninh@windriver.com> | 2015-03-30 18:10:53 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-03-30 23:45:22 -0400 |
commit | 9a095cb70e8f221619dbab50be0d27e8ed55b8b0 (patch) | |
tree | 77dd7850f6369a35d77b1455921452eb4e9642d1 /recipes-containers/criu/criu_git.bb | |
parent | aafab33979dede1fa5afef80b96401a3dafc2419 (diff) | |
download | meta-virtualization-9a095cb70e8f221619dbab50be0d27e8ed55b8b0.tar.gz |
criu: upgrade from version from 1.2 to 1.4
Upgrade criu from version from 1.2 to 1.4.
criu is the only user of protobuf and only supported on x86 and arm,
so limit protobuf support on x86 and arm too.
Signed-off-by: Nam Ninh <nam.ninh@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/criu/criu_git.bb')
-rw-r--r-- | recipes-containers/criu/criu_git.bb | 46 |
1 files changed, 36 insertions, 10 deletions
diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb index 878827f8..2b8921fa 100644 --- a/recipes-containers/criu/criu_git.bb +++ b/recipes-containers/criu/criu_git.bb | |||
@@ -1,29 +1,55 @@ | |||
1 | SUMMARY = "CRIU" | 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" | 2 | DESCRIPTION = "Checkpoint/Restore In Userspace, or CRIU, is a software tool for \ |
3 | Linux operating system. Using this tool, you can freeze a running application \ | ||
4 | (or part of it) and checkpoint it to a hard drive as a collection of files. \ | ||
5 | You can then use the files to restore and run the application from the point \ | ||
6 | it was frozen at. The distinctive feature of the CRIU project is that it is \ | ||
7 | mainly implemented in user space" | ||
3 | HOMEPAGE = "http://criu.org" | 8 | HOMEPAGE = "http://criu.org" |
4 | SECTION = "console/tools" | 9 | SECTION = "console/tools" |
5 | LICENSE = "GPLv2" | 10 | LICENSE = "GPLv2" |
6 | 11 | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=12920dfe6b35a0758155f0e62878b366" | 12 | EXCLUDE_FROM_WORLD = "1" |
8 | 13 | ||
9 | SRCREV = "d81c9a4618db2f618bdb8e207b7f0fec631c7142" | 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=5cc804625b8b491b6b4312f0c9cb5efa" |
15 | |||
16 | SRCREV = "bda033e1e91ac5b86afd0a9fdb9fcdd581da6185" | ||
10 | PR = "r0" | 17 | PR = "r0" |
11 | PV = "0.2+git${SRCPV}" | 18 | PV = "1.4+git${SRCPV}" |
12 | 19 | ||
13 | SRC_URI = "git://git.criu.org/crtools.git;protocol=git \ | 20 | SRC_URI = "git://git.criu.org/crtools.git;protocol=git \ |
14 | file://0001-Fixed-hardcoding.patch" | 21 | file://0001-criu-Fix-toolchain-hardcode.patch \ |
22 | file://0002-criu-Skip-documentation-install.patch \ | ||
23 | " | ||
24 | |||
25 | COMPATIBLE_HOST = "(x86_64|arm).*-linux" | ||
15 | 26 | ||
16 | DEPENDS += "protobuf-c-native protobuf-c" | 27 | DEPENDS += "protobuf-c-native protobuf-c" |
17 | 28 | ||
18 | S = "${WORKDIR}/git" | 29 | S = "${WORKDIR}/git" |
19 | 30 | ||
20 | EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} WERROR=0" | 31 | # |
32 | # CRIU just can be built on ARMv7 and ARMv6, so the Makefile check | ||
33 | # if the ARCH is ARMv7 or ARMv6. | ||
34 | # ARM BSPs need set CRIU_BUILD_ARCH variable for building CRIU. | ||
35 | # | ||
36 | EXTRA_OEMAKE_arm += "ARCH=${CRIU_BUILD_ARCH} WERROR=0" | ||
37 | EXTRA_OEMAKE_x86-64 += "ARCH=${TARGET_ARCH} WERROR=0" | ||
38 | |||
39 | EXTRA_OEMAKE_append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir}" | ||
40 | EXTRA_OEMAKE_append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}" | ||
41 | |||
42 | CFLAGS += "-D__USE_GNU -D_GNU_SOURCE" | ||
43 | |||
44 | # overide LDFLAGS to allow criu to build without: "x86_64-poky-linux-ld: unrecognized option '-Wl,-O1'" | ||
45 | export LDFLAGS="" | ||
21 | 46 | ||
22 | do_compile () { | 47 | do_compile () { |
23 | oe_runmake | 48 | oe_runmake |
24 | } | 49 | } |
25 | 50 | ||
26 | do_install () { | 51 | do_install () { |
27 | mkdir -p ${D}/${bindir} | 52 | oe_runmake DESTDIR="${D}" install |
28 | install -m 755 ${S}/crtools ${D}/${bindir}/crtools | 53 | } |
29 | } \ No newline at end of file | 54 | |
55 | FILES_${PN} += "${systemd_unitdir}/" | ||