How to link libbsd into applications with waf

Heinz Junkes junkes at
Wed Mar 10 11:46:43 UTC 2021

I was able to build my application with the legacy stack (nfs, telnet, etc) using waf.

“my" wscript file:

from __future__ import print_function

rtems_version = "5"

   import rtems_waf.rtems as rtems
   print('error: no rtems_waf git submodule')
   import sys

def init(ctx):
   rtems.init(ctx, version = rtems_version, long_commands = True)

def bsp_configure(conf, arch_bsp):
   # Add BSP specific configuration checks

def options(opt):

def configure(conf):
   rtems.configure(conf, bsp_configure = bsp_configure)

def build(bld):

   bld(features = 'c cprogram',
       target = 'till.exe',
       cflags = '-g -O2',
       ldflags = '-lnfs -ltftpfs',
       source = ['rtems_config.c',

How do I have to define the whole thing with libbsd? There is e.g. explicitly no libnfs.

Danke Heinz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2542 bytes
Desc: not available
URL: <>

More information about the users mailing list