Adding a new BSP

Joel Sherrill joel.sherrill at OARcorp.com
Tue Apr 19 13:27:09 UTC 2011


On 04/19/2011 05:09 AM, first name wrote:
> Hi,
> I am developing a BSP for an in house PowerPC board and I can't 
> understand
> how to add its name to the list of BSPs so that when I run the 
> configure script I
> can put --enable-rtemsbsp=MyBSPName.
If you are on 4.10 or newer, the MyBSPName is detected automatically based
upon the set of files with a name like this:

libbsp/powerpc/MyBSPFamilyName/make/custom/MyBSPName.cfg

You can build multiple variants of a single BSP and that makes
a BSP directory represent a family.  The ".cfg" file is the specific
name of the BSP you can build.
> Please can someone explain what to do or point me in the direction of 
> the relevant document?
There is a BSP and Device Driver Guide in the document set.

The general approach is to find a BSP that is close and either make your
custom board a variation of that.  If your board is close then you add a
make/custom file and then account for the differences via a combination
of configure time selection and conditional compilation.

If your board is not close enough to be a variation, then you make a new
BSP family directory and populate it.   Start by copying from BSPs that
are similar.

If you need help, this is the type of consulting I like to do.  Pair 
programming
a BSP is a very efficient way to get one.  You know that hardware and we
know the structure of the BSP and RTEMS issues.
> Thanks very much
> Roger Tarring


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985





More information about the users mailing list