equal
deleted
inserted
replaced
10 # note, this path is relative to the project root |
10 # note, this path is relative to the project root |
11 NSC_DIR = "nsc" |
11 NSC_DIR = "nsc" |
12 |
12 |
13 |
13 |
14 def set_options(opt): |
14 def set_options(opt): |
15 opt.add_option('--nsc', |
15 opt.add_option('--enable-nsc', |
16 help=('Enable Network Simulation Cradle to allow the use real-world network stacks'), |
16 help=('Enable Network Simulation Cradle to allow the use real-world network stacks'), |
17 action="store_true", default=False, |
17 action="store_true", default=False, |
18 dest='nsc') |
18 dest='enable_nsc') |
19 |
19 |
20 |
20 |
21 def nsc_fetch(): |
21 def nsc_fetch(): |
22 def nsc_clone(): |
22 def nsc_clone(): |
23 print "Retrieving nsc from " + NETWORK_SIMULATION_CRADLE_REPO |
23 print "Retrieving nsc from " + NETWORK_SIMULATION_CRADLE_REPO |
48 e = conf.create_library_configurator() |
48 e = conf.create_library_configurator() |
49 e.mandatory = True |
49 e.mandatory = True |
50 e.name = 'fl' |
50 e.name = 'fl' |
51 e.run() |
51 e.run() |
52 |
52 |
53 if not Params.g_options.nsc: |
53 if not Params.g_options.enable_nsc: |
54 conf.report_optional_feature("nsc", "Network Simulation Cradle", False, |
54 conf.report_optional_feature("nsc", "Network Simulation Cradle", False, |
55 "--nsc configure option not given") |
55 "--enable-nsc configure option not given") |
56 return |
56 return |
57 |
57 |
58 check_nsc_buildutils() |
58 check_nsc_buildutils() |
59 |
59 |
60 arch = os.uname()[4] |
60 arch = os.uname()[4] |