Changes between Version 2 and Version 3 of TBR/UserManual/Example_Application_Compiling


Ignore:
Timestamp:
Jul 2, 2009, 10:39:23 PM (10 years ago)
Author:
JoelSherrill
Comment:

Attempt to make a bit more current and accurate

Legend:

Unmodified
Added
Removed
Modified
  • TBR/UserManual/Example_Application_Compiling

    v2 v3  
    1313
    1414
    15 Assume you complete the steps in [wiki:TBR/UserManual/Quick_Start Quick Start] which take SPARC as example, here are example steps for i386.
     15Assume you complete the steps in [wiki:TBR/UserManual/Quick_Start Quick Start] which take SPARC as example, here are example steps for i386 assuming you check
     16out the CVS head which is (as of July 2009) referred to as 4.10.
    1617
    1718{{{
    1819cd rtems
    19 export PATH=/opt/rtems-4.9/bin:$PATH
     20export PATH=/opt/rtems-4.10/bin:$PATH
    2021./bootstrap
    2122cd ..
    2223mkdir pc586
    2324cd pc586
    24 ../rtems/configure --target=i386-rtems4.9 --enable-rtemsbsp=pc586 \
    25   --enable-tests=samples --disable-posix --disable-itron
     25../rtems/configure --target=i386-rtems4.10 --enable-rtemsbsp=pc586 \
     26  --enable-tests=samples --disable-posix --disable-itron \
     27  --prefix=INSTALL_POINT
    2628make
    2729}}}
    2830
    2931After the steps above, RTEMS code including sample applications in test suites are compiled, the sample applications are ready to run in directory such as:
    30 /home/zengreng/pc586/i386-rtems4.9/c/pc586/testsuites/samples
    31 
     32${HOME}/WHERE_AM_I_BUILDING/pc586/i386-rtems4.10/c/pc586/testsuites/samples
    3233
    3334However, how to compile your own application? Here are the steps to compile examples in [wiki:TBR/Delete/RTEMS_CVS_Repository RTEMS CVS Repository].
    3435
    35 
    36 First, install RTEMS files into /opt/rtems-4.9/.
     36First, install RTEMS files into the ''INSTALL_POINT'' specified to the ''--prefix'' option above.  By de
    3737
    3838{{{
     39# If the INSTALL_POINT requires root access, you will have to perform this step.
    3940su -
     41
    4042cd rtems/../pc586/
    4143make install
     44
     45# If the INSTALL_POINT requires root access, you will have to perform this step.
    4246exit
    4347}}}
    4448
    45 Second, compile examples.
     49Second, compile the examples.
    4650
    4751{{{
    4852cd examples
    49 export RTEMS_MAKEFILE_PATH=/home/zengreng/pc586/i386-rtems4.9/c/pc586/make/
     53export RTEMS_MAKEFILE_PATH=INSTALL_POINT/i386-rtems4.10/pc586
    5054make
    5155}}}
    5256
    53 You complete it, the example applications are ready to run in directories, such as /home/zengreng/examples/hello_world_c/o-optimize. You can use [wiki:TBR/UserManual/QEMU QEMU] to run those example applications.
     57You complete it, the example applications are ready to run in directories, such as ${HOME}/WHERE_AM_I_BUILDING/examples/hello_world_c/o-optimize. You can use [wiki:TBR/UserManual/QEMU QEMU] to run those example applications.