Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

3.7.2.  Configuring Or1ksim

Configuration is similar to that of the GNU tool chain, using a configure script, to set a target and an install directory.

It is a good idea not to use the same install directory for binaries that was used for the tool chain. The tool chain is aimed at cross compiling for the OpenRISC 1000 architecture and any include files etc will be specific to that architecture. By contrast Or1ksim is a native application for the workstation architecture (e.g. a PC). So a typical configuration would be:

mkdir builddir_or1ksim
cd builddir_or1ksim
../or1ksim-0.3.0rc2/configure --target=or32-uclinux --prefix=/opt/or1ksim
	
[Note]Note

The configuration target, or32-uclinux, is chosen for consistency with the main tool chain. It is not the same as that suggested in the INSTALL instructions with the distribution, but works perfectly satisfactorily.

[Note]Note

The INSTALL instructions with the distribution do not describe use of the --prefix option, but this works very satisfactorily here.

Embecosm divider strip