From d26530c892658560411110d5fbcf6a492a934961 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 26 Dec 2023 06:46:41 +1100 Subject: [PATCH] waf: added --enable-ppp option --- Tools/ardupilotwaf/boards.py | 3 +++ wscript | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 8cb43ddacf..efcb8782eb 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -148,6 +148,9 @@ class Board: ) 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'] diff --git a/wscript b/wscript index 31da3e0ba2..8d2c2a68b2 100644 --- a/wscript +++ b/wscript @@ -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',