02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

into a component description file. The following steps taken to create the<br />

component INCLUDE_FOO are a suggested order only; the sequence is not<br />

mandatory. Nor is there meant to be any suggestion you use all of the properties<br />

and object classes described.<br />

Step 1:<br />

Name and Provide a Synopsis<br />

To create your new component, first name it and provide a synopsis of its utility.<br />

Component INCLUDE_FOO {<br />

NAME<br />

foo component<br />

SYNOPSIS this is just an example component<br />

...<br />

In the imaginary component INCLUDE_FOO, the NAME property is foo<br />

component. SYNOPSIS informs the user that “this is just an example component.”<br />

NAME and SYNOPSIS affect user presentation only; they have no bearing on<br />

initialization sequence or dependencies.<br />

Step 2:<br />

Describe the Code-Related Elements<br />

Next, describe your component’s code portions by defining any modules and<br />

source configlettes that should be configured in during the build.<br />

NOTE: <strong>BSP</strong> stubs are supported for Tornado 2.2 however, they cannot be defined<br />

for earlier Tornado 2.x releases.<br />

If your imaginary component INCLUDE_FOO has an object module associated<br />

with it, use the MODULES property to specify it. You can specify any number of<br />

modules this way. In the following example, fooLib.o and fooShow.o are listed:<br />

...<br />

MODULES<br />

HDR_FILES<br />

ARCHIVE<br />

CONFIGLETTES<br />

...<br />

fooLib.o fooShow.o<br />

foo.h<br />

fooLib.a<br />

fooConfig.c<br />

Tornado 2.x offers visibility into component dependencies by graphically<br />

presenting component relationships in the Include Components and Exclude<br />

Components windows of the project facility (see Figure 6-4).<br />

128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!