summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2023-05-25 14:19:54 +1000
committerKinseyMoore <48726349+KinseyMoore@users.noreply.github.com>2023-05-25 07:40:24 -0500
commitd4478e0656e0437ae46656df80dd260f7567b89a (patch)
treef9e739d5c2aabdeb49af2b7dcb1755ef82a0f525
parenttestsute/ntp: Increase shell stack size (diff)
downloadrtems-net-services-d4478e0656e0437ae46656df80dd260f7567b89a.tar.bz2
waf: Detect libdebugger
-rw-r--r--netservices.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/netservices.py b/netservices.py
index 1c70658..29ce8f6 100644
--- a/netservices.py
+++ b/netservices.py
@@ -182,6 +182,11 @@ def bsp_configure(conf, arch_bsp):
if stack_count != 1:
conf.fatal('More than one networking stack found')
+ conf.check_cc(lib='debugger',
+ ldflags=['-lrtemsdefaultconfig'],
+ uselib_store='DEBUGGER',
+ mandatory=False)
+
net_check_libbsd(conf)
net_check_legacy(conf)
net_check_lwip(conf)
@@ -250,7 +255,9 @@ def build(bld):
use=[net_use])
bld.install_files("${PREFIX}/" + arch_lib_path, ["libttcp.a"])
- libs = ['rtemstest', 'debugger']
+ libs = ['rtemstest']
+ if 'LIB_DEBUGGER' in bld.env:
+ libs += bld.env.LIB_DEBUGGER
ntp_test_incl = ntp_incl + ['testsuites']
ntp_test_sources = ['testsuites/ntp01/test_main.c', net_adapter_source]