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.

VxWorks 5.5<br />

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

...<br />

include $(TGT_DIR)/h/make/defs.bsp<br />

...<br />

include $(TGT_DIR)/h/make/rules.bsp<br />

...<br />

The defs.bsp and rules.bsp files now include any other files necessary to build<br />

your <strong>BSP</strong>. To modify your <strong>BSP</strong>, simply comment out the unnecessary includes in<br />

your makefile.<br />

In addition, a makefile conversion tool, bspCnvtT2_2, has been provided in the<br />

installDir/host/$(WIND_HOST_TYPE)/bin directory. You can invoke<br />

bspCnvtT2_2 with the following syntax:<br />

% bspCnvtT2_2 bspName1 bspName2 ...<br />

bspCnvtT2_2 converts your makefile by performing the following actions:<br />

■<br />

■<br />

■<br />

Saving your old makefile to a file named Makefile.old in your <strong>BSP</strong> directory.<br />

Commenting out the unnecessary includes.<br />

Warning you about the use of any hex build flags. (See Hex Utilities and objcopy,<br />

p.212.)<br />

Hex Utilities and objcopy<br />

The use of Wind River-provided hex and binary utilities, such as aoutToBinDec or<br />

coffHexArm, has been deprecated in favor of the GNU utility objcopy. See the<br />

GNU Toolkit User’s <strong>Guide</strong> chapter on binary utilities for details. It is recommended<br />

that you modify your <strong>BSP</strong> build settings as necessary to use objcopy.<br />

New Default Value of WDB_COMM_TYPE<br />

The WDB_COMM_TYPE default value has been changed from<br />

WDB_COMM_NETWORK to WDB_COMM_END. If you plan to use a different<br />

communication mode, define it explicitly in config.h. For example, if by default<br />

your <strong>BSP</strong> sets up WDB communication on a serial line, you should include the<br />

following line in config.h:<br />

...<br />

/* make sure this appears after inclusion of configAll.h */<br />

#define WDB_COMM_TYPE WDB_COMM_SERIAL<br />

...<br />

212

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

Saved successfully!

Ooh no, something went wrong!