mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 12:14:10 -04:00
waf: add option to disable Watchdog
This commit is contained in:
parent
6d76990c1e
commit
67ed54bfca
@ -728,6 +728,14 @@ class chibios(Board):
|
|||||||
else:
|
else:
|
||||||
cfg.msg("Enabling ChibiOS asserts", "no")
|
cfg.msg("Enabling ChibiOS asserts", "no")
|
||||||
|
|
||||||
|
|
||||||
|
if cfg.options.disable_watchdog:
|
||||||
|
cfg.msg("Disabling Watchdog", "yes")
|
||||||
|
env.CFLAGS += [ '-DDISABLE_WATCHDOG' ]
|
||||||
|
env.CXXFLAGS += [ '-DDISABLE_WATCHDOG' ]
|
||||||
|
else:
|
||||||
|
cfg.msg("Disabling Watchdog", "no")
|
||||||
|
|
||||||
if cfg.env.ENABLE_MALLOC_GUARD:
|
if cfg.env.ENABLE_MALLOC_GUARD:
|
||||||
cfg.msg("Enabling malloc guard", "yes")
|
cfg.msg("Enabling malloc guard", "yes")
|
||||||
env.CFLAGS += [ '-DHAL_CHIBIOS_ENABLE_MALLOC_GUARD' ]
|
env.CFLAGS += [ '-DHAL_CHIBIOS_ENABLE_MALLOC_GUARD' ]
|
||||||
|
5
wscript
5
wscript
@ -82,6 +82,11 @@ def options(opt):
|
|||||||
default=False,
|
default=False,
|
||||||
help='Configure as debug variant.')
|
help='Configure as debug variant.')
|
||||||
|
|
||||||
|
g.add_option('--disable-watchdog',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Build with watchdog disabled.')
|
||||||
|
|
||||||
g.add_option('--coverage',
|
g.add_option('--coverage',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
|
Loading…
Reference in New Issue
Block a user