Changeset 98d7c3c in rtems-libbsd for waf_generator.py


Ignore:
Timestamp:
Jun 16, 2015, 11:55:53 PM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, fd86c091b97759106da7355ce1dd81ebe030e285, freebsd-9.3, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
54409c7
Parents:
2abb431
Message:

Check if RTEMS is built with POSIX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waf_generator.py

    r2abb431 r98d7c3c  
    290290        self.add('    conf.check(header_name = "dlfcn.h", features = "c")')
    291291        self.add('    conf.check(header_name = "rtems/pci.h", features = "c", mandatory = False)')
     292        self.add('    if not rtems.check_posix(conf):')
     293        self.add('        conf.fatal("RTEMS kernel POSIX support is disabled; configure RTEMS with --enable-posix")')
     294        self.add('    if rtems.check_networking(conf):')
     295        self.add('        conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking")')
    292296        self.add('')
    293297        self.add('def configure(conf):')
     
    300304        self.add('    conf.env.NET_CONFIG = conf.options.net_config')
    301305        self.add('    rtems.configure(conf, bsp_configure)')
    302         self.add('    if rtems.check_networking(conf):')
    303         self.add('        conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking")')
    304306        self.add('')
    305307        self.add('def build(bld):')
Note: See TracChangeset for help on using the changeset viewer.