4 download and compile the source code

Source: Internet
Author: User

1, Android Transplant is mainly the Linux kernel porting, and the Linux kernel migration is mainly Linux drive migration, in order to develop and test the Linux drive, to build two sets of development environment under Ubuntu: Android Application development environment and Linux kernel development environment;

2. Android source code includes: the source code of the application embedded in the Android system, the source code of the various tools of ANDROIDSDK, ANDROIDNDK source code and the HAL sources;

3. Configure the Android source code download environment:

(1) Create a directory to hold the download script file (repo);

(2) Download repo script file (for downloading Android source code);

(3) Create a directory to store the Android source code;

(4) initialization;

(5) Start to download the source code;

4, if you understand the directory structure of Android source code, you can use repo sync or git clone command to download only some of the source code;

5, compile the Android source code steps:

(1) initializing the compilation environment;

(2) Select the target;

(3) compiling Android source code;

6, note that Android does not directly use the Linux kernel downloaded from www.kernel.org, you must use the URL provided by Google to download the Linux kernel source code for Android use;

7, download and compile the Linux kernel source code of the steps in the book is very detailed, to master;

4 download and compile the source code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.