Skip to content

Commit

Permalink
waf: added --enable-ppp option
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jan 3, 2024
1 parent 9d5a542 commit d26530c
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 @@ -148,6 +148,9 @@ def srcpath(path):
)
cfg.msg("Enabled custom controller", 'no', color='YELLOW')

if cfg.options.enable_ppp:
env.CXXFLAGS += ['-DAP_NETWORKING_BACKEND_PPP=1']

if cfg.options.disable_networking:
env.CXXFLAGS += ['-DAP_NETWORKING_ENABLED=0']

Expand Down
5 changes: 5 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ def options(opt):
action='store_true',
default=False,
help='enable OS level thread statistics.')

g.add_option('--enable-ppp',
action='store_true',
default=False,
help='enable PPP networking.')

g.add_option('--bootloader',
action='store_true',
Expand Down

0 comments on commit d26530c

Please sign in to comment.