Toolchain-MacOS

From OpenTom

Jump to: navigation, search

Anyway, let's start. Download and expand the following pieces:

1. Latest crosstools: http://kegel.com/crosstool/crosstool-0.43.tar.gz

2. TomTom GO Version 6.5: http://www.tomtom.com/page.php?Page=gpl#6.5

http://www.tomtom.com/gpl/rel200608a/toolchain/binutils-2.14.90.0.5.tar.gz
http://www.tomtom.com/gpl/rel200608a/toolchain/gcc-3.3.4.tar.gz
http://www.tomtom.com/gpl/rel200608a/toolchain/glibc-2.3.2.tar.gz
http://www.tomtom.com/gpl/rel200608a/toolchain/dmalloc-5.4.2.tar.gz
http://www.tomtom.com/gpl/rel200608a/toolchain/freetype-2.1.10.tar.gz
http://www.tomtom.com/gpl/rel200608a/toolchain/libmad-0.15.1b.tar.gz
http://www.tomtom.com/gpl/rel200608a/toolchain/libusb-0.1.11.tar.gz
http://www.tomtom.com/gpl/rel200608a/toolchain/termcap-1.3.1.tar.gz
http://www.tomtom.com/gpl/rel200608a/kernel/golinux-tt1340.tar.gz
http://www.tomtom.com/gpl/rel200608a/toolchain/gdb-6.3.tar.gz

(You can paste the above list to a file and do "wget -i [filename]").

3. Install the following files at your crosstools. Note where you need to modify them for your enviroment.

3.1 tomtom.sh


#!/bin/sh
set -ex
WORKING_DIR=`pwd`
TARBALLS_DIR=/Users/Shared/Projects/orig/TomTom
RESULT_TOP=/usr/local/tomtom
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES="c,c++"
export GCC_LANGUAGES

# Really, you should do the mkdir before running this,
# and chown /opt/crosstool to yourself so you don't need to run as root.
mkdir -p $RESULT_TOP

cd $TARBALLS_DIR; ln -sf golinux-tt1340.tar.gz golinux-2.6.tar.gz
cd $WORKING_DIR
eval `cat arm-softfloat.dat gcc-3.3.4-glibc-2.3.2-tomtom.dat` sh all.sh --nobuild --notest

cd $WORKING_DIR/build/arm-softfloat-linux-gnu/gcc-3.3.4-glibc-2.3.2; ln -sf golinux-tt1340 golinux-2.6
cd $WORKING_DIR
eval `cat arm-softfloat.dat gcc-3.3.4-glibc-2.3.2-tomtom.dat` sh all.sh --nounpack --gdb --testlinux

echo Done.

3.2 gcc-3.3.4-glibc-2.3.2-tomtom.dat


BINUTILS_DIR=binutils-2.14.90.0.5
GCC_DIR=gcc-3.3.4
GLIBC_DIR=glibc-2.3.2
GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.2
LINUX_DIR=golinux-2.6
CC=gcc-3.3


Apply the following patch to getandpatch.sh:


--- getandpatch.sh.orig 2007-01-16 15:33:41.000000000 +0200
+++ getandpatch.sh      2007-01-16 15:32:53.000000000 +0200
@@ -194,7 +194,8 @@
fi
if test -n "$GDB_DIR"; then
-    getUnpackAndPatch ftp://ftp.gnu.org/pub/gnu/gdb/$GDB_DIR.tar.bz2 \
+    getUnpackAndPatch ftp://ftp.gnu.org/pub/gnu/gdb/$GDB_DIR.tar.gz \
+                      ftp://ftp.gnu.org/pub/gnu/gdb/$GDB_DIR.tar.bz2 \
                       ftp://sources.redhat.com/pub/gdb/releases/$GDB_DIR.tar.bz2 \
                       ftp://sources.redhat.com/pub/gdb/old-releases/$GDB_DIR.tar.bz2 \
                       ftp://sources.redhat.com/pub/gdb/snapshots/current/$GDB_DIR.tar.bz2
Personal tools