From 6e27d38a4d4426834f0b023acd5fb1dd0c0c8eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 24 Apr 2025 13:01:00 +0200 Subject: [PATCH] doc: _scripts: simplify vendor determination in board catalog generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the board's vendor from board.yml as the source of truth. Signed-off-by: Benjamin Cabé --- doc/_scripts/gen_boards_catalog.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/doc/_scripts/gen_boards_catalog.py b/doc/_scripts/gen_boards_catalog.py index a22ad111176..3771973a485 100755 --- a/doc/_scripts/gen_boards_catalog.py +++ b/doc/_scripts/gen_boards_catalog.py @@ -262,17 +262,7 @@ def get_catalog(generate_hw_features=False): logger.info("Skipping generation of supported hardware features.") for board in boards.values(): - # We could use board.vendor but it is often incorrect. Instead, deduce vendor from - # containing folder. There are a few exceptions, like the "native" and "others" folders - # which we know are not actual vendors so treat them as such. - for folder in board.dir.parents: - if folder.name in ["native", "others"]: - vendor = "others" - break - elif vnd_lookup.vnd2vendor.get(folder.name): - vendor = folder.name - break - + vendor = board.vendor or "others" socs = {soc.name for soc in board.socs} full_name = board.full_name or board.name doc_page = guess_doc_page(board)