buildman: Replace the Options column with config name
authorSimon Glass <sjg@chromium.org>
Tue, 12 Jul 2022 01:04:06 +0000 (19:04 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 5 Aug 2022 15:47:56 +0000 (11:47 -0400)
commit256126c29434a93584b6043b1c1d1c6dbbc340db
tree4a2219c3f827d777d60f3d32bf6beb35ba2e08ac
parent969fd333bab22ed263dbcc15219d2aa9d331dd92
buildman: Replace the Options column with config name

This appears in boards.cfg but we want to remove it. Drop support for
generating it and reading it. Detect an old boards.cfg file that has
this field and regenerate it, to avoid problems.

Instead, add the config name in that place. This fixes a subtle bug in
the generation code, since it uses 'target' for the config name and then
overwrites the value in scan() by setting params['target'] to the name
of the defconfig. The defconfig name is not the same as the
SYS_CONFIG_NAME variable.

With this change, we still have the config name and it can be searched
by buildman, e.g. with:

   buildman -nv sun5i

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Tom Rini <trini@konsulko.com>
tools/buildman/board.py
tools/buildman/boards.py