Android Deep Exploration (Vol. 1) Hal and Driver Development Fourth Chapter summary

Source: Internet
Author: User

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

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.