Android Deep explore HAL and Driver Development fourth chapter

Source: Internet
Author: User

This chapter mainly describes how to download and compile the Android source code and the Linux kernel source.
1. Download, compile and test Android source code
Configure the Android source code download environment:
First step: Create a directory to hold the download script file (repo) (you can put the script file in any directory where you use ~/bin)
# mkdir ~/bin
# Path=~/bin: $PATH
Step two: Download the repo script file (for downloading Android source code)
# Curl Https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
# Chnod A+x ~/bin/repo
Step three: Create a directory to hold the Android source code
# mkdir Android_source
# CD Android_source
Fourth step: Initialize.
Fifth step: Start downloading Android source code
# Repo Sync
2. Download part of the Android source code
Method One: Use the Repo Sync command
Method Two: Use the git clone command
3. Compiling Android Source code
First step: Initialize the build environment # source Build/envsetup. Sh
Step two: Select Target # Lunch Full-eng
Step three: Compile Android source code # make
Download and compile the Linux kernel source code: Download the Linux kernel source code, the directory structure of the Linux kernel source code, install the Android kernel's compilation environment, configure and compile the Linux kernel.
Welcome to visit my blog address http://home.cnblogs.com/u/haihaizhazha/

Android Deep explore HAL and Driver Development fourth chapter

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.