From 0d283bf3a73a340fa7107d920fbdf9ca2a387583 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 18 Jan 2020 19:34:49 +1100 Subject: [PATCH] Tools: added --build-target to configure_all.py --- Tools/scripts/configure_all.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/configure_all.py b/Tools/scripts/configure_all.py index 636f37bf40..93e1b40038 100755 --- a/Tools/scripts/configure_all.py +++ b/Tools/scripts/configure_all.py @@ -13,6 +13,7 @@ import argparse parser = argparse.ArgumentParser(description='configure all ChibiOS boards') parser.add_argument('--build', action='store_true', default=False, help='build as well as configure') +parser.add_argument('--build-target', default='copter', help='build target') parser.add_argument('--stop', action='store_true', default=False, help='stop on build fail') parser.add_argument('--no-bl', action='store_true', default=False, help="don't check bootloader builds") parser.add_argument('--pattern', default='*') @@ -51,8 +52,10 @@ for board in get_board_list(): if args.build: if board == "iomcu": target = "iofirmware" + elif board in ['CUAV_GPS', 'ZubaxGNSS'] or board.startswith('f103') or board.startswith('f303'): + target = "AP_Periph" else: - target = "copter" + target = args.build_target run_program([args.python, "waf", target], "build: " + board) if args.no_bl: continue