Browse Source

waf: allow for --enable-opendroneid on any board

useful for testing
master
Andrew Tridgell 3 years ago
parent
commit
c955c75b9d
  1. 10
      Tools/ardupilotwaf/boards.py
  2. 6
      wscript

10
Tools/ardupilotwaf/boards.py

@ -94,6 +94,16 @@ class Board:
ENABLE_ONVIF=0, ENABLE_ONVIF=0,
) )
# allow enable of OpenDroneID for any board
if cfg.options.enable_opendroneid:
env.ENABLE_OPENDRONEID = True
env.DEFINES.update(
AP_OPENDRONEID_ENABLED=1,
)
cfg.msg("Enabled OpenDroneID", 'yes')
else:
cfg.msg("Enabled OpenDroneID", 'no', color='YELLOW')
# allow enable of firmware ID checking for any board # allow enable of firmware ID checking for any board
if cfg.options.enable_check_firmware: if cfg.options.enable_check_firmware:
env.CHECK_FIRMWARE_ENABLED = True env.CHECK_FIRMWARE_ENABLED = True

6
wscript

@ -225,10 +225,14 @@ submodules at specific revisions.
default=False, default=False,
help="enable generation of scripting documentation") help="enable generation of scripting documentation")
g.add_option('--enable-opendroneid', action='store_true',
default=False,
help="Enables OpenDroneID")
g.add_option('--enable-check-firmware', action='store_true', g.add_option('--enable-check-firmware', action='store_true',
default=False, default=False,
help="Enables firmware ID checking on boot") help="Enables firmware ID checking on boot")
g = opt.ap_groups['linux'] g = opt.ap_groups['linux']
linux_options = ('--prefix', '--destdir', '--bindir', '--libdir') linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')

Loading…
Cancel
Save