mirror of https://github.com/ArduPilot/ardupilot
waf: added --sitl-flash-storage option
This commit is contained in:
parent
413bceda9d
commit
1f28994bae
|
@ -338,6 +338,9 @@ class sitl(Board):
|
||||||
if fnmatch.fnmatch(f, "font*bin"):
|
if fnmatch.fnmatch(f, "font*bin"):
|
||||||
env.ROMFS_FILES += [(f,'libraries/AP_OSD/fonts/'+f)]
|
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':
|
if cfg.env.DEST_OS == 'cygwin':
|
||||||
env.LIB += [
|
env.LIB += [
|
||||||
'winmm',
|
'winmm',
|
||||||
|
|
5
wscript
5
wscript
|
@ -178,6 +178,11 @@ configuration in order to save typing.
|
||||||
default=False,
|
default=False,
|
||||||
help="Enable SFML graphics library")
|
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',
|
g.add_option('--static',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
|
|
Loading…
Reference in New Issue