Tools: allow to build examples and tests with debug

This commit is contained in:
Pierre Kancir 2021-05-20 16:28:22 +02:00 committed by Andrew Tridgell
parent 58358d9f97
commit 7e389afbec
1 changed files with 14 additions and 4 deletions

View File

@ -137,9 +137,14 @@ def build_SITL(build_target, j=None, debug=False, board='sitl', clean=True, conf
return True
def build_examples(board, j=None, debug=False, clean=False):
def build_examples(board, j=None, debug=False, clean=False, configure=True, math_check_indexes=False, extra_configure_args=[]):
# first configure
waf_configure(board, j=j, debug=debug)
if configure:
waf_configure(board,
j=j,
debug=debug,
math_check_indexes=math_check_indexes,
extra_args=extra_configure_args)
# then clean
if clean:
@ -163,9 +168,14 @@ def build_replay(board, j=None, debug=False, clean=False):
run_cmd(cmd_make, directory=topdir(), checkfail=True, show=True)
return True
def build_tests(board, j=None, debug=False, clean=False):
def build_tests(board, j=None, debug=False, clean=False, configure=True, math_check_indexes=False, extra_configure_args=[]):
# first configure
waf_configure(board, j=j, debug=debug)
if configure:
waf_configure(board,
j=j,
debug=debug,
math_check_indexes=math_check_indexes,
extra_args=extra_configure_args)
# then clean
if clean: