|
|
|
@ -16,6 +16,7 @@ parser.add_argument('--build', action='store_true', default=False, help='build a
@@ -16,6 +16,7 @@ parser.add_argument('--build', action='store_true', default=False, help='build a
|
|
|
|
|
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='*') |
|
|
|
|
parser.add_argument('--python', default='python') |
|
|
|
|
args = parser.parse_args() |
|
|
|
|
|
|
|
|
|
os.environ['PYTHONUNBUFFERED'] = '1' |
|
|
|
@ -46,22 +47,22 @@ for board in get_board_list():
@@ -46,22 +47,22 @@ for board in get_board_list():
|
|
|
|
|
if not fnmatch.fnmatch(board, args.pattern): |
|
|
|
|
continue |
|
|
|
|
print("Configuring for %s" % board) |
|
|
|
|
run_program(["./waf", "configure", "--board", board], "configure: " + board) |
|
|
|
|
run_program([args.python, "waf", "configure", "--board", board], "configure: " + board) |
|
|
|
|
if args.build: |
|
|
|
|
if board == "iomcu": |
|
|
|
|
target = "iofirmware" |
|
|
|
|
else: |
|
|
|
|
target = "copter" |
|
|
|
|
run_program(["./waf", target], "build: " + board) |
|
|
|
|
run_program([args.python, "waf", target], "build: " + board) |
|
|
|
|
if args.no_bl: |
|
|
|
|
continue |
|
|
|
|
# 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"], "configure: " + board + "-bl") |
|
|
|
|
run_program([args.python, "waf", "configure", "--board", board, "--bootloader"], "configure: " + board + "-bl") |
|
|
|
|
if args.build: |
|
|
|
|
run_program(["./waf", "bootloader"], "build: " + board + "-bl") |
|
|
|
|
run_program([args.python, "waf", "bootloader"], "build: " + board + "-bl") |
|
|
|
|
|
|
|
|
|
if len(failures) > 0: |
|
|
|
|
print("Failed builds:") |
|
|
|
|