Fourth Chapter Experience

Source: Internet
Author: User

Fourth chapter of the source code download and compilation Experience

Through the first three chapters of the study, the basic understanding and some understanding, but in the fourth chapter, the overall has a more profound understanding. In the fourth chapter of the source code download and compilation, this chapter mainly introduces the use of git to download two sets of source code. One set is the Android source code, the other is the Linux kernel source code.

The first is the download, compilation, and testing of the Android source code. Configure the Android source code download environment, the first step is to create a directory for the download script files, the second step to download the repo script file, the third step to create a directory for the Android source code, the fourth step to initialize, after the above steps, finally began to download the Android source code

Android source code contains more things, Android system built-in applications, the source code of the Android SDK and the HAL source. Configure the Android source code download environment to execute a series of commands on the Linux terminal:

and an analysis of the Android source code directory

It is important that we compile the Android source code:

First step: Initializing the compilation environment

Step two: Select a directory

Step three: compiling Android source code

# make

# MAKE-J4

Out Directory structure analysis

Publish your apk as an Android built-in program

Test system.ing file with simulator

Then download and compile the Linux kernel source code. The directory of the Linux kernel source code.

The fourth chapter introduces the download and compilation of the source code through the study of git usage methods.

Download the Linux kernel source code. Identify the directory structure of the Linux kernel source code. Install the Android kernel's build environment:

1 Preparatory work

2 unzip the compiler;

3 Verify that the cross compiler is installed successfully;

4 Installing Libncurses

5 Configure and compile the Linux kernel.

Android source code downloaded the book and for each directory is parsed, very helpful to their own learning. Next you will need to download some of the sub-projects. Then is the Android source code compilation, first initialize the compilation environment, then select the target, and finally compile.

The second part is about the Linux kernel source code download and compilation. The main code is as follows:

# git clone https://android.googlesource.com/kernel/common.git

# git Branch-a

# git checkout-b android-3.0 remotes/orignin/android-3.0

# git clone http://android.googlesource.com/kernel/goldfish.git

# git checkout-b android-goldfish-2.6.29 remotes/orignin/android-goldfish-2.6.29

The directory structure is described, and finally the kernel compilation environment is installed.

The first step is to get the job done

Second step to unzip the compiler

The third step verifies that the cross compiler is successfully installed

The fourth step installs the LIBNCURSES5. Finally, configure and compile the Linux kernel.

http://www.cnblogs.com/dongdong-0503/

Fourth Chapter Experience

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.