waf bsp_defaults sometimes includes multiple BSPs

Chris Johns chrisj at rtems.org
Fri Oct 2 00:29:16 UTC 2020

On 2/10/20 7:38 am, Joel Sherrill wrote:
> I am generating a uniquely named ini file per BSP.

What about doing:

 echo "[arch/bsp]" > config-arch-bsp.ini

For example:

 echo "[arm/lpc32xx_mzx_stage_1]" > config-arm-lpc32xx_mzx_stage_1.ini

I have concerns about the long term effects of users dumping the defaults into
an ini file.

> In doing an ls -l, I noticed
> the size varied by at least a factor of three. This is because when some BSPs
> are put in, the entire family is being included.  I suspected this happens when
> a BSP name matches the family name but leon3 doesn't trip this behavior. Here is
> an example:

This does seem to be wrong.

> config-arm-lpc32xx_mzx.ini:[arm/lpc32xx_mzx]
> config-arm-lpc32xx_mzx.ini:[arm/lpc32xx_mzx_stage_1]
> config-arm-lpc32xx_mzx.ini:[arm/lpc32xx_mzx_stage_2]
> I don't think this behavior is correct. I am asking for the bsp defaults for a
> single BSP variant.1

I agree.


More information about the devel mailing list