diff options
author | Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | 2018-07-16 09:32:48 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-07-22 23:15:21 -0400 |
commit | 10a427caddb31d919c9e50373e4f7d940147dcd3 (patch) | |
tree | 882056e6115adbcf55e0e671f1eef5808f65c04e | |
parent | 1bcc2431a50df3266e7c5b11c7a6de1422fa07b2 (diff) | |
download | meta-virtualization-10a427caddb31d919c9e50373e4f7d940147dcd3.tar.gz |
criu: upgrade to 3.9
1) Upgrade criu from 3.4 to 3.9.
2) Delete fix-building-on-newest-glibc-and-kernel.patch for it has been merged in upstream.
3) Add CFLAGS_arm += "-D__WORDSIZE"
add this CFLAGS to solve the compile problem for arm.
The log is as following:
| ....../tmp/work/armv5e-poky-linux-gnueabi/criu/3.9+gitAUTOINC+202b7745bd-r0/recipe-sysroot/usr/include/bits/wordsize.h:36:2: error: #error "__WORDSIZE is not defined"
| #error "__WORDSIZE is not defined"
| ^
| ....../tmp/work/armv5e-poky-linux-gnueabi/criu/3.9+gitAUTOINC+202b7745bd-r0/recipe-sysroot/usr/include/bits/wordsize.h:59:2: error: #
4) Add export C_INCLUDE_PATH="${STAGING_INCDIR}/libnl3"
add C_INCLUDE_PATH to solve the compile problem for arm.
which is libnetlink.c can't find head file.
| In file included from criu/libnetlink.c:5:
| ....../tmp/work/armv5e-p
| oky-linux-gnueabi/criu/3.9+gitAUTOINC+202b7745bd-r0/recipe-sysroot/usr/include/libnl3/netlink/attr.h:15:10: fatal error: netlink/netlink.h: No such file or directory #include <netlink/netlink.h>
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-containers/criu/criu_3.9.bb (renamed from recipes-containers/criu/criu_git.bb) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_3.9.bb index 7d62f354..36c356db 100644 --- a/recipes-containers/criu/criu_git.bb +++ b/recipes-containers/criu/criu_3.9.bb | |||
@@ -13,15 +13,14 @@ EXCLUDE_FROM_WORLD = "1" | |||
13 | 13 | ||
14 | LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2" | 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2" |
15 | 15 | ||
16 | SRCREV = "a31c1854e10580a09621e539c3ec052b875a8e06" | 16 | SRCREV = "202b7745bd0c37a1732ebe2fb009a157d338bf95" |
17 | PV = "3.4+git${SRCPV}" | 17 | PV = "3.9+git${SRCPV}" |
18 | 18 | ||
19 | SRC_URI = "git://github.com/xemul/criu.git;protocol=git \ | 19 | SRC_URI = "git://github.com/xemul/criu.git;protocol=git \ |
20 | file://0001-criu-Fix-toolchain-hardcode.patch \ | 20 | file://0001-criu-Fix-toolchain-hardcode.patch \ |
21 | file://0002-criu-Skip-documentation-install.patch \ | 21 | file://0002-criu-Skip-documentation-install.patch \ |
22 | file://0001-criu-Change-libraries-install-directory.patch \ | 22 | file://0001-criu-Change-libraries-install-directory.patch \ |
23 | file://lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch \ | 23 | file://lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch \ |
24 | file://fix-building-on-newest-glibc-and-kernel.patch \ | ||
25 | " | 24 | " |
26 | 25 | ||
27 | COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux" | 26 | COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux" |
@@ -46,9 +45,11 @@ EXTRA_OEMAKE_append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unit | |||
46 | CFLAGS += "-D__USE_GNU -D_GNU_SOURCE " | 45 | CFLAGS += "-D__USE_GNU -D_GNU_SOURCE " |
47 | 46 | ||
48 | CFLAGS += " -I${STAGING_INCDIR} -I${STAGING_INCDIR}/libnl3" | 47 | CFLAGS += " -I${STAGING_INCDIR} -I${STAGING_INCDIR}/libnl3" |
48 | CFLAGS_arm += "-D__WORDSIZE" | ||
49 | 49 | ||
50 | # overide LDFLAGS to allow criu to build without: "x86_64-poky-linux-ld: unrecognized option '-Wl,-O1'" | 50 | # overide LDFLAGS to allow criu to build without: "x86_64-poky-linux-ld: unrecognized option '-Wl,-O1'" |
51 | export LDFLAGS="" | 51 | export LDFLAGS="" |
52 | export C_INCLUDE_PATH="${STAGING_INCDIR}/libnl3" | ||
52 | 53 | ||
53 | export BUILD_SYS | 54 | export BUILD_SYS |
54 | export HOST_SYS | 55 | export HOST_SYS |