waf: add --enable-scripting option

This commit is contained in:
Peter Barker 2023-05-14 13:09:34 +10:00 committed by Andrew Tridgell
parent 772eda555b
commit b051b0d24b
2 changed files with 7 additions and 2 deletions

View File

@ -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,

View File

@ -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")