[PATCH 10/19] buildman: Incorporate the genboardscfg.py tool

Tom Rini trini at konsulko.com
Tue Jul 12 23:38:51 CEST 2022

On Mon, Jul 11, 2022 at 07:04:04PM -0600, Simon Glass wrote:
> Bring this tool into buildman, so we don't have to run it separately. The
> board.cfg file is still produced as part of the build, to save time when
> doing another build in the same working directory. If it is out of date
> with respect to the Kconfig, it is updated.
> Time to regenerate on a recent single-thread machine is 4.6s (1.3s on a
> 32-thread machine), so we do need some sort of cache if we want buildman
> to be useful on incremental builds. We could use Python's pickle format
> but:
> - it seems useful to allow boards.cfg to be regenerated, at least for a
>   while, in case other tools use it
> - it is possible to grep the file easily, e.g. to find boards which use
>   a particular SoC (similar to 'buildman -nv <soc>'

While I don't think other tools still use boards.cfg, this will make it
easier to find out that I'm wrong.  Perhaps once the CONFIG to Kconfig
migration is done we can move to just pickle'ing the data or similar
since I find the main use of what was in boards.cfg can be figured out
with some other git grep'ing, and in turn that's mainly for me when
trying to convert stuff.  Thanks for doing this.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220712/8151dfb8/attachment.sig>

More information about the U-Boot mailing list