Changeset 98d7c3c in rtems-libbsd


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

Check if RTEMS is built with POSIX.

Files:
2 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):')
  • wscript

    r2abb431 r98d7c3c  
    3939    conf.check(header_name = "dlfcn.h", features = "c")
    4040    conf.check(header_name = "rtems/pci.h", features = "c", mandatory = False)
     41    if not rtems.check_posix(conf):
     42        conf.fatal("RTEMS kernel POSIX support is disabled; configure RTEMS with --enable-posix")
     43    if rtems.check_networking(conf):
     44        conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking")
    4145
    4246def configure(conf):
     
    4953    conf.env.NET_CONFIG = conf.options.net_config
    5054    rtems.configure(conf, bsp_configure)
    51     if rtems.check_networking(conf):
    52         conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking")
    5355
    5456def build(bld):
Note: See TracChangeset for help on using the changeset viewer.