[V3,4/4] Add notes for Android NDK cross compile

Submitted by Zhang, Ning A on April 4, 2019, 2:22 a.m.

Details

Message ID 20190404022232.17124-5-ning.a.zhang@intel.com
State Accepted
Series "patches for build CRIU with Android NDK"
Commit cffeb263b7a79d6ff4c2f01e479365338f80307e
Headers show

Commit Message

Zhang, Ning A April 4, 2019, 2:22 a.m.
From: Zhang Ning <ning.a.zhang@intel.com>

some notes for Android NDK cross compile.

Signed-off-by: Zhang Ning <ning.a.zhang@intel.com>
---
 Documentation/HOWTO.cross-compile | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch hide | download patch | download mbox

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.