fix build with fomu/fomu

This commit is contained in:
hathach 2022-06-29 15:12:01 +07:00
parent 5a378703fb
commit 4da1a9359d
1 changed files with 4 additions and 5 deletions

View File

@ -3,15 +3,14 @@ import pathlib
def skip_example(example, board):
ex_dir = pathlib.Path('examples/') / example
bsp = pathlib.Path("hw/bsp")
# board without family
board_dir = bsp / board
if board_dir.exists():
if (bsp / board / "board.mk").exists():
# board without family
board_dir = bsp / board
family = ""
mk_contents = ""
else:
# otherwise look into family
# board within family
board_dir = list(bsp.glob("*/boards/" + board))
if not board_dir:
# Skip unknown boards