support disabling of NSC by command-line argument

This commit is contained in:
Tom Henderson
2014-09-05 15:25:10 -07:00
parent 81820dd14f
commit 47d531fb41

View File

@@ -14,11 +14,18 @@ def options(opt):
help=('Use Network Simulation Cradle, given by the indicated path,'
' to allow the use of real-world network stacks'),
default='', dest='with_nsc')
opt.add_option('--disable-nsc',
help=('Disable Network Simulation Cradle support'),
dest='disable_nsc', default=False, action="store_true")
def configure(conf):
conf.env['ENABLE_NSC'] = False
if Options.options.disable_nsc:
conf.report_optional_feature("nsc", "Network Simulation Cradle", False,
"disabled by user request")
return
# checks for flex and bison, which is needed to build NSCs globaliser
# TODO: how to move these checks into the allinone scripts?
#def check_nsc_buildutils():