From d457b5a9427fc1727fe8575ec734bec588d14dd7 Mon Sep 17 00:00:00 2001 From: Wojciech Sipak Date: Fri, 3 Nov 2023 15:43:14 +0100 Subject: [PATCH] build for all platforms that are not simulation and not posix native --- scripts/get_boards_samples_pairs.py | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/scripts/get_boards_samples_pairs.py b/scripts/get_boards_samples_pairs.py index 86f9b15..1cec9bf 100755 --- a/scripts/get_boards_samples_pairs.py +++ b/scripts/get_boards_samples_pairs.py @@ -7,10 +7,7 @@ def get_boards() -> list: """ - Get a list of "supported" boards from the Zephyr project. - By supported we understand: - - Not a virtual or posix platform - - Supported CPU architecture + Get a list of "not a virtual or posix platform" boards from the Zephyr project. Returns: list: A filtered list of pairs (arch, board). @@ -25,20 +22,14 @@ class Args: board_roots = [Path(config.project_path)] zephyr_boards = find_arch2boards(Args()) - flat_boards = flatten(zephyr_boards) + boards_to_run = flatten(zephyr_boards).values() - # Filter QEMU and ARM Fixed Virtual Platforms - flat_boards = dict(filter(lambda b: "qemu" not in b[0] and "native" not in b[0], flat_boards.items())) - flat_boards = dict(filter(lambda b: not b[0].startswith("fvp_"), flat_boards.items())) + # Do not build for posix platforms. + omit_arch = ("posix") + boards_to_run = filter(lambda x: x.arch not in omit_arch, boards_to_run) - boards_to_run = flat_boards.values() - - # Filter unsupported architectures - omit_arch = ("arc", "posix") - boards_to_run = filter(lambda x: all(map(lambda y: y != x.arch, omit_arch)), boards_to_run) - - # Filter out remaining boards that match the keywords - omit_board = ("acrn", "qemu", "native", "nsim", "xenvm", "xt-sim") + # Do not build for simulation targets. + omit_board = ("nsim", "xenvm", "xt-sim", "fvp_") boards_to_run = list(filter(lambda x: all(map(lambda y: y not in x.name, omit_board)), boards_to_run)) return [(board.arch, board.name) for board in boards_to_run]