How to Do a VxWorks Source Build

The first step before compiling a VxWorks Kernel or compiling RDM for VxWorks is to set up a VxWorks Source Build (VSB). Set up the VxWorks environment as follows, where {WindRiver} is the location of the VxWorks 7 host installation:

$ {WindRiver}/wrenv.sh -p vxworks-7

Or,

c:> {WindRiver}/wrenv.exe -p vxworks-7

You can use Workbench to set up a VxWorks Source Build. However in the following we will use the command line.

After you have installed RDM, locate the appropriate target directory for your platform. In the following we assume you are using vxworks7-x86_32_core.

$ cd {targetdir}/target/vxworks7-x86_32_core

where {targetdir} is the location where RDM have been installed. In this directory you find a number of files. Consult setup.sh and make sure that the following two environment variables have been set as documented in this script:

LM_LICENSE_FILE
WIND_HOME

wrenv.sh that you ran first will set the second environment variable. The script uses a number of other environment variables. Some of them are relevant for the VxWorks Source Build while other variables are needed for later steps. Please consult this script for further details.

When you are satisfied with the content of setup.sh run the script as follows:

$ sh ./setup.sh --vsb

VSB for other targets

A VSB for other targets can also be set up. This is only applicable with a RDM source package.

In the source for RDM, create a target directory under target similar to target/vxworks7-x86_32_core for VxWorks downloadable kernel modules (DKM) or a target directory like target/vxworks7-rtp-x86_32_core for VxWorks real time processes (RTP). Edit the files to matches the target directory and the desired target platform. Edit the setup.sh according to the instructions in that file.

When you are satisfied with the content of setup.sh run the scrip as follows:

$ sh ./setup.sh --vsb

And then:

$ sh ./setup.sh --template

to generate the template needed for building RDM in later steps.