Skip to content

Commit

Permalink
Tools: don't build replay on low-end STM32 boards
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Oct 31, 2024
1 parent a800cf3 commit 38a09b8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Tools/Replay/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ def configure(cfg):
cfg.env.HAL_GCS_ENABLED = 0

def build(bld):
if isinstance(bld.get_board(), boards.chibios) and bld.env['WITH_FATFS'] != '1':
# we need a filesystem for replay
return
print(bld.env)
if isinstance(bld.get_board(), boards.chibios):
if bld.env['WITH_FATFS'] != '1':
# we need a filesystem for replay
return
if not bld.env['APJ_BOARD_TYPE'].startswith('STM32H7'):
# need an H7
return

vehicle = bld.path.name

Expand Down

0 comments on commit 38a09b8

Please sign in to comment.