
RTEMS can be re-built in place, in case a modification is required.
Use the following procedure:

1. Extract the RTEMS sources to /opt/rtems-4.6/src

2. Create the link /opt/rtems-4.6/src/rtems to point to the RTEMS sources.

[OPTIONAL]
3. Clean old toolchain by removing /opt/rtems-4.6/sparc-rtems/{leon*,erc32}/*. 
   This is only needed when header files has been removed from the RTEMS source
   to avoid old header files laying around after RTEMS kernel has been installed 
   in step 4.

4. Build RTEMS with the following commands

  cd /opt/rtems-4.6/src
  make boot             # generate makefiles
  make configure        # configure sources
  make build            # Build sources
  make install          # install RTEMS kernel to /opt/rtems-4.6

No other steps has to be taken, the gcc specs-file contains the
path to where the rtems libraries are installed.
