编译Android donut
2010-07-13 21:46:00 来源:WEB开发网测试 Java ,系统能找到 java 且版本正确。
lua@ubuntu:~$ which java
/home/lua/Downloads/jdk1.5.0_21/bin/java
lua@ubuntu:~$ which javac
/home/lua/Downloads/jdk1.5.0_21/bin/javac
lua@ubuntu:~$ java -version
java version "1.5.0_21"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_21-b01)
Java HotSpot(TM) Client VM (build 1.5.0_21-b01, mixed mode, sharing)
lua@ubuntu:~$ javac -version
javac 1.5.0_21
编译 donut 代码
lua@ubuntu:~$ cd donut/
lua@ubuntu:~/donut$ ls
apply_donut_patches.sh build external out prebuilt
apply_donut_patches.sh~ dalvik frameworks packages system
bionic development hardware patch.log vendor
bootable donut_patches Makefile patch.log~ vendor.tgz
lua@ubuntu:~/donut$ . build/envsetup.sh
lua@ubuntu:~/donut$ choosecombo
Build for the simulator or the device?
1. Device
2. Simulator
Which would you like? [1]
Build type choices are:
1. release
2. debug
Which would you like? [1]
Which product would you like? [generic] littleton
Variant choices are:
1. user
2. userdebug
3. eng
Which would you like? [eng] user
============================================
PLATFORM_VERSION_CODENAME=Donut
PLATFORM_VERSION=Donut
TARGET_PRODUCT=littleton
TARGET_BUILD_VARIANT=user
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=Donut
============================================
如果是四核 CPU ,把虚拟机配置为 4 核,效率会提高 ( 需要关闭系统,然后设置 )
更多精彩
赞助商链接