How to build full source for MIPS(e.g:HMP10) ===================================
This is quick how to build full source for mips architecture. * Test Information: - Fedora 11 Distribution (Host Linux) - register at http://www.mipsandroid.org/account/register - ref :http://www.kandroid.org/board/board.php? board=androidsource&command=body&no=53 (by GeunSik, Lim) f11$ wget http://android.git.kernel.org/repo >~/bin f11$ chmod 755 ~/bin/repo f11$ mkdir mipsandroid f11$ cd mipsandroid f11$ repo init -u git://public.mipsandroid.com/platform/manifest.git - b mips-cupcake f11$ repo sync f11$ vi ./.repo/local_manifest.xml <manifest> <project name="platform/vendor/rmi/hmp10" path="vendor/rmi/hmp10"/> <project name="platform/external/msntp" path="external/msntp"/> </manifest> f11$ cd mipsandroid f11$ repo sync f11$ chmod 755 jdk-1_5_0_20-linux-i586-rpm.bin ( http://java.sun.com/javase/downloads/index_jdk5.jsp ( J2SE 5.0 Download) f11$ ./jdk-1_5_0_20-linux-i586-rpm.bin f11$ cd ~/bin/mipsandroid f11$ wget ftp://ftp.mips.com/pub/tools/software/android/mips-4.3.tar.gz f11$ cd /opt f11$ tar xvzf ~/bin/mipsandroid/mips-4.3.tar.gz f11$ opt/mips-4.3/bin/mips-linux-gnu-gcc -v Using built-in specs. Target: mips-linux-gnu Configured with: /scratch/clm/2008q3-src/src/gcc-4.3/configure -- build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=mips-linux- gnu --enable-threads --disable-libmudflap --disable-libssp --disable- libstdcxx-pch --with-arch=mips32r2 --with-float=hard --enable-mips- nonpic --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld -- enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable- __cxa_atexit --with-pkgversion='Sourcery G++ Lite 4.3-51' --with- bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls -- prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/mips-linux- gnu/libc --with-build-sysroot=/scratch/clm/2008q3-lite/install/mips- linux-gnu/libc --with-gmp=/scratch/clm/2008q3-lite/obj/host- libs-4.3-51-mips-linux-gnu-i686-pc-linux-gnu/usr --with-mpfr=/scratch/ clm/2008q3-lite/obj/host-libs-4.3-51-mips-linux-gnu-i686-pc-linux-gnu/ usr --disable-libgomp --enable-poison-system-directories --with-build- time-tools=/scratch/clm/2008q3-lite/install/mips-linux-gnu/bin --with- build-time-tools=/scratch/clm/2008q3-lite/install/mips-linux-gnu/bin Thread model: posix gcc version 4.3.2 (Sourcery G++ Lite 4.3-51) f11$ sudo yum -y install eclipse-ecj clearsilver f11$ sudo yum -y install gcc* compat-gcc* readline* libreadline* openssh* flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl wget valgrind python* java* java-* java-1.6.0-openjdk-devel* glibc* zlib zlib-devel libncurses* gcc* compat-gcc* readline* libreadline* openssh* flex bison gperf libsdl-dev libesd0- dev libwxgtk2.6-dev build-essential zip curl wget valgrind python* java* java-* java-1.6.0- openjdk-devel* glibc* SDL* ncurses* f11$ sudo ln -s /usr/bin/ecj /bin/ecj f11$ cd ~/bin/mipsandroid f11$ vi /etc/profile export J2RE_HOME=/usr/java/jdk1.5.0_20/jre export JAVA_HOME=/usr/java/jdk1.5.0_20/jre export ANDROID_JAVA_HOME=$JAVA_HOME export PATH=/usr/java/jdk1.5.0_19/jre/bin:/usr/java/jdk1.5.0_20/bin: $PATH f11$ source /etc/profile f11$ build/envsetup.sh f11$ export TARGET_PRODUCT=hmp10 f11$ export TARGET_ARCH_VERSION=mips32 f11$ export TARGET_ARCH=mips f11$ make Supported target products are: Vendor Platform <target product> --------------- ---------------- RMI HMP10 hmp10 Enjoy ~~ --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
