Getting Started Guide
Building user programs
Installing the GNU tools
|
|
Installing the GNU tools
To build programs to run on the target Linux system, some of either the cross or the native development tools must be installed. At the moment, the native development tools are only available in the ST40 Linux distribution; they are not yet included in the ST231 Linux distribution. Both distributions do provide a set of cross development tools to be run on the x86 Linux host.
The tools are provided as a set of RPMs which can be installed by following the standard procedure for the installation of any of the RPMs of the STLinux distribution (see the Installaton Guide for details).
ST40 cross development tools
To cross build a simple C program for the ST40 Linux environment the following RPM packages are needed:
stlinux20-cross-sh4-gcc stlinux20-cross-sh4-cpp stlinux20-cross-sh4-binutils stlinux20-cross-sh4-libgcc stlinux20-sh4-glibc-dev |
|
|
For a more complete cross development environment, additional packages must be installed. For C++ support:
stlinux20-cross-sh4-g++ stlinux20-sh4-libstdc++-dev |
|
|
For debug support:
stlinux20-cross-sh4-gdb stlinux20-cross-sh4-kgdb |
|
|
ST40 native development tools
To build a C program for the ST40 Linux environment natively, the following packages are needed:
stlinux20-sh4-gcc stlinux20-sh4-cpp stlinux20-sh4-binutils stlinux20-cross-sh4-libgcc stlinux20-sh4-glibc-dev stlinux20-sh4-gdb |
|
|
Note: For technical reasons the stlinux20-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 should also be installed:
stlinux20-sh4-g++ stlinux20-sh4-libstdc++-dev stlinux20-sh4-gdb |
|
|
ST231 cross development tools
To cross build a C program for the ST231 Linux environment, the following packages are needed:
stlinux20-cross-st231-open64 stlinux20-cross-st231-binutils stlinux20-st231-glibc-dev stlinux20-cross-st231-open64crt stlinux20-cross-st231-open64lao stlinux20-cross-st231-open64wrappers stlinux20-cross-st231-st200libgcc |
|
|
To include C++ and debug support in the cross development environment the following additional packages should be installed:
stlinux20-st231-st200libstdc++ stlinux20-cross-st231-gdb stlinux20-st231-gdb |
|
|
|