|
|
@ -99,7 +99,7 @@ def relwaf(): |
|
|
|
return "./modules/waf/waf-light" |
|
|
|
return "./modules/waf/waf-light" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def waf_configure(board, j=None, debug=False, math_check_indexes=False, coverage=False, ekf_single=False, postype_single=False, sitl_32bit=False, extra_args=[], extra_hwdef=None): |
|
|
|
def waf_configure(board, j=None, debug=False, math_check_indexes=False, coverage=False, ekf_single=False, postype_single=False, sitl_32bit=False, ubsan=False, ubsan_abort=False, extra_args=[], extra_hwdef=None): |
|
|
|
cmd_configure = [relwaf(), "configure", "--board", board] |
|
|
|
cmd_configure = [relwaf(), "configure", "--board", board] |
|
|
|
if debug: |
|
|
|
if debug: |
|
|
|
cmd_configure.append('--debug') |
|
|
|
cmd_configure.append('--debug') |
|
|
@ -113,6 +113,10 @@ def waf_configure(board, j=None, debug=False, math_check_indexes=False, coverage |
|
|
|
cmd_configure.append('--postype-single') |
|
|
|
cmd_configure.append('--postype-single') |
|
|
|
if sitl_32bit: |
|
|
|
if sitl_32bit: |
|
|
|
cmd_configure.append('--sitl-32bit') |
|
|
|
cmd_configure.append('--sitl-32bit') |
|
|
|
|
|
|
|
if ubsan: |
|
|
|
|
|
|
|
cmd_configure.append('--ubsan') |
|
|
|
|
|
|
|
if ubsan_abort: |
|
|
|
|
|
|
|
cmd_configure.append('--ubsan-abort') |
|
|
|
if extra_hwdef is not None: |
|
|
|
if extra_hwdef is not None: |
|
|
|
cmd_configure.extend(['--extra-hwdef', extra_hwdef]) |
|
|
|
cmd_configure.extend(['--extra-hwdef', extra_hwdef]) |
|
|
|
if j is not None: |
|
|
|
if j is not None: |
|
|
@ -134,7 +138,7 @@ def waf_build(target=None): |
|
|
|
run_cmd(cmd, directory=topdir(), checkfail=True) |
|
|
|
run_cmd(cmd, directory=topdir(), checkfail=True) |
|
|
|
|
|
|
|
|
|
|
|
def build_SITL(build_target, j=None, debug=False, board='sitl', clean=True, configure=True, math_check_indexes=False, coverage=False, |
|
|
|
def build_SITL(build_target, j=None, debug=False, board='sitl', clean=True, configure=True, math_check_indexes=False, coverage=False, |
|
|
|
ekf_single=False, postype_single=False, sitl_32bit=False, extra_configure_args=[]): |
|
|
|
ekf_single=False, postype_single=False, sitl_32bit=False, ubsan=False, ubsan_abort=False, extra_configure_args=[]): |
|
|
|
|
|
|
|
|
|
|
|
# first configure |
|
|
|
# first configure |
|
|
|
if configure: |
|
|
|
if configure: |
|
|
@ -146,6 +150,8 @@ def build_SITL(build_target, j=None, debug=False, board='sitl', clean=True, conf |
|
|
|
postype_single=postype_single, |
|
|
|
postype_single=postype_single, |
|
|
|
coverage=coverage, |
|
|
|
coverage=coverage, |
|
|
|
sitl_32bit=sitl_32bit, |
|
|
|
sitl_32bit=sitl_32bit, |
|
|
|
|
|
|
|
ubsan=ubsan, |
|
|
|
|
|
|
|
ubsan_abort=ubsan_abort, |
|
|
|
extra_args=extra_configure_args) |
|
|
|
extra_args=extra_configure_args) |
|
|
|
|
|
|
|
|
|
|
|
# then clean |
|
|
|
# then clean |
|
|
@ -161,7 +167,7 @@ def build_SITL(build_target, j=None, debug=False, board='sitl', clean=True, conf |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def build_examples(board, j=None, debug=False, clean=False, configure=True, math_check_indexes=False, coverage=False, |
|
|
|
def build_examples(board, j=None, debug=False, clean=False, configure=True, math_check_indexes=False, coverage=False, |
|
|
|
ekf_single=False, postype_single=False, sitl_32bit=False, |
|
|
|
ekf_single=False, postype_single=False, sitl_32bit=False, ubsan=False, ubsan_abort=False, |
|
|
|
extra_configure_args=[]): |
|
|
|
extra_configure_args=[]): |
|
|
|
# first configure |
|
|
|
# first configure |
|
|
|
if configure: |
|
|
|
if configure: |
|
|
@ -173,6 +179,8 @@ def build_examples(board, j=None, debug=False, clean=False, configure=True, math |
|
|
|
postype_single=postype_single, |
|
|
|
postype_single=postype_single, |
|
|
|
coverage=coverage, |
|
|
|
coverage=coverage, |
|
|
|
sitl_32bit=sitl_32bit, |
|
|
|
sitl_32bit=sitl_32bit, |
|
|
|
|
|
|
|
ubsan=ubsan, |
|
|
|
|
|
|
|
ubsan_abort=ubsan_abort, |
|
|
|
extra_args=extra_configure_args) |
|
|
|
extra_args=extra_configure_args) |
|
|
|
|
|
|
|
|
|
|
|
# then clean |
|
|
|
# then clean |
|
|
@ -198,7 +206,7 @@ def build_replay(board, j=None, debug=False, clean=False): |
|
|
|
return True |
|
|
|
return True |
|
|
|
|
|
|
|
|
|
|
|
def build_tests(board, j=None, debug=False, clean=False, configure=True, math_check_indexes=False, coverage=False, |
|
|
|
def build_tests(board, j=None, debug=False, clean=False, configure=True, math_check_indexes=False, coverage=False, |
|
|
|
ekf_single=False, postype_single=False, sitl_32bit=False, extra_configure_args=[]): |
|
|
|
ekf_single=False, postype_single=False, sitl_32bit=False, ubsan=False, ubsan_abort=False, extra_configure_args=[]): |
|
|
|
|
|
|
|
|
|
|
|
# first configure |
|
|
|
# first configure |
|
|
|
if configure: |
|
|
|
if configure: |
|
|
@ -210,6 +218,8 @@ def build_tests(board, j=None, debug=False, clean=False, configure=True, math_ch |
|
|
|
postype_single=postype_single, |
|
|
|
postype_single=postype_single, |
|
|
|
coverage=coverage, |
|
|
|
coverage=coverage, |
|
|
|
sitl_32bit=sitl_32bit, |
|
|
|
sitl_32bit=sitl_32bit, |
|
|
|
|
|
|
|
ubsan=ubsan, |
|
|
|
|
|
|
|
ubsan_abort=ubsan_abort, |
|
|
|
extra_args=extra_configure_args) |
|
|
|
extra_args=extra_configure_args) |
|
|
|
|
|
|
|
|
|
|
|
# then clean |
|
|
|
# then clean |
|
|
|