分类: LINUX
2010-11-03 10:17:49
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev |
安装JDK 1.6
sudo add-apt-repository ppa:sun-java-community-team/sun-java6 sudo apt-get update sudo apt-get install sun-java6* |
下载Repo工具
$ curl > ~/bin/repo
$ chmod a+x ~/bin/repo |
下载platform源码
$ mkdir working-directory-name $ cd working-directory-name $ repo init-u git://android.git.kernel.org/platform/manifest.git |
下载kernel源码
详情请参考《【Android内核】下载编译android kernel 》
编译platform
$ mkdir working-directory-name $ cd working-directory-name $ make |
编译SDK
$ mkdir working-directory-name $ cd working-directory-name $ make sdk |
配置环境变量
export PATH=$PATH:<working-directory-name>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin export PATH=$PATH:<working-directory-name>/out/host/linux-x86/bin export ANDROID_SWT=<working-directory-name>/out/host/linux-x86/framework |