[CRIU] [V3 4/4] Add notes for Android NDK cross compile
ning.a.zhang at intel.com
ning.a.zhang at intel.com
Thu Apr 4 05:22:32 MSK 2019
From: Zhang Ning <ning.a.zhang at intel.com>
some notes for Android NDK cross compile.
Signed-off-by: Zhang Ning <ning.a.zhang at intel.com>
---
Documentation/HOWTO.cross-compile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/HOWTO.cross-compile b/Documentation/HOWTO.cross-compile
index 749c0811..f1b17842 100644
--- a/Documentation/HOWTO.cross-compile
+++ b/Documentation/HOWTO.cross-compile
@@ -29,3 +29,11 @@ This HOWTO explains how to cross-compile CRIU on x86
13. Compile CRIU:
ARCH=<target arch> CROSS_COMPILE=$TARGET- CFLAGS=`pkg-config --cflags libprotobuf-c` LDFLAGS="`pkg-config --libs libprotobuf-c`" make
+
+Special notes for Android NDK cross compile:
+
+1, Android NDK doesn't have some headers required by CRIU build, they are <aio.h>, <sys/fanotify.h>
+
+2, Android NDK doesn't have some function required by CRIU build, they are aio*, fanotify_init, fanotify_mark, povit_root, index.
+
+3, in order to pass build with Android NDK, you implement them yourself, and link them to CRIU.
--
2.20.1
More information about the CRIU
mailing list