2008年4月3日 星期四

build cross tool chain

Follow http://kegel.com/crosstool/#download

1. install Debian on Virtual machine
2. set proxy
3. install bzip2
4. install patch
5. install bison (also install bison) - GNU Project parser generator
6. install flex - fast lexical analyzer generator
7. install build-essential
including
libc6-i686 (2.3.4.ds1-13etch5)
binutils (2.17-3)
linux-kernel-headers (2.6.18-7)
libc6-dev (2.3.6.ds1-13.etch5)
cpp-4.1 (4.1.1.-21)
cpp (4.1.1-15)
libspp0 (4.1.1-21)
gcc-4.1(4.1.1-21)
gcc(4.1.1-15)
make (3.81-2)
perl-modules (5.8.8-7etch1)
libstdc++6-4.1-dev (4.1.1-21)
perl (5.8.8-7ech1)
g++-4.1 (4.1.1-21)
g++ (4.1.1-15)
dpkg-dev (1.13.25)
build-essential (11.3)
8. get the crosstool - http://kegel.com/crosstool/crosstool-0.43.tar.gz
9. tar it
10. sudo mkdir /opt/crosstool
11. sudo chown $USER /opt/crosstool
12 ./demo-arm9tdmi.sh

After you get some information
I think you are successful.

"+ echo testhello: C compiler can in fact build a trivial program.
testhello: C compiler can in fact build a trivial program.
+ test '' = 1
+ test '' = 1
+ test '' = 1
+ test 1 = ''
+ echo Done.
Done.
"

You can get your crosstool on
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-9tdmi-linux-gnu/bin


ps:
There still have some things wrong On Ubuntu Gusty about permission deny.

透過Facebook分享

沒有留言: