waf: added --enable-ppp option

This commit is contained in:
Andrew Tridgell 2023-12-26 06:46:41 +11:00
parent 9d5a54259e
commit d26530c892
2 changed files with 8 additions and 0 deletions

View File

@ -148,6 +148,9 @@ class Board:
) )
cfg.msg("Enabled custom controller", 'no', color='YELLOW') 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: if cfg.options.disable_networking:
env.CXXFLAGS += ['-DAP_NETWORKING_ENABLED=0'] env.CXXFLAGS += ['-DAP_NETWORKING_ENABLED=0']

View File

@ -180,6 +180,11 @@ def options(opt):
action='store_true', action='store_true',
default=False, default=False,
help='enable OS level thread statistics.') help='enable OS level thread statistics.')
g.add_option('--enable-ppp',
action='store_true',
default=False,
help='enable PPP networking.')
g.add_option('--bootloader', g.add_option('--bootloader',
action='store_true', action='store_true',