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.

E<br />

Component Language<br />

REQUIRES r1 r2 .. // other components required. Note:<br />

// dependencies are automatically calculated<br />

// based on a components MODULES and<br />

// LINK_SYMS. For example, because nfsLib.o<br />

// calls rpcLib.o, the tool is able to<br />

// figure out that INCLUDE_NFS requires<br />

// INCLUDE_RPC. One only needs to list<br />

// requirements that cannot be detected from<br />

// MODULE dependencies. Typically only needed<br />

// for components that don’t have associated<br />

// MODULES (e.g., ones with just<br />

// configlettes).<br />

EXCLUDES e1 e1 .. // other components that cannot<br />

// coexist with this component<br />

HELP h1 h2 .. // reference pages associated with the<br />

// component.<br />

// The default is the MODULES and INIT_RTN<br />

// of the component. For example, if the<br />

// component has MODULE fooLib.o, then the<br />

// manual page for fooLib is automatically<br />

// associated with the component (if the<br />

// manual page exists). Similary for the<br />

// components INIT_RTN. If there are any<br />

// other relevant manual pages, they can<br />

// be specified here.<br />

MACRO_NEST expr // This is for Wind River internal use only.<br />

// It is used to tell the bsp2prj script<br />

// how to create a project corresponding<br />

// to a given <strong>BSP</strong>.<br />

// The "bsp2prj" script assumes that if<br />

// a <strong>BSP</strong> has macro INCLUDE_FOO defined,<br />

// the corresponding component INCLUDE_FOO<br />

// should be included in the project.<br />

// That is not always the case. For example,<br />

// The INCLUDE_AOUT component should only<br />

// be included if both INCLUDE_AOUT *and*<br />

// INCLUDE_LOADER are defined.<br />

// So for the INCLUDE_AOUT component, we set<br />

// MACRO_NEST = INCLUDE_LOADER.<br />

// SImilarly all WDB subcomponents have<br />

// MACRO_NEST = INCLUDE_WDB.<br />

E<br />

ARCHIVE a1 // archive in which to find the MODULES.<br />

// default is lib$(CPU)$(TOOL)vx.a.<br />

// file path is assumed to be relative<br />

// to $(WIND_BASE)/target/lib.<br />

// any archive listed here is<br />

// automatically added to the VxWorks<br />

// link-line when the component is<br />

// included.<br />

// Note: the tool only analyzes archives<br />

// associated with included components.<br />

233

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

Saved successfully!

Ooh no, something went wrong!