Building RTEMS for Lattice Mico32 target

Short instructions to build the RTEMS operating system for the Lattice Mico32 target are shown here. Please refer to Building RTEMS-4.10 Tools for Lattice Mico32 (lm32) for instruction to setup cross-compiler tools required for building RTEMS.

Get RTEMS sources from the CVS Repository, see instructions in RTEMS Wiki.

Run bootstrap:

cd rtems 
./bootstrap
cd ..

Create building directory and build RTEMS for Lattice Mico32:

mkdir b-rtems
cd b-rtems
../rtems/configure --target=lm32-rtems4.10 --prefix=/opt/rtems-4.10 \
--enable-doc --enable-cxx --enable-rdbg --enable-tests --enable-posix \
--enable-networking
make RTEMS_BSP=lm32_evr all
make install (as root if you want to install it in /opt/rtems-4.10)

This will build (and optionally install) RTEMS itself and samples and test application. For further information please see instructions to load and run an application on the target.