background image

Android-x86 的源代码下载方法与编译

过程

看这篇文章的基础呢,是你有过下载 android 源代码与编译过程的经验,如

果没有的话,赶紧去百度一下吧。

安装 repo(用来更新 android-x86 源码)

创建~/bin 目录,用来存放 repo 程序,如下:

$ cd ~

$ mkdir bin

下载 repo 脚本并使其可执行:

$ curl http://android.git.kernel.org/repo >~/bin/repo

$ chmod a+x ~/bin/repo

 

下载 android-x86 源码

 $ mkdir android-x86

 $ cd android-x86

 $ repo init -u git://git.android-x86.org/platform/manifest.git

 $ repo sync

接下来就是漫长的等待了。

特别提醒下,大家最好是不要下最新的代码,我试了下,发现好东西需要修

改才能编,大家还是-branch 一下,下个 2.2 的吧

下载完了之后就可以开始编译了。

android-x86 的编译环境与一般的 android 的编译环境没有什么差别,百度

一下一大把一大把的资料,我就不再赘述了,没意思。

由于 android-x86 是可以装载电脑上的,所以可以直接编译成 ISO 镜像,编

 

译命令为 make iso_img -j4,这个 4 表示进程数。

                     找软件资料,就到一览软件文库

http://wk.yl1001.com/rj/

1