Android Deep Explore (Volume 1) HAL and Driver Development fourth chapter source code download and compile reading notes

Source: Internet
Author: User

Android Deep Exploration ( volume 1) HAL and drive development Fourth chapter source code download and compile reading notes

This chapter learns to use Git to download two sets of source code and build two development environments. Android source code and Linux kernel source code, respectively. The Android source code contains the code for the HAL (that is, the hardware abstraction layer) and learns how to build both of these development environments.

The essence of Android porting is the porting of the Linux kernel, and the migration of the Linux kernel is primarily a Linux-powered migration. The development and testing of Linux drivers requires the installation of the above two development environments.

The steps to build two sets of environments are as follows:

A Download compile and test Android source code:

The Android source code contains the code for various applications in the Android system, the source code for the various tools with the Android SDK, the Android NDK sources, and the HAL source code.

1. Configure the Android source code compilation environment.

2.Android Source code directory structure parsing.

3. Download part of the Android source code.

4. Compile the 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.

Two Download and compile the Linux kernel source code.

1. Download the Linux kernel source code.

The directory structure of the 2.Linux kernel source code.

3. Install the Android kernel's compilation environment.

4. Configure and compile the Linux kernel.

Compiling the Linux kernel under Ubuntu requires cross-compiler installation. A cross-compilation environment is a program that compiles on a schema that can be run on a B schema.

Android Deep Explore (Volume 1) HAL and Driver Development fourth chapter source code download and compile reading notes

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.