简体   繁体   中英

How to compile Android Kernel source code on ubuntu?

I have downloaded both Android 4.2 source code and Android kernel source code (common) separately by following the procedure mentioned in Android website. But I am not able to get the way how to start compiling both kernel code and source code on Ubuntu 12.04. I have also downloaded the Android Emulator.

Please mention the steps required to compile.

AOSP site contains Downloading and Building guide: http://source.android.com/source/initializing.html

You should set up your local work environment to build the Android source files. You will need to use Linux (Ubuntu in yor case) or Mac OS. Building under Windows is not currently supported.

Note: The source download is approximately 8.5GB in size. You will need over 30GB free to complete a single build, and up to 100GB (or more) for a full set of builds.

Detailed instructions for Ubuntu and MacOS you can see on AOSP site. In general you will need:

Note: It is also possible to build Android in a virtual machine. If you are running Linux in a virtual machine, you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree.

On XDA-developers you can see this Ubuntu-guide: http://forum.xda-developers.com/showthread.php?t=2114594

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM