diff options
author | Chris Johns <chrisj@rtems.org> | 2015-06-17 09:55:53 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2015-06-17 09:55:53 +1000 |
commit | 98d7c3c015929935ec08724bf2ff57db727ec705 (patch) | |
tree | ab79ef3747a3473d1ed06dbdc3a81905aeb3a683 /wscript | |
parent | 2abb43138e029d754db39fa04ffead474ddf89c7 (diff) |
Check if RTEMS is built with POSIX.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -38,6 +38,10 @@ def options(opt): def bsp_configure(conf, arch_bsp): conf.check(header_name = "dlfcn.h", features = "c") conf.check(header_name = "rtems/pci.h", features = "c", mandatory = False) + if not rtems.check_posix(conf): + conf.fatal("RTEMS kernel POSIX support is disabled; configure RTEMS with --enable-posix") + if rtems.check_networking(conf): + conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking") def configure(conf): if conf.options.auto_regen: @@ -48,8 +52,6 @@ def configure(conf): conf.env.WARNINGS = conf.options.warnings conf.env.NET_CONFIG = conf.options.net_config rtems.configure(conf, bsp_configure) - if rtems.check_networking(conf): - conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking") def build(bld): rtems.build(bld) |