标签:
```
$ wget https://raw.githubusercontent.com/racaljk/hosts/master/hosts -qO /tmp/hosts
$ sudo sh -c ‘cat /tmp/hosts > /etc/hosts‘
```
sudo apt-get install gedit git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev gcc-multilib maven tmux screen w3m ncftp ccache pngquant maven
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir ~/sudamod
$ cd ~/sudamod
$ repo init -u git://github.com/SudaMod/android.git -b sm-2.0 --no-repo-verify
$ repo sync -c -f -j8 --force-sync --no-clone-bundle
$ echo "export USE_CCACHE=1" >> ~/.bashrc
$ ~/sudamod/prebuilts/misc/linux-x86/ccache/ccache -M 50G
$ cd ~/sudamod
$ . build/envsetup.sh
$ breakfast "device name"
$ brunch "device name"
$ cd ~/sudamod/out/target/product/
$ cd ~/sudamod
make clean
repo sync -j 16
标签:
原文地址:http://www.cnblogs.com/dinphy/p/5618940.html