From 7d61a5df8e97a4cde2d06fd248ef862339d582d9 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Sat, 4 Mar 2023 11:03:08 +1100 Subject: [PATCH] wscript: add support for setting number of auxiliary IMUs --- wscript | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 1d7f4efc30..29b322ff48 100644 --- a/wscript +++ b/wscript @@ -376,7 +376,12 @@ configuration in order to save typing. g.add_option('--assert-cc-version', default=None, help='fail configure if not using the specified gcc version') - + + g.add_option('--num-aux-imus', + type='int', + default=0, + help='number of auxiliary IMUs') + def _collect_autoconfig_files(cfg): for m in sys.modules.values(): paths = [] @@ -444,6 +449,9 @@ def configure(cfg): cfg.msg('Using static linking', 'yes', color='YELLOW') cfg.env.STATIC_LINKING = True + if cfg.options.num_aux_imus > 0: + cfg.define('INS_AUX_INSTANCES', cfg.options.num_aux_imus) + cfg.load('ap_library') cfg.msg('Setting board to', cfg.options.board)