User guide

50 DC 900-1333P
Freeway User Guide
2.2.6 Compile the Example Server-Resident Application
To build the example SRA, you must have installed a GNU cross compiler compatible
with the target CPU in your Freeway. It is recommended that you use the GNU cross
compiler provided with the Wind River Systems Tornado tool set. The target CPU-spe-
cific portion of the Tornado tool set is called the Board Support Package (BSP). To use
the GNU cross compiler provided with Tornado, you must have purchased the appro-
priate BSP for your Freeway. The pc486 BSP is required for Freeway 1100/1150/
1200/1300, the mv162 BSP is required for a Freeway 2000/4000/8800 with an MVME
162 CPU, and the mv2604 BSP is required for a Freeway 2000/4000/8800 with an
MVME 2600 CPU.
If you are using a GNU compiler that is not part of a Tornado distribution, you must
make several modifications to the environment files and make files used to build your
SRA. See the Freeway Server Software Toolkit Programmer’s Guide for further informa-
tion on building the SRA without the Tornado distribution.
Compile the example SRA code using the provided make files.
Step 1: Edit
freeway/envcom
If you installed the Freeway server software in a directory other than /usr/local, modify
the path assigned to
FWBASE in the freeway/envcom file.
Step 2: Edit
freeway/[env486, env68k, or envppc]
If you are using the GNU tool set distributed with Tornado to compile your SRA, and
you installed Tornado in a directory other than
/usr/wind, modify the path assigned to
WIND_BASE in the freeway/env486 file (Freeway 1100/1150/1200/1300), freeway/env68k
file (Freeway 2000/4000/8800 with an MVME 162 CPU), or freeway/envppc file
(Freeway 2000/4000/8800 with an MVME 2600 CPU).