wscript: add --sitl-32bit build option

This commit is contained in:
Josh Henderson 2021-09-21 04:34:46 -04:00 committed by Andrew Tridgell
parent 4d7dddf337
commit 3da294833d
1 changed files with 11 additions and 0 deletions

11
wscript
View File

@ -242,6 +242,10 @@ configuration in order to save typing.
default=False, default=False,
help="Enable SITL RGBLed") help="Enable SITL RGBLed")
g.add_option('--sitl-32bit', action='store_true',
default=False,
help="Enable SITL 32bit")
g.add_option('--build-dates', action='store_true', g.add_option('--build-dates', action='store_true',
default=False, default=False,
help="Include build date in binaries. Appears in AUTOPILOT_VERSION.os_sw_version") help="Include build date in binaries. Appears in AUTOPILOT_VERSION.os_sw_version")
@ -331,6 +335,7 @@ def configure(cfg):
cfg.env.BOARD = cfg.options.board cfg.env.BOARD = cfg.options.board
cfg.env.DEBUG = cfg.options.debug cfg.env.DEBUG = cfg.options.debug
cfg.env.COVERAGE = cfg.options.coverage cfg.env.COVERAGE = cfg.options.coverage
cfg.env.SITL32BIT = cfg.options.sitl_32bit
cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts
cfg.env.BOOTLOADER = cfg.options.bootloader cfg.env.BOOTLOADER = cfg.options.bootloader
cfg.env.ENABLE_MALLOC_GUARD = cfg.options.enable_malloc_guard cfg.env.ENABLE_MALLOC_GUARD = cfg.options.enable_malloc_guard
@ -418,6 +423,12 @@ def configure(cfg):
else: else:
cfg.end_msg('disabled', color='YELLOW') cfg.end_msg('disabled', color='YELLOW')
cfg.start_msg('SITL 32-bit build')
if cfg.env.SITL32BIT:
cfg.end_msg('enabled')
else:
cfg.end_msg('disabled', color='YELLOW')
cfg.env.append_value('GIT_SUBMODULES', 'mavlink') cfg.env.append_value('GIT_SUBMODULES', 'mavlink')
cfg.env.prepend_value('INCLUDES', [ cfg.env.prepend_value('INCLUDES', [