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

following subsections is required to ensure smooth integration of the <strong>BSP</strong> into the<br />

VxWorks development system.<br />

<strong>BSP</strong> Contents<br />

Determining the files and directories that are delivered as part of a <strong>BSP</strong> product is<br />

one of the last and most important steps in creating a <strong>BSP</strong>. The <strong>BSP</strong> must include<br />

all the files needed to recompile the <strong>BSP</strong>. It must not contain any files that would<br />

cause another <strong>BSP</strong> to fail to compile on the user’s system.<br />

Default Configuration<br />

Before beginning the <strong>BSP</strong> packaging phase, you must establish and set the default<br />

configuration for the <strong>BSP</strong>. This means setting the configuration options in config.h<br />

and selecting the default deliverables using the RELEASE variable in the makefile.<br />

In some cases, the target board for which the <strong>BSP</strong> is written may be available in<br />

several different configurations. For example, it may be available with different<br />

memory modules, peripheral controllers, processor types, or revision levels. One<br />

<strong>BSP</strong> that supports all possible configurations is usually the desired solution.<br />

To this end, you are encouraged to configure the final <strong>BSP</strong> for the default case with<br />

the minimum configuration possible. This allows the ROM set and VxWorks image<br />

to run, as shipped, on most all variations of the target board. Thus, the default<br />

memory size should be the minimum available, and all optional peripheral<br />

controllers should be configured out of the <strong>BSP</strong>. If end users have more memory or<br />

an optional module, they can then configure in the appropriate support and<br />

rebuild the VxWorks image and VxWorks boot ROMs when necessary.<br />

Any <strong>BSP</strong> configuration mechanisms for tuning target board support should be<br />

accessible through parameters in config.h. These parameters are typically either<br />

macros or conditional compilation directives. Any uncommon or complex<br />

configuration mechanisms should be explained fully in config.h and in the<br />

SPECIAL CONSIDERATIONS section of target.nr.<br />

The standard delivered makefile targets for Wind River <strong>BSP</strong>s include bootrom,<br />

vxWorks, and vxWorks.st. The standard make variable RELEASE is defined to be<br />

these targets. If a different set of targets (say, bootrom_uncmp.hex instead of<br />

bootrom.hex) is to be delivered, RELEASE should be redefined in the makefile. For<br />

example:<br />

196

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

Saved successfully!

Ooh no, something went wrong!