diff options
author | Zhang Ning <ning.a.zhang@intel.com> | 2019-04-04 05:22:32 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2019-04-21 06:25:26 +0300 |
commit | cffeb263b7a79d6ff4c2f01e479365338f80307e (patch) | |
tree | c6632faa635493413841df16a61593d22d1b297c /Documentation | |
parent | 31e3e01fe49c0f19fd8eda62a5bf5322c3bb38e5 (diff) |
Add notes for Android NDK cross compile
some notes for Android NDK cross compile.
Signed-off-by: Zhang Ning <ning.a.zhang@intel.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/HOWTO.cross-compile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/HOWTO.cross-compile b/Documentation/HOWTO.cross-compile index 749c08113..f1b17842b 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. |