**************************************** **************************************** **************************************** ***
Author: EasyWave time: 2013.01.27
Category: Android source code analysis series Declaration: reprinted, please keep the link
NOTE: If any error occurs, please correct it. These are my Learning Log articles ......
**************************************** **************************************** **************************************** ***
I. Compilation of the Android System
Because I directly download the source code of Andriod2.3.4 under Fei Ling's 6410 from the Internet, and this version has the advantage that it also places jdk21.6.0 _ 23 under the android source code, therefore, you do not need to install Java JDK again. If you are developing Android applications in Linux, it is better to install it. Because I only compile the Andriod System and the Linux system here, there is not much to do with it, as shown in:
JDK1.6.0 _ 23 has been put under the Android source code, and a build_android.sh script file has been provided, so that we can easily compile the entire Android system. I compiled the Android system, it took a total of four hours, because I didn't use commands like mak-j2, so it took a long time. The build_andriod.sh file is as follows:
Have you seen it ,. setenv note that there are spaces in the middle. What does this mean? It is very simple. It is equivalent to source setenv. When you see the export, the java path will be set at each compilation, continue to check the content of the setenv file, as shown below:
In fact, the build/envsetup. sh file will be run in the end. The specific meaning is not described here. After compilation, the out folder is displayed. As follows:
After seeing this content, we can basically say that the compilation was successful. We can use android2.3.4 for the time being. Andriod2.3.5 has not been transplanted yet. However, the difference between Andriod2.3.5 and Android2.3.4 is not great.