waf: added --enable-gps-logging

This commit is contained in:
Andrew Tridgell 2022-10-15 09:43:22 +11:00
parent 4b8b2d8236
commit 3abdc6ad25
2 changed files with 12 additions and 0 deletions

View File

@ -114,6 +114,14 @@ class Board:
else: else:
cfg.msg("Enabled firmware ID checking", 'no', color='YELLOW') cfg.msg("Enabled firmware ID checking", 'no', color='YELLOW')
if cfg.options.enable_gps_logging:
env.DEFINES.update(
AP_GPS_DEBUG_LOGGING_ENABLED=1,
)
cfg.msg("GPS Debug Logging", 'yes')
else:
cfg.msg("GPS Debug Logging", 'no', color='YELLOW')
# allow enable of custom controller for any board # allow enable of custom controller for any board
# enabled on sitl by default # enabled on sitl by default
if (cfg.options.enable_custom_controller or self.get_name() == "sitl") and not cfg.options.no_gcs: if (cfg.options.enable_custom_controller or self.get_name() == "sitl") and not cfg.options.no_gcs:

View File

@ -247,6 +247,10 @@ submodules at specific revisions.
default=False, default=False,
help="Enables custom controller") help="Enables custom controller")
g.add_option('--enable-gps-logging', action='store_true',
default=False,
help="Enables GPS logging")
g = opt.ap_groups['linux'] g = opt.ap_groups['linux']
linux_options = ('--prefix', '--destdir', '--bindir', '--libdir') linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')