You are here

Installing the GNU tools

The development tools are provided as a set of RPMs which are automatically installed during the installation of the STLinux distribution 2.2 and above. For STLinux 2.0 you might have to install some of these packages depending on the installation procedure.

ST40 cross development tools

To cross build a simple C program for the ST40 Linux environment, STLinux provides the following RPM packages:

stlinuxXX-cross-sh4-gcc
stlinuxXX-cross-sh4-cpp
stlinuxXX-cross-sh4-binutils
stlinuxXX-cross-sh4-libgcc
stlinuxXX-sh4-glibc-dev

Note: These are the names of the RPMs, not the tools themselves. In each of the names, XX represents the major and minor version numbers. For example, stlinux24-cross-sh4-gcc is the RPM containing the cross development version of GCC for an ST40 running under STLinux 2.4.

For a more complete cross development environment, additional packages provide C++ support:

stlinuxXX-cross-sh4-g++
stlinuxXX-sh4-libstdc++-dev

For cross debug support:

stlinuxXX-cross-sh4-gdb

ST40 native development tools

To build a C program for the ST40 Linux environment natively, the following packages are provided:

stlinuxXX-sh4-gcc
stlinuxXX-sh4-cpp
stlinuxXX-sh4-binutils
stlinuxXX-cross-sh4-libgcc
stlinuxXX-sh4-glibc-dev
stlinuxXX-sh4-gdb

Note: For technical reasons, the stlinuxXX-cross-sh4-libgcc package is also used for the native tools.

For a more complete native development environment, containing C++ and debug support, the following additional packages are provided:

stlinuxXX-sh4-g++
stlinuxXX-sh4-libstdc++-dev

ST231 cross development tools

To cross build a C program for the ST231 Linux environment, STLinux provides the following packages:

stlinuxXX-cross-st231-open64
stlinuxXX-cross-st231-binutils
stlinuxXX-st231-glibc-dev
stlinuxXX-cross-st231-open64crt
stlinuxXX-cross-st231-open64lao
stlinuxXX-cross-st231-open64wrappers
stlinuxXX-cross-st231-st200libgcc

To include C++ and debug support in the cross development environment the following additional packages should be installed:

stlinuxXX-st231-st200libstdc++
stlinuxXX-cross-st231-gdb
stlinuxXX-st231-gdb

The ST200 cross development tools are available in STLinux 2.0 only

ARMv5 cross development tools

To cross build a C program for the ARMv5 Linux environment, STLinux provides the following packages:

stlinuxXX-armv5-gcc
stlinuxXX-armv5-cpp
stlinuxXX-armv5-binutils
stlinuxXX-armv5-libgcc
stlinuxXX-armv5-glibc-dev
stlinuxXX-armv5-gdb

For a more complete native development environment, containing C++ and debug support, the following additional packages are provided:

stlinuxXX-armv5-g++
stlinuxXX-armv5-libstdc++-dev

The ARMv5 cross development tools are available in STLinux 2.4 and later.

ARMv7 cross development tools

To cross build a C program for the ARMv7 Linux environment, STLinux provides the following packages:

stlinuxXX-armv7-gcc
stlinuxXX-armv7-cpp
stlinuxXX-armv7-binutils
stlinuxXX-armv7-libgcc
stlinuxXX-armv7-glibc-dev
stlinuxXX-armv7-gdb

For a more complete native development environment, containing C++ and debug support, the following additional packages are provided:

stlinuxXX-armv7-g++
stlinuxXX-armv7-libstdc++-dev

The ARMv7 cross development tools are available in STLinux 2.4 and later.