Toolchain for or32-linux
My recipe:
- Binutils: binutils-2.17
- Patch (toolchain/patches/binutils-2.17.patch) from Mark in his
tarball
- Configure for or32-linux target, build, install
- Gcc: gcc-4.2.1
- We do this like crosstool does, first just
the gcc core...
- Patch (toolchain/patches/gcc-4.2.1.patch) from Mark in his
tarball
- My little patch
stolen from bsemi 3.4.4 to include or32-linux target support.
- Configure for or32-linux target --with-newlib
--enable-threads=no --enable-languages=c (for other options see
toolchain/build/Makefile). Build and install the gcc core: make
all-gcc install-gcc.
- Linux kernel: linux-2.6.19.7
- Patch from rgd for basic or32 support.
- My little patch
for being able to make headers_install for or32.
- Configure, build, make headers_install and copy the
linux headers to your gcc install path
PREFIX/or32-linux/include.
- uClibc: uClibc-0.9.28.3
- Patch according to instructions by rgd.
- My little patch to use
or32-linux- cross prefix instead of or32-uclinux- prefix for cross
compiler.
- Make sure that you have HAVE_NO_SHARED and DL_FINI_CRT_COMPAT
defined and UCLIBC_CTOR_DTOR undefined. Otherwise I got uclibc
build failure, or32-linux executable link failure and or32-linux
excutable runtime segfault (respectively).
- Make sure your DEVEL_PREFIX points to your gcc
PREFIX/or32-linux directory.
- Build and install.
- Back to gcc
- Now configure the real linux gcc target without the
--with-newlib --enable-threads=no options.
- Build, install.
Thats it - you should be able to build linux executables - at least I
got my hello world to run on linux in or1ksim.
Last modified: Wed Aug 22 18:38:12 EEST 2007