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.
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, stlinux23-cross-sh4-gcc is the RPM containing the cross development version of GCC for an ST40 running under STLinux 2.3.
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
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 stlinuxXX-sh4-gdb
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