环境:Ubuntu 12.04 LTS 32-bit
apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc
2、下载Repo:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
3、创建源码目录并进入:
mkdir android-src
cd android-src
4、获取git上的android源码版本:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.3_r1
5、下载源码(4表示同时开的线程个数):
repo sync -j4
6、下载完源码后进入源码主目录执行:
source build/envsetup.sh
lunch full-eng
make -j4
命令:
1、安装依赖库:apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc
2、下载Repo:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
3、创建源码目录并进入:
mkdir android-src
cd android-src
4、获取git上的android源码版本:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.3_r1
5、下载源码(4表示同时开的线程个数):
repo sync -j4
6、下载完源码后进入源码主目录执行:
source build/envsetup.sh
lunch full-eng
make -j4