Commit cffeb263 authored by Zhang Ning's avatar Zhang Ning Committed by Andrei Vagin

Add notes for Android NDK cross compile

some notes for Android NDK cross compile.
Signed-off-by: 's avatarZhang Ning <ning.a.zhang@intel.com>
Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
parent 31e3e01f
...@@ -29,3 +29,11 @@ This HOWTO explains how to cross-compile CRIU on x86 ...@@ -29,3 +29,11 @@ This HOWTO explains how to cross-compile CRIU on x86
13. Compile CRIU: 13. Compile CRIU:
ARCH=<target arch> CROSS_COMPILE=$TARGET- CFLAGS=`pkg-config --cflags libprotobuf-c` LDFLAGS="`pkg-config --libs libprotobuf-c`" make 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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment