WEB开发网
开发学院手机开发Android 开发 编译Android donut 阅读

编译Android donut

 2010-07-13 21:46:00 来源:WEB开发网   
核心提示:Type the following command to install it:$ tar -xvzf Android_PlatformRel_Linux_MHLV_2010WW05.tgz -C [installed_directory]Building AndroidDownload android donut

Type the following command to install it:

$ tar -xvzf Android_PlatformRel_Linux_MHLV_2010WW05.tgz -C [installed_directory]

Building Android

Download android donut release into [Android_directory]

$ repo init -u git://android.git.kernel.org/platform/manifest -b donut

$ repo sync

Notes: please refer manifest file of [installed_directory]/pxa_donut/src/donut/manifest.xml

Apply PXA patches by following command

$ cp [installed_directory]/pxa_donut/src/donut/donut_patches/* [Android_directory]/ -rf

$ cd [Android_directory]/

$ ./apply_donut_patches.sh

$ tar zxvf [installed_directory]/pxa_donut/src/donut/vendor.tgz -C [Android_directory]/

如果之前装了 java6 sdk ,但编译 Android 需要 jdk5 ,所以先把 Java6 屏蔽掉。

lua@ubuntu:~$ ls /usr/bin/j*

/usr/bin/java /usr/bin/javaws /usr/bin/jexec /usr/bin/jockey-text

/usr/bin/java_vm /usr/bin/jcontrol /usr/bin/jockey-gtk /usr/bin/join

lua@ubuntu:~$ sudo mv /usr/bin/java /usr/bin/java.bak

lua@ubuntu:~$ sudo mv /usr/bin/javaws /usr/bin/javaws.bak

lua@ubuntu:~$ sudo mv /usr/bin/java_vm /usr/bin/java_vm.bak

lua@ubuntu:~$ ls /usr/bin/j*

/usr/bin/java.bak /usr/bin/jcontrol /usr/bin/jockey-text

/usr/bin/java_vm.bak /usr/bin/jexec /usr/bin/join

/usr/bin/javaws.bak /usr/bin/jockey-gtk

比如 jdk-1_5_0_21-linux-i586.bin 放到如下目录

/home/lua/Downloads

在 shell 窗口执行 sh jdk-1_5_0_21-linux-i586.bin

jdk5 将安装到 /home/lua/Downloads/jdk1.5.0_21

将 /home/lua/Downloads/jdk1.5.0_21/bin 添加到 PATH

lua@ubuntu:~$ echo $PATH

/home/lua/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/lua/arm-marvell-linux-gnueabi/bin:/home/lua/bin:/home/lua/work/android-sdk-linux_86/tools:/home/lua/work/eclipse:/home/lua/Downloads/jdk1.5.0_21/bin

1 2 3  下一页

Tags:编译 Android donut

编辑录入:coldstar [复制链接] [打 印]
赞助商链接