Through the deep reading and understanding of the fourth chapter, I learned that its main download is to compile and test the Android source code. To configure the Android source download environment, first create a directory to hold the download script file (repo) and download the repo script file (used to download the Android source code) and create a directory to hold the Android source code. Initialization of the source code. Then to understand the Android source directory structure parsing, and then download a part of the Android source code, it has two methods: Method one: Use the Repo sync command: #repo sync platform/bootable/recovery; Method Two: Use the git clone command: Git clone http://Android.goolesource.com/<project name>. Then compile the Android source code: First Step: Initializing the compilation environment Step Two: Select the target; the third step is to compile the Android source code. After compiling the source code, the Out directory structure analysis: Out directory is the default directory for compiling the target files of Android source code generation, only two subdirectories in the Out directory: Host and target. The host directory is primarily a number of libraries and tools that are needed during the compilation process. Publish your apk as an Android built-in program, and then test the system.img file with the emulator. Complete the source code download environment. To download and compile the Linux kernel source code, install the Android kernel's compilation environment: First step: Prepare for work; Step two: Unzip the compiler; Step three: Verify that the Cross compiler is installed successfully; Fourth: Install LIBNCURSES5. Then configure and compile the Linux kernel.
The fourth chapter mainly describes the Linux kernel porting in Android transplantation. Linux kernel porting is primarily a Linux-powered migration. To develop and test Linux drivers, two sets of development environments are required under Linux: the Android application development environment and the test Linux kernel development environment, with a focus on the Linux kernel development environment. The building and understanding of the Linux kernel development environment is very helpful to our Linux learning, and how to build these two development environments is also the necessary learning to be carried out next.
Fourth Chapter Impressions