[81] | 1 | -------------------------------------------------- |
---|
| 2 | Table of contents |
---|
| 3 | -------------------------------------------------- |
---|
| 4 | |
---|
| 5 | 1 - Files |
---|
| 6 | 2 - Install SystemCass |
---|
| 7 | 3 - Install gcc / binutils |
---|
| 8 | 4 - Install newlib |
---|
| 9 | |
---|
| 10 | -------------------------------------------------- |
---|
| 11 | 1 - Files |
---|
| 12 | -------------------------------------------------- |
---|
| 13 | |
---|
| 14 | -------------------------------------------------- |
---|
| 15 | 2 - Install SystemCass |
---|
| 16 | -------------------------------------------------- |
---|
| 17 | |
---|
| 18 | -------------------------------------------------- |
---|
| 19 | 3 - Install gcc / binutils |
---|
| 20 | -------------------------------------------------- |
---|
| 21 | BINUTILS |
---|
| 22 | ~~~~~~~~ |
---|
| 23 | |
---|
| 24 | first unpack the archieve |
---|
| 25 | |
---|
| 26 | tar xzvf or1k_binutils-source.tar.gz |
---|
| 27 | |
---|
| 28 | create the build directory |
---|
| 29 | |
---|
| 30 | cd or1k |
---|
| 31 | mkdir or32-elf-binutils |
---|
| 32 | cd or32-elf-binutils |
---|
| 33 | |
---|
| 34 | run configure |
---|
| 35 | |
---|
| 36 | ../binutils-2.16.1/configure --target=or32-elf --prefix=/opt/or32-elf |
---|
| 37 | |
---|
| 38 | and start the build process |
---|
| 39 | |
---|
| 40 | make |
---|
| 41 | |
---|
| 42 | finaly issueing |
---|
| 43 | |
---|
| 44 | make install |
---|
| 45 | |
---|
| 46 | will install the binutils to '/opt/or32-elf'. after adding it to |
---|
| 47 | execute search path |
---|
| 48 | |
---|
| 49 | export PATH=/opt/or32-elf/bin:$PATH |
---|
| 50 | |
---|
| 51 | binutils (assembler, linker, ...) are ready to be used |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | GCC |
---|
| 57 | ~~~ |
---|
| 58 | |
---|
| 59 | first unpack the archieve |
---|
| 60 | |
---|
| 61 | tar xzvf or1k_gcc-source.tar.gz |
---|
| 62 | |
---|
| 63 | create the build directory |
---|
| 64 | |
---|
| 65 | cd or1k |
---|
| 66 | mkdir or32-elf-gcc |
---|
| 67 | cd or32-elf-gcc |
---|
| 68 | |
---|
| 69 | run configure |
---|
| 70 | |
---|
| 71 | ../gcc-3.4.4/configure --target=or32-elf --prefix=/opt/or32-elf --with-gnu-as --with-gnu-ld --disable-threads --enable-languages=c |
---|
| 72 | |
---|
| 73 | and start the build process |
---|
| 74 | |
---|
| 75 | make |
---|
| 76 | |
---|
| 77 | finaly issueing |
---|
| 78 | |
---|
| 79 | make install |
---|
| 80 | |
---|
| 81 | will install the gcc to '/opt/or32-elf'. |
---|
| 82 | |
---|
| 83 | -------------------------------------------------- |
---|
| 84 | 4 - Install newlib |
---|
| 85 | -------------------------------------------------- |
---|
| 86 | |
---|