Download and compile the source code

Source: Internet
Author: User

AndroidThe driving development is naturally inseparable from the source code. As a beginner, we start with the download, compilation, and testing of the source code. The first step, nature is our configuration environment, first we want to configureAndroidSource code download environment, in the build environment, the first step is to create a directory to store footstep files. Then downloadRepofootstep file, this is for downloadAndroidsource code, the third step is to create a storageAndroidThe source code of the directory, the fourth step is the initialization, the last step is our downloadAndroidthe source code. In theAndroidmost of the source code is a directory. They are designed to store different sub-projects. and downloadAndroida part of a neutron project requires only a few commands, such as:Repo Syncand so on. Download GoodAndroidsource code, you need to compile theAndroidsource of the code. The first thing to forget is to initialize the build environment, then select the target and choose a variable to be our goal. Then the source code is compiled. The main operational command is Makeup. Although it is said that the main Makemainly,but using Makewill make compilation much less efficient, because it will only take advantage of aCPU. Androidthe transplant is mainlyLinuxporting of the kernel. andLinuxthe kernel porting is primarilyLinux-driven porting. So we have to configure and compileLinuxkernel.

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.