[CRIU] Need Help on Android ARM64

Christopher Covington cov at codeaurora.org
Mon Jan 25 05:45:43 PST 2016


Hi Abdullah,

On 01/25/2016 04:41 AM, Cyrill Gorcunov wrote:
> On Mon, Jan 25, 2016 at 12:33:55PM +0300, Pavel Emelyanov wrote:
>> On 01/22/2016 05:52 AM, Abdullah Yousafzai wrote:
>>> Compiling CRIU for arm64 is straight and work as piece of cake but I need it to compile it for
>>> android and specifically on ARM64. So for this reason I have to rewrite the Makefiles to
>>> Android.mk in order to be understandable and in compliance with the android build environment. 
>>> I only need to checkpoint user apps and check the behavior on Android any help on breaking down
>>> the existing Makefile and transforming it to Android.mk will be appreciated. 
>>
>> I've CC-ed Christopher for help with ARM and Cyrill for help with Makefiles.
> 
> Sorry for not replying early, managed to miss the mail. I'm ready to help but
> the problem is that I've no clue about Android specifics. I've been playing with
> andoid apps but they were using ant tool for building applications which is
> very different from traditional make.

My suggestion would be to start with a stub Android.mk that calls the
existing makefiles. I believe the Linux kernel Android.mk can be
referred to as an example of this. There are burdens and benefits to
writing and maintaining a parallel set of build instructions. I think a
stub Android.mk could deliver many of the benefits with little of the
burden. Once that's working, committed, and in use, I think it will be
clearer what larger-scale changes and additions would be most useful.

I've run CRIU on Android (both AArch32 and AArch64), but it was built
against the GNU C library, not the Android C library, Bionic. There have
been some other Android efforts in the past. You could search the
mailing list archives; I unfortunately don't remember the details. It's
possible some Bionic porting will be required, in addition to handling
Android-specific resources.

Regards,
Christopher Covington

-- 
Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


More information about the CRIU mailing list