BSP specific settings

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Sep 30 14:45:39 UTC 2014


Hello Daniel,

On 30/09/14 16:30, Daniel Cederman wrote:
> I would like to add a way for the user of the leon3 bsp to specify the irq that
> should be used for IPIs. Is it adding an option to configure.ac for the bsp
> that is the recommended way? Or does there exist a supported way of setting bsp
> specific parameters similar to how it is done with confdefs.h? So that the
> kernel does not need to be recompiled to change it?

if you are happy with a build time option, then the BSP options in the 
configure.ac are the standard way to do this.  I don't think we want this for 
the LEON3 BSPs.

If you need a link time option, then there is no standard way to do this on the 
BSP level.  Most BSPs use some sort of weak tables or functions.  The LEON3 BSP 
already uses such a thing for debug_uart_index for example.  The 
a9mpcore_clock_periphclk() function is another example on ARM.  If you use 
this, then I would place it in bsp.h and add an appropriate comment.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list