Creating a new TDP

In most cases, you will not create a TDP from scratch but rather base your new TDP on an existing TDP template. In this example, you will adapt an existing TDP gccmingw_template.xdp to your own environment.

The TDP file format is .xdp, as in XML Deployment Port. There are file-naming conventions when creating a new TDP:

  • c for a C or C++ TDP, a for an Ada TDP.

  • An acronym for the target platform host, in this case call it wingcc for Windows GCC.

  • The name of the development environment mingw

Therefore, our TDP filename shall be cwingccmingw.

All TDPs are located in the following directory:

<install_dir>/targets/xml/<tdp_name>.xdp

where <install_dir> is the installation directory, and <tdp_name> is the name of the TDP.

To start the TDP Editor:

In Rational® Test RealTime Studio, from the Tools menu, select Target Deployment Port and Start Editor, or select Target Deployment Port Editor from the Windows start menu.

or

From the command line, type tdpeditor.

To open a TDP template:

  1. In the TDP Editor, from the File menu, select Open.
  2. In the targets subdirectory, select the gccmingw_template.xdp TDP file.
  3. Right click the Top level node in the tree-view pane: Gnu 2.95.3-5 (mingw).
  4. Select Rename.and enter a new name for this TDP: My_MinGW. This name identifies the TDP in Rational® Test RealTime GUI.
  5. In the Comment for the root node section, enter contact information such as your name and email address. This makes things easier when sharing the TDP with other users.

To save the new TDP:

  1. From the File menu, select Save xdp As,
  2. Save your new TDP as cwingccmingw.xdp.
  3. From the File menu, select Save and Generate. The TDP Editor automatically creates a directory named cwingccmingw and all the files required for the TDP in that location.
  4. Move on the next section: Editing a TDP