From cffeb263b7a79d6ff4c2f01e479365338f80307e Mon Sep 17 00:00:00 2001 From: Zhang Ning Date: Thu, 4 Apr 2019 10:22:32 +0800 Subject: [PATCH] Add notes for Android NDK cross compile some notes for Android NDK cross compile. Signed-off-by: Zhang Ning Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com> --- Documentation/HOWTO.cross-compile | 8 ++++++++ 1 file changed, 8 insertions(+) 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= 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 , + +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.