1. 修改repo
將REPO_URL中的git:修改為http:
2. repo init -u http://~
3. 修改 .repo/manifest.xml
將Fetch…中的git:修改為http:
repo sync ~~
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.
$ sudo apt-get install valgrindNow verify if you have package fakeroot installed. If not, install it by doing:
$ sudo apt-get install fakeroot
deb http://us.archive.ubuntu.com/ubuntu/ dapper main restrictedIn addition gcc-4.3, g++-4.3, liblzo2-dev and uboot-mkimage are needed:
deb http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse
# sudo aptitude install gcc-4.3 g++-4.3 liblzo2-dev uboot-mkimage sun-java5-jdkYou need to have sun-java5-jdk installed, as noted above, and you need to point the Android Java variables to the correct location. Something like:
$ export JAVA_HOME=Set your environment variables:/usr/lib/jvm/java-1.5.0-sun
$ export ANDROID_JAVA_HOME=$JAVA_HOME
$ export CC=gcc-4.3And go:
$ export CXX=g++-4.3
$ make -j 4 TARGET_PRODUCT=fr
The -j parameter will try to optimise the compilation process. The number should represent the double of the amount of cores on your system. In this example, the source is compiled on a dual core system. NOTE: If you are building the Cupcake branch then you need to specify 'freerunner' as the TARGET_PRODUCT, if you are using a newer branch then use 'fr'
也可以編寫一個shell$vi start.sh
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export ANDROID_JAVA_HOME=$JAVA_HOME
export CC=gcc-4.3
export CXX=g++-4.3
make -j 4 TARGET_PRODUCT=freerunner