May 11, 2007

Install OpenMoKo from MokoMakefile

如果你想安裝 OpenMoKo from scratch 有二種方法,除了直接下載SVN來編譯之後,我們可以使用 Rod Whitby 所編寫的 MokoMakefile Makefile,好處是我們可以利用簡單的make指令取代一些煩雜的指令 :),以下為我的安裝過程:

1. Make sure your build host is set up
apt-get install python patch m4 make python-psyco ccache perl diffstat \
wget curl ftp cvs subversion git

2. Openembedded on your Distribution
i. echo "deb http://www.openembedded.org/dl/ packages/" >> /etc/apt/source
ii. install monotone 0.32
wget http://monotone.ca/downloads/0.32/monotone_0.32-0.1_i386.deb #版本不一樣,可能會有問題,這版本是我使用過沒問題的

update-alternatives --config git #select /usr/bin/git-scm to provide git instead of /usr/bin/git.transition

3. Complementary packages
apt-get install libxml2-utils xmlto passivetex
apt-get install docbook

4. Create your $OMDIR directory:
export OMDIR=$HOME/moko ; mkdir $OMDIR ; cd $OMDIR

5. Grab MokoMakefile:
wget http://www.rwhitby.net/files/openmoko/Makefile

6. Set up the environment:
make setup

7. Start building.
make openmoko-devel-image

8. Run
make build-qemu
make flash-qemu-local
make run-qemu






No comments: