The following is a sample session illustrating the installation of the complete C and C++ toolset targeting the SPARC architecture for the RTEMS 4.9 Release series.
Since you are not using Yum, you will need to download all of the RPMs you will install. Alternatively, RPM can be given a URL for an RPM file and it will fetch it for you. Either way, the commands similar to the following will install the common or base RPMs required.
rpm -U rtems-4.9-binutils-common-<VERSION>-<RPM>.<DIST>.noarch.rpm \ rtems-4.9-gcc-common-<VERSION>-<RPM>.<DIST>.noarch.rpm \ rtems-4.9-newlib-common-<VERSION>-<RPM>.<DIST>.noarch.rpm \ rtems-4.9-gdb-common-<VERSION>-<RPM>.<DIST>.noarch.rpm
The above RPMs are shared across all RTEMS targets and include common files such as the documentation. The following illustrates how to install the GNU Autoconf and Automake RPMs that match your RTEMS installation. RTEMS uses the GNU Autotools for its configure and build infrastructure and you will need these if you modify the build infrastructure or check out RTEMS from CVS and have to bootstrap the source tree.
rpm -U rtems-4.9-autoconf-<VERSION>-<RPM>.<DIST>.noarch.rpm \ rtems-4.9-automake-<VERSION>-<RPM>.<DIST>.noarch.rpm
Now that you have installed all of the RPMs that are independent of the target architecture you can install the C toolset for a specific target. The following command will install the target architecture specific set of the RPMs for a C toolset including GDB.
rpm -U rtems-4.9-sparc-rtems4.9-binutils-<VERSION>-<RPM>.<ARCH>.rpm \ rtems-4.9-sparc-rtems4.9-gcc-<VERSION>-<RPM>.<ARCH>.rpm \ rtems-4.9-sparc-rtems4.9-newlib-<VERSION>-<RPM>.<ARCH>.rpm \ rtems-4.9-sparc-rtems4.9-libgcc-<VERSION>-<RPM>.<ARCH>.rpm \ rtems-4.9-sparc-rtems4.9-gdb-<VERSION>-<RPM>.<ARCH>.rpm
The following command illustrates how to install the C++ specific portion of the RPMs.
rpm -U rtems-4.9-sparc-rtems4.9-gcc-c++-<VERSION>-<RPM>.<ARCH>.rpm \ rtems-4.9-sparc-rtems4.9-libstd++-<VERSION>-<RPM>.<ARCH>.rpm
Upon successful completion of the above command sequence, a C/C++
cross development toolset targeting the SPARC is installed in
/opt/rtems-4.9
. In order to use this toolset, the directory
/opt/rtems-4.9/bin
should be at the start of your PATH.
At this point, the tools are installed for a specific target architecture
adn you may proceed directly to Building RTEMS.
If you want to build RTEMS for multiple target architectures, you will need to install the target specific portion of the RPMs for each target.
Copyright © 1988-2008 OAR Corporation