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.

A<br />

Upgrading a <strong>BSP</strong> for Tornado 2.0<br />

A.3 Project Issues<br />

The project facility is the major difference between Tornado 1.0.1 and Tornado 2.0.<br />

For command-line operations, there is no difference between a Tornado 1.0.1 and<br />

a Tornado 2.0 <strong>BSP</strong>. In Tornado 2.0, project builds are completely new, and they do<br />

not involve files in target/config/all. The old usrConfig.c file has been pulled apart<br />

into initialization groups and component configlettes, which are compiled and<br />

linked together by the project build mechanism. Building with the project facility<br />

differs greatly from building from the command line.<br />

Building from the command line uses the <strong>BSP</strong> Makefile as well as the config.h and<br />

configAll.h header files to control most of the configuration of the object being<br />

built. When building from the project facility, the configuration is determined by<br />

the project header files instead. Project building does not involve the <strong>BSP</strong> makefile.<br />

If there is an item in config.h or configAll.h that is described to the project facility<br />

through a CDF file, that item is controlled solely by the project information;<br />

changes to config.h and configAll.h do not affect it, nor do they affect an existing<br />

project.<br />

Note, if there is something in config.h or configAll.h that the project tool is not<br />

aware of, then the config.h and configAll.h selections will prevail during project<br />

builds.<br />

There are two methods for generating a default project from a <strong>BSP</strong><br />

■<br />

Invoke the project facility wizard. To open the wizard, select the File>New<br />

Project command from the menubar, or, if the Create Project or Open Workspace<br />

window is open, select the New tab.<br />

■<br />

Use the command line, as follows:<br />

A<br />

make release<br />

A.4 Product Contents<br />

The most obvious change for version 1.2 <strong>BSP</strong>s is the product contents list, which is<br />

provided in M. <strong>BSP</strong> Product Contents.<br />

In Tornado 1.0.1, each <strong>BSP</strong> product carried a large number of driver files that were<br />

also delivered as part of the base Tornado product. This redundancy caused<br />

problems for customers, who were uncertain what version of a file was being used.<br />

205

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

Saved successfully!

Ooh no, something went wrong!