mirror of https://github.com/ArduPilot/ardupilot
waf: add --enable-scripting option
This commit is contained in:
parent
772eda555b
commit
b051b0d24b
|
@ -52,11 +52,12 @@ class Board:
|
|||
)
|
||||
|
||||
# Setup scripting, had to defer this to allow checking board size
|
||||
if ((not cfg.options.disable_scripting) and
|
||||
if (cfg.options.enable_scripting or
|
||||
((not cfg.options.disable_scripting) and
|
||||
(not cfg.env.DISABLE_SCRIPTING) and
|
||||
((cfg.env.BOARD_FLASH_SIZE is None) or
|
||||
(cfg.env.BOARD_FLASH_SIZE == []) or
|
||||
(cfg.env.BOARD_FLASH_SIZE > 1024))):
|
||||
(cfg.env.BOARD_FLASH_SIZE > 1024)))):
|
||||
|
||||
env.DEFINES.update(
|
||||
AP_SCRIPTING_ENABLED = 1,
|
||||
|
|
4
wscript
4
wscript
|
@ -225,6 +225,10 @@ submodules at specific revisions.
|
|||
default=False,
|
||||
help="Disable onboard scripting engine")
|
||||
|
||||
g.add_option('--enable-scripting', action='store_true',
|
||||
default=False,
|
||||
help="Enable onboard scripting engine")
|
||||
|
||||
g.add_option('--no-gcs', action='store_true',
|
||||
default=False,
|
||||
help="Disable GCS code")
|
||||
|
|
Loading…
Reference in New Issue