02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6<br />

Components<br />

! CAUTION: Do not alter the Wind River-supplied source configlette files in<br />

target/config/comps/src. If necessary, use a <strong>BSP</strong>- or project-specific CDF to cancel<br />

its declaration as CONFIGLETTES and to define <strong>BSP</strong>_STUB (available for Tornado<br />

2.2 only) instead. A copy of the generic file is then placed into the <strong>BSP</strong> directory,<br />

and it can be altered without impacting other <strong>BSP</strong>s, or changing the original file.<br />

! CAUTION: Do not alter Wind River-supplied CDFs directly. Use the naming<br />

convention to create a file whose higher precedence overrides the default<br />

properties of Wind River-supplied components.<br />

6<br />

6.4 Releasing Components<br />

The process of releasing a Tornado component has been designed to preclude<br />

modification of existing configuration files. New component description files<br />

should be independent of existing files, with two exceptions:<br />

■<br />

New component objects must be bound into an existing folder or selection.<br />

■<br />

New component object initialization routines must be associated with an<br />

existing initGroup.<br />

A particular CDL convention makes it possible to bind a new component object to<br />

an existing folder or selection and to an existing initGroup without modifying the<br />

existing elements. By prepending an underscore (“_”) to certain component<br />

properties, you can reverse the meaning of the property. For example, if there is<br />

already a folder FOLDER_EXISTING and an initGroup initExisting, you can bind<br />

a new component to them (without modifying them), as follows:<br />

Component INCLUDE_FOO<br />

...<br />

_CHILDREN FOLDER_EXISTING<br />

_INIT_ORDER initExisting<br />

}<br />

The property _CHILDREN has the opposite relationship to FOLDER_EXISTING as<br />

CHILDREN; that is, _CHILDREN identifies the “parent.” In other words, it<br />

produces the same effect as FOLDER_EXISTING having the component<br />

INCLUDE_FOO on its list of children—without any modifications being made to<br />

the CDF containing the FOLDER_EXISTING object.<br />

135

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

Saved successfully!

Ooh no, something went wrong!