Passing BSP specific options

Quality Quorum qqi at theworld.com
Tue Feb 19 17:00:01 UTC 2002



On 19 Feb 2002, Ralf Corsepius wrote:

> Am Die, 2002-02-19 um 16.24 schrieb Greg Marsden:
> > For example, if I want to turn on UARTS_IO_MODE in the MPC8260 BSP, can
> > I pass in something to the configure script or the make to accomplish
> > this. I know that I can edit the generated bspopts.h file,
> No you can't. It will be overwritten, each time you configure your bsp.
>
> >  but there must be a better way.
> You should add something similar to this to your BSP's configure.ac (and
> rerun bootstrap inside of the directory containing the BSP's
> configure.ac.
>
> RTEMS_BSPOPTS_SET([UARTS_IO_MODE],[mpc8260*],[custom value])
> RTEMS_BSPOPTS_SET([UARTS_IO_MODE],[*],[default value])
> RTEMS_BSPOPTS_HELP([UARTS_IO_MODE],[explanatio on UARTS_IO_MODE])
>
> (cf. aclocal/bspopts.m4 for details.)
>
> Ralf
>
>

Anothe way is to overwrite bsp_startup in you application code - I suppose
that this is the most convenient way of customizing initial configuration.

Thanks,

Aleksey





More information about the users mailing list