下载并编译Android内核源代码

来源:互联网 发布:淘宝自动回复短语大全 编辑:程序博客网 时间:2024/05/10 01:57

我的Android源代码放在了android_source目录下,android_source目录下新建kernel文件夹:

felix@ubuntu:~/android_source$ mkdir kernel
felix@ubuntu:~/android_source$ cd kernel/
felix@ubuntu:~/android_source/kernel$ git clone https://aosp.tuna.tsinghua.edu.cn/android/kernel/goldfish.git

内核源码下载完成之后如下图:
内核源码下载成功

felix@ubuntu:~/android_source/kernel$ cd goldfish/
felix@ubuntu:~/android_source/kernel/goldfish$ git branch -a

显示的内核版本有:
选择内核版本

felix@ubuntu:~/android_source/kernel/goldfish$ git checkout remotes/origin/android-goldfish-3.4

checkout完成

0 0
原创粉丝点击