Skip to content

Commit

Permalink
waf: added --sitl-flash-storage option
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jan 21, 2019
1 parent 413bced commit 1f28994
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ def configure_env(self, cfg, env):
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',
Expand Down
5 changes: 5 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f28994

Please sign in to comment.