Browse Source

Tools: added bootloader configure to configure_all.py

master
Andrew Tridgell 6 years ago
parent
commit
e67ccbe13d
  1. 7
      Tools/scripts/configure_all.py

7
Tools/scripts/configure_all.py

@ -38,5 +38,10 @@ def run_program(cmd_list): @@ -38,5 +38,10 @@ def run_program(cmd_list):
for board in get_board_list():
if not fnmatch.fnmatch(board, board_pattern):
continue
print("Building for %s" % board)
print("Configuring for %s" % board)
run_program(["./waf", "configure", "--board", board])
# check for bootloader def
hwdef_bl = os.path.join('libraries/AP_HAL_ChibiOS/hwdef/%s/hwdef-bl.dat' % board)
if os.path.exists(hwdef_bl):
print("Configuring bootloader for %s" % board)
run_program(["./waf", "configure", "--board", board, "--bootloader"])

Loading…
Cancel
Save