buildman: Refactor target handling in Boards.scan()
authorSimon Glass <sjg@chromium.org>
Wed, 19 Jul 2023 23:48:20 +0000 (17:48 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 24 Jul 2023 15:34:10 +0000 (09:34 -0600)
commitf99f34b14b7c48360452a0bcca395e0fc7a01b2b
tree3aab2fcb49ea690689b37fd2dfce4918e9428623
parentbc12d03493d7aa1bdda6d9dc40e2457fb8e33684
buildman: Refactor target handling in Boards.scan()

Move the assert to the top of the function and provide an explicit
variables for the target name and base name.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/boards.py