From 35d7561c5010144d7189d34651a4f5683e3cb27f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Jun 2023 15:57:54 +1000 Subject: [PATCH] waf: allow AP_SCRIPTING_ENABLED to come from hwdef files --- wscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 75bdf20e6e..18920e3dd9 100644 --- a/wscript +++ b/wscript @@ -533,9 +533,11 @@ def configure(cfg): cfg.start_msg('Scripting') if cfg.options.disable_scripting: cfg.end_msg('disabled', color='YELLOW') - else: + elif cfg.options.enable_scripting: cfg.end_msg('enabled') - cfg.recurse('libraries/AP_Scripting') + else: + cfg.end_msg('maybe') + cfg.recurse('libraries/AP_Scripting') cfg.recurse('libraries/AP_GPS')