support disabling of NSC by command-line argument
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user