Skip to content

Commit

Permalink
wscript: add littlefs build option for sitl
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Dec 13, 2024
1 parent 1933d17 commit be44dd4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ submodules at specific revisions.
g.add_option('--enable-dronecan-tests', action='store_true',
default=False,
help="Enables DroneCAN tests in sitl")

g.add_option('--sitl-littlefs', action='store_true',
default=False,
help="Enable littlefs for filesystem accesson SITL")

g = opt.ap_groups['linux']

linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')
Expand Down Expand Up @@ -565,6 +570,15 @@ def configure(cfg):
if cfg.options.enable_benchmarks:
cfg.load('gbenchmark')
cfg.load('gtest')

if cfg.env.BOARD == "sitl":
cfg.start_msg('Littlefs')

if cfg.options.sitl_littlefs:
cfg.end_msg('enabled')
else:
cfg.end_msg('disabled', color='YELLOW')

cfg.load('littlefs')
cfg.load('static_linking')
cfg.load('build_summary')
Expand Down

0 comments on commit be44dd4

Please sign in to comment.