summaryrefslogtreecommitdiffstats
path: root/waf_generator.py
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 /waf_generator.py
parentAdd the missing generated libpcap file. (diff)
downloadrtems-libbsd-98d7c3c015929935ec08724bf2ff57db727ec705.tar.bz2
Check if RTEMS is built with POSIX.
Diffstat (limited to 'waf_generator.py')
-rwxr-xr-xwaf_generator.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/waf_generator.py b/waf_generator.py
index 800f8a47..0be33676 100755
--- a/waf_generator.py
+++ b/waf_generator.py
@@ -289,6 +289,10 @@ class ModuleManager(builder.ModuleManager):
self.add('def bsp_configure(conf, arch_bsp):')
self.add(' conf.check(header_name = "dlfcn.h", features = "c")')
self.add(' conf.check(header_name = "rtems/pci.h", features = "c", mandatory = False)')
+ self.add(' if not rtems.check_posix(conf):')
+ self.add(' conf.fatal("RTEMS kernel POSIX support is disabled; configure RTEMS with --enable-posix")')
+ self.add(' if rtems.check_networking(conf):')
+ self.add(' conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking")')
self.add('')
self.add('def configure(conf):')
self.add(' if conf.options.auto_regen:')
@@ -299,8 +303,6 @@ class ModuleManager(builder.ModuleManager):
self.add(' conf.env.WARNINGS = conf.options.warnings')
self.add(' conf.env.NET_CONFIG = conf.options.net_config')
self.add(' rtems.configure(conf, bsp_configure)')
- self.add(' if rtems.check_networking(conf):')
- self.add(' conf.fatal("RTEMS kernel contains the old network support; configure RTEMS with --disable-networking")')
self.add('')
self.add('def build(bld):')
self.add(' rtems.build(bld)')