How to link libbsd into applications with waf

Heinz Junkes junkes at fhi-berlin.mpg.de
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"

try:
   import rtems_waf.rtems as rtems
except:
   print('error: no rtems_waf git submodule')
   import sys
   sys.exit(1)

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

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

def options(opt):
   rtems.options(opt)

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

def build(bld):
   rtems.build(bld)

   bld(features = 'c cprogram',
       target = 'till.exe',
       cflags = '-g -O2',
       ldflags = '-lnfs -ltftpfs',
       source = ['rtems_config.c',
		  'rtems_netconfig.c',
                 'rtems_init.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: <http://lists.rtems.org/pipermail/users/attachments/20210310/8bf72c2c/attachment-0001.bin>


More information about the users mailing list