Android内核的编译与测试

1、下载Android内核

 source.android.com/source->Downloading and Building Building Kernels

大概要花2个小时,其源码在培训软件里面的 Android模拟器使用的Linux-3.10版本内核源码

复制到Ubuntu,并解压之。进入该目录

这是Android源代码已经自带好的交叉工具链,只需要把它加入到path环境变量即可。

sudo gedit /etc/profile

source /etc/profile

测试:

2、编译Android内核

下面去编译Linux内核:

查看有没有默认的配置文件:

因为没有指定ARCH=arm,它默认采用x86平台

下面配置并编译

3、测试Android内核

原文地址:https://www.cnblogs.com/gary-guo/p/5604030.html