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 />

Figure 6-4<br />

Include Components Window<br />

6<br />

The project facility automatically analyzes object module dependencies in order to<br />

calculate component dependencies; for example, if fooLib.o has an unresolved<br />

global for logMsg( ), an automatic dependency upon the component<br />

INCLUDE_LOGGING is detected. For components not shipped in object module<br />

format, CDL supports the explicit listing of component dependencies. If the source<br />

portion contains a call to logMsg( ), the project facility does not detect the<br />

dependency; instead, an explicit dependency upon INCLUDE_LOGGING should<br />

be declared using the REQUIRES property. See Step 6.<br />

If your module is not located in the standard path, use the ARCHIVE property to<br />

specify the archive name, for example, /path/fooLib.a. (For additional instructions<br />

concerning the use of ARCHIVE, see Step 10.)<br />

NOTE: Third parties should create their own archives; do not modify Wind River<br />

archives.<br />

Use the HDR_FILES property to specify any .h files associated with the component,<br />

like foo.h. These files are emitted in prjConfig.c, providing the initialization<br />

routine with a declaration.<br />

If there is source code that should be compiled as part of the component, put it in<br />

a .c file and specify the file name in the CONFIGLETTES property, for example,<br />

fooConfig.c. Component parameters should be referenced in the configlette or in<br />

the initialization routine; otherwise they have no effect.<br />

129

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

Saved successfully!

Ooh no, something went wrong!