mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 01:28:29 -04:00
Tools: waf: understand DISABLE_SCRIPTING from the board configuration
This commit is contained in:
parent
6dd906f07f
commit
306783211b
@ -44,7 +44,12 @@ class Board:
|
|||||||
self.configure_env(cfg, env)
|
self.configure_env(cfg, env)
|
||||||
|
|
||||||
# Setup scripting, had to defer this to allow checking board size
|
# Setup scripting, had to defer this to allow checking board size
|
||||||
if (not cfg.options.disable_scripting) and ((cfg.env.BOARD_FLASH_SIZE is None) or (cfg.env.BOARD_FLASH_SIZE == []) or (cfg.env.BOARD_FLASH_SIZE > 1024)):
|
if ((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))):
|
||||||
|
|
||||||
env.DEFINES.update(
|
env.DEFINES.update(
|
||||||
ENABLE_SCRIPTING = 1,
|
ENABLE_SCRIPTING = 1,
|
||||||
ENABLE_HEAP = 1,
|
ENABLE_HEAP = 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user