Automatic Re-Building of BSP

Joel Sherrill joel.sherrill at OARcorp.com
Wed Feb 5 20:03:37 UTC 2003



Don wrote:
> 
> Per page 31 of the Getting Started guide for ss-20021007 (which was in
> the "cd-version directory" release of rtems-ss-2002118) I built BSPs
> using the following commands:
> 
> mkdir build-rtems
> cd build-rtems
> ../rtems-ss-20021118/configure --target=powerpc_rtems \
>   --disbale-posix --disable-cxx --enable-maintainer-mode \
>   --enable-rtemsbsp="psim ppcn_60x" --prefix=/opt/rtems
> make all install
> 
> With this, I successfully ran the "hello world" example on a PPC2A.

You have earned a beer!!! That's the first report I remember on that
BSP in years!!!  

Does ticker work?  That's usually the next step.

> Trying to move on to bigger and better things, I found the bsp.h needed
> tailoring.  Some PPC2A registers are not explicitly defined in the
> ppcn_60x BSP.  After making the changes and trying to make my "hello
> world pluss flash LEDs", I got compile errors indicative of the bsp.h
> changes not being included.

Are you modifying the hello world in c/src/tests/samples or the
standalone example application version?  
 
Either way you can do a make clean in that particular directory.
I know this is what I do so unless Ralf enlightens us both, that
is all I know to offer.

> The way I understood things, enabling maintainer mode (--enable-
> maintainer-mode) caused any required files to be updated when a make of
> the user code is performed.  Obviously, I am off base on this notion!
> 
> In tweaking the BSP, do I need to rebuild it using the "verbose"
> approach shown above?  Did I miss something with --enable-maintainer-
> mode?  Is there a better way?

Ralf can probably explain it for sure.  But I am only positive that
--enable-maintainer-mode verifies configure* and Makefile* dependencies
(those based upon auto* tools).

Ralf is there currently any source level dependency checking that 
can be enabled?

> Thanks!
> 
> Don
> 
> www.dynamic-controls-inc.com

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel 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