Adding new board support option

Ralf Corsepius ralf.corsepius at
Tue Oct 20 09:30:45 UTC 2009

On 10/20/2009 10:53 AM, Peter Dufault wrote:
> I'm adding a new board support option.  I put this in
> c/src/lib/libbsp/powerpc/mpc55xxevb/
> RTEMS_BSPOPTS_SET([HAS_SMC91111],[*],[0])
> [Define to 1 if the board has the SMC91111 chip.])
> and put this in c/src/lib/libbsp/powerpc/mpc55xxevb/
> if HAS_SMC91111
> network_rel_SOURCES += network/if_smc.c
> endif
> but:
> [dufault at finny mpc55xxevb]$ autoreconf
> HAS_SMC91111 does not appear in AM_CONDITIONAL
> autoreconf: /opt/rtems-4.10/bin/automake failed with exit status: 1
> [dufault at finny mpc55xxevb]$
> What step am I missing?

The RTEMS_BSPOPTS_* macros add defines to bspopts.h. Somewhat 
oversimplified, they work similar to AC_CONFIG_HEADER/config.h.

They don't add AM_CONDITIONALS. If you really want an AM_CONDITIONAL, 
you need to add it yourself.

However, you should really check, if you actually want an 
exported/global define in bspopts.h or an AM_CONDITIONAL.

In most cases, you will not want either of these.


More information about the users mailing list