Passing BSP specific options

Ralf Corsepius corsepiu at faw.uni-ulm.de
Tue Feb 19 16:47:45 UTC 2002


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





More information about the users mailing list