[CRIU] [PATCH 0/2] another fixes for build under Android NDK

ning.a.zhang at intel.com ning.a.zhang at intel.com
Mon Apr 1 06:18:29 MSK 2019


From: Zhang Ning <ning.a.zhang at intel.com>

build is passed in docker, but function is not verified under Android IA.

please help to review.

below is not upload, due they are not good to submit.

diff --git a/scripts/nmk/scripts/tools.mk b/scripts/nmk/scripts/tools.mk
index 485fe9f2..d756358d 100644
--- a/scripts/nmk/scripts/tools.mk
+++ b/scripts/nmk/scripts/tools.mk
@@ -4,9 +4,9 @@ ifndef ____nmk_defined__tools
 # System tools shorthands
 RM             := rm -f
 HOSTLD         ?= ld
-LD             := $(CROSS_COMPILE)$(HOSTLD)
+LD             ?= $(CROSS_COMPILE)$(HOSTLD)
 HOSTCC         ?= gcc
-CC             := $(CROSS_COMPILE)$(HOSTCC)
+CC             ?= $(CROSS_COMPILE)$(HOSTCC)

and due to Android NDK missing some function required by CRIU, I have added
a library "libmissing", not uploaded.

this libmissing is very simple, it includes:
aio functions, fanotify_init, fanotify_mark, and index.

Zhang Ning (2):
  fix build issue under Android NDK
  change Makefile in order to pass build under Android NDK

 Makefile               | 2 +-
 criu/Makefile          | 2 +-
 criu/Makefile.packages | 2 +-
 criu/log.c             | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.20.1



More information about the CRIU mailing list