Skip to content

Commit 4da1a93

Browse files
committed
fix build with fomu/fomu
1 parent 5a37870 commit 4da1a93

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/build_utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
def skip_example(example, board):
44
ex_dir = pathlib.Path('examples/') / example
55
bsp = pathlib.Path("hw/bsp")
6-
7-
# board without family
8-
board_dir = bsp / board
96

10-
if board_dir.exists():
7+
if (bsp / board / "board.mk").exists():
8+
# board without family
9+
board_dir = bsp / board
1110
family = ""
1211
mk_contents = ""
1312
else:
14-
# otherwise look into family
13+
# board within family
1514
board_dir = list(bsp.glob("*/boards/" + board))
1615
if not board_dir:
1716
# Skip unknown boards

0 commit comments

Comments
 (0)