Fourth Chapter Impressions

Source: Internet
Author: User

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

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.