Android compilation system analysis: Back to simplicity (1)

Source: Internet
Author: User

Address: http://hi.baidu.com/snownight/blog/item/e9756e062c315e7503088154.html

 

Android Compilation System Analysis

Since the android open source, it has aroused a boom in the embedded industry. Many embedded developers expressed strong interest in Android and downloaded the android source code for compilation and transplantation. The huge Android source code (repo down, about 2 GB) gives people the illusion that android is quite complex. From the android compiling system perspective, this article shows you that android is actually pure.

The android compilation system is concentrated in the build/core of the android source code. In android2.2, there are 56 *. mk files. There are also some shell scripts. Why is Google making its compilation system so complicated? The build-system.html file under build/corecontains the following descriptions:

1.
Multiple Targets

2.
Non-recursive make

3.
Rapid compile-test cycles

4.
Both Environment and Config File Based settings

5.
Object File directory/make clean

Based on the above objectives, Google Android Developers have made the android build system as it is now. Android is displayed on android.git.kernel.org.
Build system is constantly updated as a project. Therefore, maintenance of its compilation system is also a very complex project. To achieve Android porting on the ARM platform (x86, MIPS, or even a new architecture), you must have a deep understanding of the android compilation system.

Related Article

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.