diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 21c2233d84..056e2dbbf6 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -95,6 +95,16 @@ class Board: 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') + d = env.get_merged_dict() # Always prepend so that arguments passed in the command line get # the priority. diff --git a/wscript b/wscript index e00982cd5f..73fa7b9850 100644 --- a/wscript +++ b/wscript @@ -225,6 +225,10 @@ submodules at specific revisions. default=False, help="enable generation of scripting documentation") + g.add_option('--enable-opendroneid', action='store_true', + default=False, + help="Enables OpenDroneID") + g = opt.ap_groups['linux'] linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')