summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-06-17 09:55:53 +1000
committerChris Johns <chrisj@rtems.org>2015-06-17 09:55:53 +1000
commit98d7c3c015929935ec08724bf2ff57db727ec705 (patch)
treeab79ef3747a3473d1ed06dbdc3a81905aeb3a683 /wscript
parentAdd the missing generated libpcap file. (diff)
downloadrtems-libbsd-98d7c3c015929935ec08724bf2ff57db727ec705.tar.bz2
Check if RTEMS is built with POSIX.
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/wscript b/wscript
index ff7249ed..8c653a4a 100644
--- a/wscript
+++ b/wscript
@@ -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)