bsp-wide #defines

Ralf Corsepius corsepiu at faw.uni-ulm.de
Mon Dec 30 08:04:26 UTC 2002


Am Son, 2002-12-29 um 17.29 schrieb Joel Sherrill:
> gregory.menke at gsfc.nasa.gov wrote:
> > 
> > Hi Joel,
> > 
> > I posted this here in case you check the list instead of your work
> > email.  I'm doing fairly well on the Racerxc bsp, its
> > configuring/makeing OK at this point.  I do find I need to #define a
> > couple things for the bsp that apply to source under libcpu.  I was
> > wondering if you prefer to put such things in bsp_specs or in the
> > CFLAGS supplied by the make/custom .cfg file.
> 
> Neither :).  Ralf may comment differently
No, your answer is correct ;)

>  but the appropriate place 
> is usually in bsp.h or bspopts.h.in.  bspopts.h can be changed
> via BSP specific configure options so it might be desirable for
> certain types of things like default BSP initialization (e.g.
> console polled vs. interrupt).
You might want to have a look into aclocal/bspopts.m4 and 
into BSPs applying the autoconf-macros from there-in in their
c/src/lib/libbsp/<cpu>/<bsp>/configure.ac's.

Ralf





More information about the users mailing list