Advertisement
Guest User

or1k build

a guest
Sep 25th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.85 KB | None | 0 0
  1. #!/bin/bash
  2. # Build the first set of tools, binutils etc.
  3. # NOTE: on 32-bit machines --disable-werror is needed due to an enum acting as bit mask is considered signed
  4.  
  5. export PATH=$PATH:/opt/or1k-toolchain/bin/
  6. mkdir bld-or1k-src bld-or1k-gcc
  7.  
  8. echo 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
  9.  
  10. cd bld-or1k-src
  11. ../or1k-src/configure --target=or1k-elf --prefix=/opt/or1k-toolchain --enable-shared \
  12. --disable-itcl --disable-tk --disable-tcl --disable-winsup --disable-libgui --disable-rda \
  13. --disable-sid --disable-sim --disable-gdb --with-sysroot --disable-newlib --disable-libgloss --disable-werror
  14. make -j12
  15. make install
  16.  
  17. echo 2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
  18.  
  19. # Build gcc
  20. cd ../bld-or1k-gcc
  21. ../or1k-gcc/configure --target=or1k-elf --prefix=/opt/or1k-toolchain --enable-languages=c \
  22. --disable-shared --disable-libssp --disable-werror
  23.  
  24. make -j12
  25. make install
  26.  
  27. echo 33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
  28.  
  29. # build newlib and gdb (without or1ksim in this case)
  30. cd ../bld-or1k-src
  31. ../or1k-src/configure --target=or1k-elf --prefix=/opt/or1k-toolchain --enable-shared --disable-itcl \
  32. --disable-tk --disable-tcl --disable-winsup --disable-libgui --disable-rda --disable-sid \
  33. --enable-sim --disable-or1ksim \
  34. --enable-gdb  --with-sysroot --enable-newlib --enable-libgloss --disable-werror
  35.  
  36. make -j12
  37. make install
  38.  
  39. echo 4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
  40.  
  41. # build gcc again, this time with newlib
  42. cd ../bld-or1k-gcc
  43. ../or1k-gcc/configure --target=or1k-elf --prefix=/opt/or1k-toolchain --enable-languages=c,c++ --disable-shared \
  44. --disable-libssp --with-newlib --disable-werror
  45.  
  46. make -j12
  47. make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement