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.