From 98d7c3c015929935ec08724bf2ff57db727ec705 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 17 Jun 2015 09:55:53 +1000 Subject: Check if RTEMS is built with POSIX. --- wscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'wscript') 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) -- cgit v1.2.3