From 1f28994bae4976010f75ed3e5df806767d53c40c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 21 Jan 2019 15:20:56 +1100 Subject: [PATCH] waf: added --sitl-flash-storage option --- Tools/ardupilotwaf/boards.py | 3 +++ wscript | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 899abf4771..a2ca50e8b6 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -338,6 +338,9 @@ class sitl(Board): if fnmatch.fnmatch(f, "font*bin"): env.ROMFS_FILES += [(f,'libraries/AP_OSD/fonts/'+f)] + if cfg.options.sitl_flash_storage: + env.CXXFLAGS += ['-DSTORAGE_USE_FLASH=1'] + if cfg.env.DEST_OS == 'cygwin': env.LIB += [ 'winmm', diff --git a/wscript b/wscript index 299d1ac284..5deaf12d45 100644 --- a/wscript +++ b/wscript @@ -178,6 +178,11 @@ configuration in order to save typing. default=False, help="Enable SFML graphics library") + g.add_option('--sitl-flash-storage', + action='store_true', + default=False, + help='Configure for building SITL with flash storage emulation.') + g.add_option('--static', action='store_true', default=False,