This chapter relates to the source code, and the previous chapter learned git download two sets of source code, a set is the Android source code, all download will nearly 4GB size, its gold content imaginable. The other is The core Linux kernel source code, hundreds of MB after decompression .
First we learn to download, compile, and test the Android source code.
1. Configure the Android Source code Download Environment
(1) Create a directory to hold the download script file (repo)
(2) Download repo script file
(3) Create a directory to hold the Android Source code
(4) Initialize
(5) Start downloading Android Source code
2.Android Source code directory structure Analysis
3. Download Part of the Android source code
There are two ways to download an item in the Android source code: Method One, using the repo sync command method Two, using the git clone command
4. Compiling Android Source code
First step: Initializing the compilation Environment Step two: Select Target step three: compiling Android Source code
5.Out directory Structure Analysis
6. Publish your APK as an Android built-in program
7. Test the system.img file with the simulator
The second part we learn to download and compile the Linux kernel source code
1. Download the linux kernel source code
directory structure of 2.Linux kernel source code
3. Install the Android Kernel's build environment
Step one: Prepare for the second step: Unzip the compiler step three: Verify that the Cross compiler is installed successfully fourth step: Install libncurses5
4. Configuring and compiling the linux kernel
The content of this chapter is basically how to build these two development environments, in which the Linux Kernel development environment is the focus.
http://home.cnblogs.com/u/zivjeli/
Android Deep Exploration (Vol. 1) Hal and Driver Development Fourth Chapter summary