mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-28 19:48:31 -04:00
waf: don't build mavlink for bootloader
This commit is contained in:
parent
0546ea69d1
commit
88ec03ce5a
21
wscript
21
wscript
@ -291,18 +291,19 @@ def _build_cmd_tweaks(bld):
|
||||
bld.options.clear_failed_tests = True
|
||||
|
||||
def _build_dynamic_sources(bld):
|
||||
bld(
|
||||
features='mavgen',
|
||||
source='modules/mavlink/message_definitions/v1.0/ardupilotmega.xml',
|
||||
output_dir='libraries/GCS_MAVLink/include/mavlink/v2.0/',
|
||||
name='mavlink',
|
||||
# this below is not ideal, mavgen tool should set this, but that's not
|
||||
# currently possible
|
||||
export_includes=[
|
||||
if not bld.env.BOOTLOADER:
|
||||
bld(
|
||||
features='mavgen',
|
||||
source='modules/mavlink/message_definitions/v1.0/ardupilotmega.xml',
|
||||
output_dir='libraries/GCS_MAVLink/include/mavlink/v2.0/',
|
||||
name='mavlink',
|
||||
# this below is not ideal, mavgen tool should set this, but that's not
|
||||
# currently possible
|
||||
export_includes=[
|
||||
bld.bldnode.make_node('libraries').abspath(),
|
||||
bld.bldnode.make_node('libraries/GCS_MAVLink').abspath(),
|
||||
],
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
if bld.get_board().with_uavcan or bld.env.HAL_WITH_UAVCAN==True:
|
||||
bld(
|
||||
|
Loading…
Reference in New Issue
Block a user