Openrisc Toolchain Development Factory
Home

Copyleft Rich D'Addio 2007


BINUTILS

Ok so we have all the code we need to get started. We begin with binutils which is by far
the easiest thing to build:

Let's unpack it I just use somthing like:
ralphie:/video/new_or32# bunzip2 binutils-2.16.1.tar.bz2
then:
ralphie:/video/new_or32# tar -xvf binutils-2.16.1.tar
now patch it:
ralphie:/video/new_or32# cd binutils-2.16.1
ralphie:/video/new_or32# bzip2 -dc ../binutils-2.16.1-unified.diff.bz2 |patch -p1

Now we need to configure and build it, but before we do let's do this:
ralphie:/video/new_or32# cd ..
ralphie:/video/new_or32# mkdir b-b (GCC and Binutils build from OUTSIDE of their native directories)
ralphie:/video/new_or32# mkdir tools
now:
ralphie:/video/new_or32# cd b-b

Time to configure:
../binutils-2.16.1/configure --target=or32-uclinux --prefix=/video/new_or32/tools/or32-uclinux

Now build it:

ralphie:/video/new_or32/b-b# make all install
Once done you should be able to do: ralphie:/video/new_or32# ls tools/or32-uclinux/bin
and see some nice shiny new binary utilities for the Openrisc architecture.

Don't forget to let the system know about your new utils!!:
export PATH=/video/new_or32/tools/or32-uclinux/bin:$PATH

More pain for you? Yes? Next No?Previous

TOP