Changes between Version 5 and Version 6 of Projects/GCCGoRTEMS


Ignore:
Timestamp:
Jul 16, 2010, 8:07:02 PM (9 years ago)
Author:
Vinutheraj
Comment:

Added new section on building rtems

Legend:

Unmodified
Added
Removed
Modified
  • Projects/GCCGoRTEMS

    v5 v6  
    3131
    3232Rather than building from source code, you may be able to use the pre-built versions of the code provided for various architectures at http://www.rtems.org/ftp/pub/rtems. However, be aware that problems have been identified if the version of the pre-built binutils has an INSTALL_DIR different from the one you are using for the other tools.
     33= Building RTEMS =
     34
     35First, get the RTEMS source code. For the latest source, use:
     36
     37{{{
     38cvs -z3 -d :pserver:anoncvs@www.rtems.com:/usr1/CVS login
     39cvs -z3 -d :pserver:anoncvs@www.rtems.com:/usr1/CVS co -P rtems
     40}}}
     41
     42For specific releases like RTEMS 4.10, use:
     43
     44{{{
     45cvs -z3 -d :pserver:anoncvs@www.rtems.com:/usr1/CVS login
     46cvs -z3 -d :pserver:anoncvs@www.rtems.com:/usr1/CVS co -r rtems-4-10-branch -P rtems
     47}}}
     48
     49Git exports of the various modules in the CVS repository can be found at http://www.rtems.org/ftp/private/git/. The RTEMS module can be cloned like this -
     50{{{
     51git clone http://www.rtems.org/ftp/private/git/rtems.git
     52}}}
     53
     54Then, build RTEMS. Building RTEMS is to be done in two stages, first a ''multilibed'' version, then a ''non-multilibed'' version
     55
     56During the tool build the multilibed version is needed to ensure you get the .h files into a place where the "normal" cross builds will see them without adding to the include path.
     57
     58But you want the BSPs installed so you can actually (later) link executables, so the non-multilibed version.
     59
     60{{{
     61cd rtems
     62./bootstrap
     63cd ..
     64mkdir b-rtems-multi
     65cd b-rtems-multi
     66../rtems/configure --enable-multilib --disable-cxx --enable-posix \
     67  --enable-networking --target=TARGET --prefix=INSTALL_DIR
     68make
     69make install
     70
     71cd ..
     72mkdir b-rtems-nomulti
     73cd b-rtems-nomulti
     74../rtems/configure --disable-multilib --disable-cxx --enable-posix \
     75  --enable-networking --target=TARGET --prefix=INSTALL_DIR \
     76  --enable-rtemsbsp=BSP
     77make
     78make install
     79}}}
    3380= References =
    3481