[rtems-libbsd commit] Check if RTEMS is built with POSIX.
Chris Johns
chrisj at rtems.org
Tue Jun 16 23:55:59 UTC 2015
Module: rtems-libbsd
Branch: master
Commit: 98d7c3c015929935ec08724bf2ff57db727ec705
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=98d7c3c015929935ec08724bf2ff57db727ec705
Author: Chris Johns <chrisj at rtems.org>
Date: Wed Jun 17 09:55:53 2015 +1000
Check if RTEMS is built with POSIX.
---
waf_generator.py | 6 ++++--
wscript | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/waf_generator.py b/waf_generator.py
index 800f8a4..0be3367 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)')
diff --git a/wscript b/wscript
index ff7249e..8c653a4 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)
More information about the vc
mailing list