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.

2<br />

<strong>BSP</strong> Organization<br />

Files in the target/config/bspname Directory<br />

The target/config/bspname subdirectory contains the system or<br />

hardware-dependent files for the <strong>BSP</strong>.<br />

2<br />

README<br />

The README file contains the <strong>BSP</strong> release record. It records each release version<br />

and revision and documents work done on the <strong>BSP</strong> as a whole. This file was first<br />

introduced with Tornado 1.0.<br />

Makefile and depend.bspname<br />

The makefile controls the building of images from the command line. Beginning<br />

with VxWorks 5.2, the standard make utility was GNU make, and the current<br />

make technology continues to use many of the advanced features available in<br />

GNU make. The <strong>BSP</strong> make system includes make subfiles located in the<br />

target/h/make directory. If a dependencies file does not already exist, make<br />

automatically generates a depend.bspname file that it uses to track all module<br />

dependencies. The depend.bspname dependency file is not shipped with the <strong>BSP</strong>, it<br />

is a generated file. For more information on customizing the makefile, see the<br />

Tornado User’s <strong>Guide</strong>, 2.2.<br />

Within the makefile, you must define the following macros:<br />

CPU<br />

The target CPU architecture (for example, MC68040).<br />

TOOL<br />

The host tool chain (for example, gnu).<br />

TARGET_DIR<br />

The target directory (<strong>BSP</strong>) name.<br />

VENDOR<br />

The target manufacturer’s name.<br />

BOARD<br />

The target name.<br />

ROM_TEXT_ADRS<br />

Specifies the boot ROM entry address in hexadecimal. For most boards, this is<br />

set to the beginning of the ROM address area. However, if your hardware<br />

configuration uses an area at the start of ROM for the reset vector, you should<br />

offset accordingly.<br />

15

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

Saved successfully!

Ooh no, something went wrong!