fix build with fomu/fomu

This commit is contained in:
hathach
2022-06-29 15:12:01 +07:00
parent 5a378703fb
commit 4da1a9359d

View File

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